Anon
05-18-2002, 03:22 AM
how do I install, it doens't tell u in the install file how to install the module mode of php for apache 2 could I get sum help plz?
|
Click to See Complete Forum and Search --> : php4.2.1 and apache 2 Anon 05-18-2002, 03:22 AM how do I install, it doens't tell u in the install file how to install the module mode of php for apache 2 could I get sum help plz? Anon 05-23-2002, 06:51 AM This is the procedure that i have done in my machine. I hope you have time to reconfigure everything... 1. Install REDHAT 7.2 2. MYSQL-3.23.38 ./configure –prefix=/usr/local/mysql make make install cd scripts ./mysql_install_db cd /usr/local/mysql/bin ./safe_mysqld & then hit enter ./mysqladmin –u root password (any password) ./mysql –u root –p enter password type SHOW DATABASES; 3. APACHE 2.0.35 CC=”gcc” \ ./configure –prefix=/usr/local/apache \ --enable-rewrite=shared \ --enable-speling=shared \ --enable-module=so \ --enable-module=cgi make make install cd /usr/local/apache/htdocs vi phpinfo.php <? phpinfo (); ?> then save… http://localhost/phpinfo.php configure httpd.conf and add a line like this to where you would normally add the AddType line. <Files *.php> SetOuputFilter PHP SetInputFilter PHP </Files> <FilesMatch "\php?|phtml)$"> SetOuputFilter PHP SetInputFilter PHP </FilesMatch> <FilesMatch ".php(.+)?$"> SetOuputFilter php SetInputFilter php </FilesMatch> AddType application/x-tar.gz AddType application/x-httpd-php .php Add this to the DirectoryIndex index.html index.php 3. PHP 4.2.1 ./configure \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-mysql=/usr/local/mysql \ --enable-track-vars \ --enable-versioning \ --with-xml --with-dom \ --with-zlib-dir=/usr/include make make install cp php.ini-dist /usr/local/php.ini PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved. |