Home  >  Article  >  Backend Development  >  PHP environment configuration under UNIX_PHP tutorial

PHP environment configuration under UNIX_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:47:19801browse

PHP environment configuration under UNIX
Required software php-3.0.14-win32.zip
php-3.0.14-win32.zip
mysql-shareware-3.22.32-win.zip
All software is installed under /export/home/guoj/, or in other directories.
Install mysql
gzip -dc mysql-3.22.30.tar.gz | tar xvf-
cd mysql-3.22.30
./configure -prefix= /export/home/guoj/mysql
make
make install
scripts/mysql_install_db
cd../mysql/bin
bin/safe_mysqld &
install php+apache
gzip -dc apache_1.3.11.tar .gz | tar xvf-
gzip -dc php-3.0.11.tar.gz | tar xvf-
cd apache_1.3.11
./configure -prefix= /export/home/guoj/www
cd ../php-3.0.11
./configure -with-apache= /export/home/guoj/apache_1.3.11
-with-mysql= /export/home/guoj/mysql -enable -track-vars
make
make install
cd ../apache_1.3.11
./configure --prefix= /export/home/guoj/www
--activate-module= src/modules/php3/libphp3.aP
make
make install
cd ../php-3.0.11
cd ../php3.ini-dist php3.ini
vi php3 .ini
Modify php3.ini
doc_root=/export/home/guoj/www/htdocs/
extension_dir=/export/home/guoj/php-3.0.11/
extension=php3_mysql. dll
cp php3.ini/usr/local/lib/php3.ini
vi ../www/conf/httpd.conf
Add the following sentences:
AddType application/x-httpd -php3 .php3

Options FollowSymLinks
AllowOverride None

.. /www/bin/apachectl start

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632879.htmlTechArticleThe software required for PHP environment configuration under UNIX php-3.0.14-win32.zip php-3.0.14- win32.zip mysql-shareware-3.22.32-win.zip All software is installed under /export/home/guoj/, and can also be installed in other directories...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn