LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't get PHP and apache to work together (https://www.linuxquestions.org/questions/linux-software-2/cant-get-php-and-apache-to-work-together-91428/)

FrostGunner 09-10-2003 07:10 PM

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.

MasterC 09-11-2003 12:11 AM

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

MasterC 09-11-2003 08:38 AM

Moving to Linux - Software

Cool

ufgeek 09-11-2003 11:51 AM

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


All times are GMT -5. The time now is 05:06 PM.