Forum Moderators: bakedjake

Message Too Old, No Replies

getting php5 to work?

with apache2

         

Hawes

3:43 pm on Feb 20, 2005 (gmt 0)

10+ Year Member



Im using SUSE 9.2 pro and have a working website run by apache2... I installed the lastest php, but when I try to access a .php file, I am prompted to download it?

Hawes

StupidScript

9:11 pm on Feb 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A couple of questions:

Is your current Apache installation compiled with PHP support in the executable, or do you use the CGI implementation or DSO (shared object) implementation?

If it's the first, then you'll need to recompile the Apache executable to support the new PHP version.

In the DSO implementation, you'll need to build a shared object for PHP5 (probably accomplished during installation of PHP5), and include reference to it in your httpd.conf file, replacing or complementing the PHP4 .so file, and then update your shared object library index to make it aware of the new object.

Note, too, that PHP makes no bones about PHP5 and Apache2 being uncomfortable together. You might want to go back to PHP4 until the bugs get ironed out.