Page 1 of 1

LAMP Project - 404 error

Posted: Wed Oct 28, 2015 11:16 pm
by tripleG
I build a LAMP server on a raspberry pi 2, following this tutorial: https://www.raspberrypi.org/learning/la ... worksheet/
However, I'm stuck on step number 6- when I type the IP of the Raspberry I get the error message:
404 Not Found
The requested URL /blog was not found on this server.
Apache/2.4.10 (Raspbian) Server at 192.168.0.100 Port 80
I did all of the previous steps and got the expected results. At the beginning of the tutorial, when typing http://[my ip address] I got the expected Apache page.
Do you know what can I do to fix the problem?
Thanks,
George

Re: LAMP Project - 404 error

Posted: Thu Oct 29, 2015 9:20 am
by Navyscourge
That tutorial is quite long and covers a lot of ground. Can you clarify which bit you are having a problem with?
- Are you running Jessie or Wheezy on the server?
- Are you trying to load the web pages using a browser on the server, or another "device" on your network? Which browser?
- Can you clarify the step that shows the error? I assume that it is the WordPress error page that is not shown.

The 404 error shows that Apache is working, but that it cannot find the page that you have asked for. It should be a set up or configuration issue. Did you use "wordpress" as the database name?

Re: LAMP Project - 404 error

Posted: Wed Dec 30, 2015 6:36 pm
by quadrupleG
Hey i've got the same problem. I bought my Raspi B2 today and i'm new to linux.
Any help would be GREATLY appreciated!
To answer Navyscourge's questions:
- Are you running Jessie or Wheezy on the server?
I'm running Jessie on this server.
- Are you trying to load the web pages using a browser on the server, or another "device" on your network? Which browser?
Other device (my main PC) although after trying localhost on the server itself it returns the same error.
- Can you clarify the step that shows the error? I assume that it is the WordPress error page that is not shown.
It's Step number 6 (Wordpress configuration), it is indeed the wordpress error page that i cannot get to.
Did you use "wordpress" as the database name?
I did!

Re: LAMP Project - 404 error

Posted: Sat Jan 02, 2016 5:46 pm
by justinc
i have the same problem.

Re: LAMP Project - 404 error

Posted: Sat Jan 02, 2016 6:09 pm
by rpdom
There is an error in that worksheet.

Where it says "Navigate to /var/www/, and download WordPress to this location." it should say /var/www/html/, and the same where ever /var/www/ is mentioned throughout the rest of the document.

You can fix that by moving everything in /var/www/ to /var/www/html.

Code: Select all

sudo mv /var/www/* /var/www/html/
It will report one error about not being able to move html into itself, but ignore that.

Also, I think you'll need to restart your Apache server before going any further. At least, I did when I tried it and got an error about MySQL not being supported in PHP.

Code: Select all

sudo service apache2 restart
Now carry on with step 6.

I don't have a github account, or I would report the issue.
[edit] Ok, I now do have a Github account and have reported it.

Re: LAMP Project - 404 error

Posted: Sat Jan 02, 2016 7:50 pm
by justinc
thanks very much, that got me into step 6