LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-24-2006, 10:22 AM   #1
Ryuji Yamazaki
Member
 
Registered: Oct 2004
Location: Singapore
Distribution: Slackware, FreeBsd
Posts: 43

Rep: Reputation: 15
Php 5 installation


Hi , i have been using Slackware 10 for about a month now after years of suffering in windows, it has been tough but fun as well.. I am learning PHP out of intrest and i just wanna get it up and running so i can test out my scripts. After installing it by following the tutorials from this website http://www.hostlibrary.com/installin...l_php_on_linux i ran into some problems,

After everything was done i was greeted with the apache screen that says i have installed it correctly after saving the test script for php i proceeded to http://localhost/test.php and received this error

Not Found
The requested URL /test.php was not found on this server.

These are the names of the apache,mysql and php files that i downloaded and installed.

httpd-2.0.55.tar.gz
mysql-standard-4.0.26-pc-linux-gnu-i686.tar.gz
php-5.1.2.tar.gz

Since localhost says that i installed apache right then im assuming its either php or mysql that was setup wrongly, how do i check if either of them is installed and running properly? Any help would be greatly appreciated, thanx..
 
Old 03-24-2006, 10:32 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,900

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Quote:
Not Found
The requested URL /test.php was not found on this server.
That means that test.php is not under your DocumentRoot directory (according to the tutorial you used it's /usr/local/apache2/htdocs)
 
Old 03-24-2006, 11:16 AM   #3
Ryuji Yamazaki
Member
 
Registered: Oct 2004
Location: Singapore
Distribution: Slackware, FreeBsd
Posts: 43

Original Poster
Rep: Reputation: 15
the test.php is already in that folder
 
Old 03-25-2006, 02:19 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,900

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
In that case /usr/local/apache2/htdocs is not your DocumentRoot, or apache does not have the rights to read that file. Take a look at the error_log to see where apache looks for the file. Also check your httpd.conf for your DocumentRoot and perhaps run:
Code:
chmod 755 /usr/local/apache2/htdocs/test.php
 
  


Reply


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
How to add options in php.in after installation of PHP? touqeeransar Linux - Software 1 11-30-2005 05:52 AM
PHP cant see GD installation pacde Linux - Software 6 05-02-2005 03:39 PM
php installation gubak Linux - Networking 1 08-18-2004 02:16 PM
PHP Installation, Please Help sarmadys Linux - Software 1 01-19-2002 12:18 PM
php installation garorag Programming 1 10-10-2001 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:49 AM.

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