This is the procedure that i have done in my machine. I hope you have time to reconfigure everything...
Install REDHAT 7.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;
- 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
- 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