Joomdle 1.0 Installation

Installation error

  • tommyp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago - 9 years 10 months ago #1 by tommyp
Installation error was created by tommyp
I have Joomla 3.5.1
I have Moodle 3.0
I have Joomdle 2008080267

I inherited this site and pulled it down locally to my WIndows 10 machine to set up a dev site. I can easily get to the Joomla site. I can easily get to the Joomla administrator page. I have updated the urls to "localhost" where appropriate in Joomla and Moodle (through DB). I have cleared the caches.

But I cannot get to Moodle. When I click on the Joomla link that was set up on the Joomla home page after you logged in as admin to go to the Moodle site as admin I get a "404 Category not found". The URL then appears to be a Joomla url "http://localhost/en" . When I looked at the documentation and saw that you could use http://localhost/moodle/auth/joomdle/joomdle_login.php?login=moodle I tried logging in there. But I get the same thing. "404 Category not found" and it is the Joomla site. I do see the login form first though. But I get routed back to http://localhost/en/404 Category not found/Joomla page.

I don't know if this is a Apache issue or a vhosts issue. Or if I am missing something in the Joomla/Moodle/Joomdle setup changes since I moved the site.

In order to set my Apache's htdocs to the source code (which was not in the regular htdocs) I set up a vhosts file as follows:

<VirtualHost *:80>
Servername localhost
DocumentRoot "C:\Users\tommyp\Desktop\company\site_code\html"
<Directory "C:\Users\tommyp\Desktop\company\site_code\html">
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>

Alias /moodle "C:\Users\tommyp\Desktop\company\site_code\html\moodle"
<Directory "C:\Users\tommyp\Desktop\company\site_code\html\moodle">
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

You will see that I added the Alias /moodle as Moodle was installed inside Joomla. That didn't resolve this problem.

I should mention that after moving the site locally I did go back over all the settings in the installation instructions. The site was working on the external server though. And I verified that they were still correct, even the system health check.

So what am I missing on this installation?

Thanks!
Last edit: 9 years 10 months ago by tommyp.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Installation error
If you can't get to Moodle with its url, then you have it configured to require login and redirect to an external url. You should disable that via database, like they say here:
docs.moodle.org/23/en/Managing_authentic...#Alternate_login_URL

Please Log in or Create an account to join the conversation.

  • tommyp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #3 by tommyp
Replied by tommyp on topic Installation error
Thanks for the response. I just looked in the config table. That value is blank.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Installation error
What does it happen when you open Moodle URL directly? Not using any links.

Please Log in or Create an account to join the conversation.

  • tommyp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #5 by tommyp
Replied by tommyp on topic Installation error
The same thing. Moodle is installed inside of Joomla. So if it were localhost I would just try http://localhost/moodle. I did and what I said above happens. That is the direct url to it. However, as I said, I tried adding a specific alias to that directly but that didn't work either.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Installation error
Joomdle by itself does not redirect you to anything when you go to Moodle, so this must be a Moodle setting or another plugin ...

At this point I would just debug Moodle code to see when redirection is happeing.

Please Log in or Create an account to join the conversation.