LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 09: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, 09:32 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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, 10: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, 01:19 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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 04:52 AM
PHP cant see GD installation pacde Linux - Software 6 05-02-2005 02:39 PM
php installation gubak Linux - Networking 1 08-18-2004 01:16 PM
PHP Installation, Please Help sarmadys Linux - Software 1 01-19-2002 11:18 AM
php installation garorag Programming 1 10-10-2001 02:33 PM

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

All times are GMT -5. The time now is 10:47 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
Open Source Consulting | Domain Registration