LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   trouble with PHP/Apache.... (https://www.linuxquestions.org/questions/debian-26/trouble-with-php-apache-653161/)

Basslord1124 07-02-2008 02:58 PM

trouble with PHP/Apache....
 
Ok, I am running Etch on my main server (had it in for a while), and am just now getting to putting apache and all that on it. Before I ran Apache/MySQL/PHP to assist with any web development I do on previous servers. So for this server I had installed Apache and turns out I forgot to install PHP. So anyways, I installed PHP last night and do have Apache up and running, but when I open a PHP page it's like it wants to save it...almost like it doesn't recognize the file. But html and css it loads up fine. I do have the AddType application/x-httpd-php .php and AddType application/x-httpd-php-source .phps lines uncommented for PHP4. Also LoadModule php4_module /usr/lib/apache/1.3/libphp4.so shows up in the modules.conf file. I have performed an updatedb and restarted the server (apache itself I mean) a number of times with no success. Any ideas? Am I overlooking something else?

AlucardZero 07-02-2008 04:57 PM

How did you install php?

reddazz 07-02-2008 06:33 PM

Did you install libapache2-mod-php5 alongside php?

Basslord1124 07-03-2008 08:31 AM

I installed it using apt-get. I don't believe I installed libapache2-mod-php5. Would that make a difference though as I mainly downloaded and installed PHP4?

nx5000 07-03-2008 11:41 AM

http://www.php.net/downloads.php
=>
Php 4 has been discontinued. In one month, there will be no more security updates.

Would be better to download the package mentionned by reddazz maybe?

AlucardZero 07-03-2008 03:27 PM

I was looking more for the names of the packages you installed.

apt-get install libapache-mod-php5 php5


All times are GMT -5. The time now is 09:36 PM.