Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-18-2012, 05:38 AM   #1
LQ Newbie
Registered: Jun 2012
Posts: 15

Rep: Reputation: Disabled
Angry php problem persists !! 404 not found error

I installed LAMP manually using the various components through the ".tar.gz" packages available online on my Linux mint 13 cinnamon editon....but after everything ( apache2.4.2 was working , mysql was working ) the lone thing that was left to check was PHP5 ...i made a test.php file to check the configurations of php but insteas it showed me my own code <?php phpinfo(); ?> .........out of this frustration i asked for help online and various people suggested me and i used tasksel to install my LAMP components again (without removing the previous installation).....but after following everything the problem seems to persist my apache is working but when i point it to show my localhost/test.php it gives me a 404 not found..... :evil:

Probably i would ask people here to either assist me in combating this issue or either tell me how to uninstall the components installed by both manual installation and tasksel and make new start again in installing these components ....

Thanks in advance !!!
Old 06-18-2012, 11:45 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Without knowing where apache is serving from (the path of the root directory), and also not knowing where PHP expects the root to be, It's hard to say.
If its a virtual server you might have to add PHP as a handler (which was your original problem IMHO)
Old 08-16-2012, 08:37 AM   #3
LQ Newbie
Registered: Nov 2008
Posts: 24

Rep: Reputation: 0
Originally Posted by smoker View Post
Without knowing where apache is serving from (the path of the root directory), ...
Clearly, the error message comes out because apache did not find your test.php in the localhost directory. If you have a basic install from Linux Mint, like
user@computer $ sudo apt-get install apache2 php5 mysql-server mysql-client
then your localhost main directory is probably /var/www

So try to put your test file there and hit it again.

user@computer $ sudo cp test.php /var/www/
Then hit your link again.


apache2, installation, lamp, php5

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error 404 requested resource not found sawgata Linux - Newbie 6 05-29-2010 04:20 AM
Bugzilla3 Error 404 Not Found problem qhhatman Linux - Newbie 8 09-13-2009 09:45 PM
Apache 404 index.php not Found but index.php exists at document root mark84 Linux - Server 20 07-27-2008 01:55 AM
Apache error: 404 Not Found, why? cucolin@ Ubuntu 3 08-14-2006 11:01 AM
apt-get 404 Not Found error Steve Riley Ubuntu 3 06-21-2006 06:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration