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-31-2005, 05:27 AM   #1
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Rep: Reputation: 15
Finally Apache2 and php 5


hey guys...

After a hard days work, i finally compiled apache2 and php5 to work together..

but now there is another problem. in my directory no index file is there so the browser displays the files in my /var/www/html and when clicked a file the file gets downloaded insted of showing in the broswer. so i placed an index.php and refreshed the browser... it parsed perfectly....

wots going on.. any one can help me...


thanks in advance
 
Old 03-31-2005, 05:39 AM   #2
pollo
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
how did you install PHP5. I'm using FC3 and having great difficulties trying to install PHP5 with yum using fedora development reposity...
 
Old 03-31-2005, 05:45 AM   #3
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Original Poster
Rep: Reputation: 15
well i dindnt do any of those stufffs

i just removed apache and php from my FC3 system

downloaded source files of apache and php

and did the install
 
Old 04-07-2005, 06:05 PM   #4
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
Did you follow the PHP install instructions fully? Whilst make install will load the module in your Apache config file, what it doesn't do is to add a handler for the .php extension. You need to put a line like this in your httpd.conf:

AddType application/x-httpd-php .php

Re-start Apache and you should see the PHP rendered rather than the source. Guess how I know about this ;-)

Note - you also need to copy the sample php.ini to the appropriate place (/usr/local/lib on my machines).

Last edited by kbcnetau; 04-07-2005 at 06:06 PM.
 
  


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
Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 wizard7423 Slackware 2 04-04-2011 08:09 PM
Apache2 and PHP unreal128 SUSE / openSUSE 0 05-10-2005 08:51 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
PHP 4.3.4 on Apache2 wenberg Linux - Software 3 02-08-2004 12:03 PM
Apache2 and PhP wolfwolf Linux - Networking 0 03-12-2003 11:43 PM

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

All times are GMT -5. The time now is 06:55 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