blu4 Posted November 18, 2014 Posted November 18, 2014 Hey, I recently set up Moodle for our school and I had problems during the inital web page set up- I was getting a LOT of 404 error. I managed to configure it after countless server reboots.. Now that moodle is configured.. but it's 404 -.- I have never done moodle and I am a begginer on linux (I am using ubuntu 14.0.4.1 no gui). The file configuration is fine because it let me create everything. Why am I getting 404 so often? I know what 404 is not found but... I am lost. Halp.. Thanks Edit: After server reboot, it works for a minute then 404's.
danbuntu Posted November 18, 2014 Posted November 18, 2014 you need check your dns and IP config to start with then you need to start looking in the error logs and seeing what's happening. This depends on how your apache is set and if you have vhosts but to start with 'tail -f /var/log/apache2/error.log' should start to point you in the right direction.
Dkeen94 Posted November 18, 2014 Posted November 18, 2014 Make sure your Config.PHP is set up correctly and also any apache configs are correct. Potentially your Config.PHP could be pointing to a directory that doesnt exist. Can you access direct from the IP address instead of the DNS name?
blu4 Posted November 18, 2014 Author Posted November 18, 2014 (edited) I am accessing it from the IP address- it works for a while then stops... So it has to be pointing correctly otherwise it would just 404 right away. Btw- I am using hyperv for the server. This is my config php file: Edited November 18, 2014 by blu4
Dkeen94 Posted November 18, 2014 Posted November 18, 2014 Try and rewrite the wwwroot URL it looks like part of it is being contained in the string and some of it isnt See how mine is completely red? part of your wwwroot URL is white as if its just text and part of it is blue It should all be blue. Give this a try
blu4 Posted November 18, 2014 Author Posted November 18, 2014 Try and rewrite the wwwroot URL it looks like part of it is being contained in the string and some of it isnt [ATTACH=CONFIG]27587[/ATTACH] See how mine is completely red? part of your wwwroot URL is white as if its just text and part of it is blue It should all be blue. Give this a try It is correct- the nano editor just shows up wrong- I used vim here to show you that is is correct format.
blu4 Posted November 18, 2014 Author Posted November 18, 2014 Managed to fix it- I had a clash of static IP addresses. Works like a charm now
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now