• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

configuring apache 1.3 for php 4.1

recently my server crashed and after installing apache again i am trying to configure it for php once again, the problem is, i cant remember how i did it before, i dont even think i'm using the same versions. and the install.txt didnt help much at all
and all the help sites i visit, really dont help.

please help, thanks
  • 2
1 Solution
bluesystemsAuthor Commented:
sorry, thats PHP 4.3.1
bluesystemsAuthor Commented:
can't anyone help me?
Any version prior to PHP4.2.2 has a known security vulnerability which can compromise your Virtual Private Server. If you are using a version of PHP prior to 4.2.2, we strongly encourage you to upgrade to the most recent version.

1.  gunzip apache_xxx.tar.gz
2.  tar -xvf apache_xxx.tar
3.  gunzip php-xxx.tar.gz
4.  tar -xvf php-xxx.tar
5.  cd apache_xxx
6.  ./configure --prefix=/www --enable-module=so
7.  make
8.  make install
9.  cd ../php-xxx
10. ./configure --with-mysql --with-apxs=/www/bin/apxs
11. make
12. make install

  If you decide to change your configure options after installation
  you only need to repeat the last three steps. You only need to
  restart apache for the new module to take effect. A recompile of
  Apache is not needed.

13. cp php.ini-dist /usr/local/lib/php.ini

  You can edit your .ini file to set PHP options.  If
  you prefer this file in another location, use
  --with-config-file-path=/path in step 10.

14. Edit your httpd.conf or srm.conf file and check that these lines are
    present and not commented out:
   AddType application/x-httpd-php .php

   LoadModule php4_module        libexec/libphp4.so
  You can choose any extension you wish here.  .php is simply the one
  we suggest. You can even include .html, and .php3 can be added for
  backwards compatibility.
  The path on the right hand side of the LoadModule statement must point
  to the path of the PHP module on your system. The above statement is
  correct for the steps shown above.

15. Use your normal procedure for starting the Apache server. (You must
    stop and restart the server, not just cause the server to reload by
    use a HUP or USR1 signal.)


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now