Re: I'm trying to recompile php

From: Date: Fri, 20 Oct 2000 23:29:12 +0000
Subject: Re: I'm trying to recompile php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21620@lists.php.net to get a copy of this message
At 4:16 PM -0500 10/20/00, Michael wrote:
following the directions a bit closer and it seems that I do not have mod_so.c compiled into apache1.3.14 Can anyone provide a bit of direction here? -Michael
I am not sure if this is what you want, but following are my notes on the install that compiles PHP static into Apache but still allow for other modules to be utilized via the DSO mechanism. Here are two other locations for install instructions if mine don't do it for you: http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/ http://www.e-gineer.com/instructions/index.phtml Note: If you need it, first install MySQL which I have located at: /usr/local/mysql ______________________________ SOURCE Download distributions, I put into directory: /usr/local/etc apache_1.3.14.tar.gz php-4.0.3pl1.tar.gz ______________________________ DESTINATION The following assumes the "standard" arrangement of files (as defined for the most part by the default installation and configuration of Apache): ./configure --prefix=/usr/local/apache Web root: /usr/local/apache/htdocs/ Server binary: /usr/local/apache/bin/httpd (many like to move this into one of the system bin locations. The reason is better security, especially on multi-user systems, since that directory can only be accessed via root.) Logs: /usr/local/apache/logs/ Monitor: /usr/local/apache/bin/apachectl {start | stop | status | configtest} Startup script for Apache (on RedHat): /etc/rc.d/init.d/httpd Note: See the install instructions in the distributions for a full (but not necessarily detailed) description of the options you want to install, Those options are specified using the command "configure" as is shown below (the lines end with a backslash \ to indicate the command continues on the next line). Also, [root@www etc]# is just the prompt you type after, and the following does not show what comes after the command is issued. _____________________________ INSTALL [root@www etc]# cd /usr/local/etc/ [root@www etc]# tar zxvf apache_1.3.14.tar.gz [root@www etc]# cd apache_1.3.14 [root@www apache_1.3.14]# ./configure --prefix=/usr/local/apache [root@www apache_1.3.14]# cd .. [root@www etc]# tar zxvf php-4.0.3pl1.tar.gz [root@www etc]# cd php-4.0.3pl1 [root@www php-4.0.3pl1]# ./configure \ --prefix=/usr/local \ --with-mysql=/usr/local/mysql \ --with-apache=/usr/local/etc/apache_1.3.14 \ --enable-track-vars \ --enable-trans-sid \ --with-xml [root@www php-4.0.3pl1]# make [root@www php-4.0.3pl1]# make install [root@www php-4.0.3pl1]# cp php.ini-dist /usr/local/lib/php.ini [root@www php-4.0.3pl1]# pico /usr/local/lib/php.ini [root@www etc]# cd ../apache_1.3.14 [root@www apache_1.3.14]# ./configure \ --activate-module=src/modules/php4/libphp4.a \ --enable-module=php4 \ --prefix=/usr/local/apache \ --enable-module=so \ [****OPTIONAL-installs all available modules--enable-shared=max ***] [root@www apache_1.3.14]# make [root@www apache_1.3.14]# make install [root@www apache_1.3.14]# pico /usr/local/apache/conf/httpd.conf [root@www apache_1.3.14]# /usr/local/apache/bin/apachectl start Edit the httpd.conf Apache configuration file to add or uncomment the following: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Make sure these are not uncommented:
#LoadModule php4_module        libexec/libphp4.so
#AddModule mod_php4.c You can check which modules are loaded using: [root@ww me]# /usr/local/apache/bin/httpd -l -- _/ _/ _/ _/ Michael Collins _/ _/ _/ Equinox Enterprises _/ _/ Seattle, WA, USA _/ mcollins206@home.com

« previous php.general (#21620) next »