Contact:[email protected]
# Decompress the sources: tar -xvzf apache_1.3.12.tar.gz tar -xvzf php-4.0.2.tar.gz tar -xvzf mysql-3.22.32.tar.gz tar -xvzf gd1.3.tar.gz # Compile the sources: cd gd1.3 make cd ../mysql-3.22.32 ./configure make make install scripts/mysql_install_db safe_mysqld & mysqladmin -u root password raptor114 cd ../apache_1.3.12 ./configure \ --prefix=/usr/local/apache \ --enable-module=most \ --enable-shared=max make # If you presently have a libphp4.so module you should: cp /usr/local/apache/libexec/libphp4.so /usr/local/apache/libexec/libphp4.so.was # If you have a file called /usr/local/apache/conf/httpd.conf already, you # should: mv /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.was # This way you'll get a fresh httpd.conf with all your Apache modules listed # and 100% loadable. # Don't worry if your web server is presently running. The httpd.conf file # is only read by the httpd binary when starting the web server. make install cd ../php-4.0.2 mv /usr/local/number4.tar.gz . tar -xvzf number4.tar.gz ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf \ --enable-versioning \ --with-mysql \ --enable-ftp \ --with-gd=/usr/local/gd1.3 \ --enable-bcmath=yes \ --disable-debug \ --enable-memory-limit=yes \ --enable-track-vars make make install # Uncomment or Change the following lines in /usr/local/apache/conf/httpd.conf DirectoryIndex index.html index.php index.php3 index.phtml AddType application/x-httpd-php .html .htm .php .php3 .phtml AddType application/x-httpd-php-source .phps cp /usr/local/php-4.0.2/php.ini-dist /usr/local/apache/conf/php.ini # Start Apache: /usr/local/apache/bin/apachectl start # Create a file in /usr/local/apache/htdocs called index.php <HTML> <HEAD><TITLE>PHP3 Test Page</TITLE></HEAD> <BODY> <? phpinfo(); ?> </BODY> </HTML> ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf \ --enable-versioning \ --with-mysql \ --enable-ftp \ --disable-debug \ --enable-memory-limit=yes \ --enable-track-vars Back to the Index