LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-10-2003, 07:10 PM   #1
FrostGunner
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Can't get PHP and apache to work together


Apache is installed, as well as PHP, Perl, and MySQL. Everything but PHP works. When I view the info.php page it doesn't show the PHP, but it will show the regular text.

I've tried uninstalling and reinstalling it and upgrading the packages. Still no luck.

Any ideas?

Thanks.
 
Old 09-11-2003, 12:11 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I'm going to tentatively move this to Linux - Software as this question does not appear to be Arch related/specific.

Please correct me if I'm wrong, otherwise it will be moved shortly.

As for an answer to your question:

How did you install the files listed above? You need to setup Apache to work with PHP as defined:
http://www.php.net/manual/en/install.apache.php

But this would also depend on which versions of the above applications you have installed. Please provide us with some information

Which distro?
Which versions of apps?
How did you install them?

Cool
 
Old 09-11-2003, 08:38 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Moving to Linux - Software

Cool
 
Old 09-11-2003, 11:51 AM   #4
ufgeek
LQ Newbie
 
Registered: Aug 2003
Location: Univeristy of Florida
Distribution: Redhat 9, Debian Sid
Posts: 7

Rep: Reputation: 0
do you have a properly constructed htaccess file in the same directory as the php file you are trying to serve?

for php to work for me, I make a htaccess file with the following contents:

Code:
AddHandler cgi-script .php
DirectoryIndex index.html index.php
make sure the file is 644.

Try that.

/geek
 
  


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
PHP 5.1.0 and Apache 2.0.55 don't work together polemon Linux - Software 8 12-04-2005 12:57 PM
Apache, MySql, PHP work on 10.0 but not 10.1 fireman949 Slackware 3 02-28-2005 11:36 PM
installing php to work with apache citrus Linux - Software 8 04-30-2004 02:08 AM
downloaded apache +RH mysql + RH php would it work? Red Squirrel Linux - Software 1 03-07-2004 06:11 PM
apache or php doesn't work properly on RH8.0 abd_bela Linux - Networking 6 03-18-2003 05:20 AM


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