PHP environment configuration under UNIX, + Apache

zhaozj2021-02-11  235

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 in / export / home / guoj / You can also in other directories. Installation mysqlgzip -dc mysql-3.22.30.tar.gz | tar xvf-cd mysql-3.22.30./configure -prefix = / export / home / guoj / mysqlmakemake installscripts / mysql_install_dbcd ../ mysql / binbin / safe_mysqld &

Install php apachegzip -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 / Wwwcd ../php-3.0.11./configure -with-apache = /export/Home/guoj/apache_1.3.11 -with-mysql = / export / home / guoj / mysql -enable-track-varsmakemake installcd ../ Apache_1.3.11./configure --prefix = / export / home / guoj / www --activate-module = src / modules / php3 / libphp3.apmakemake installcd ../php-3.0.11cd ../php3.ini-dist php3.inivi php3.ini

Modify php3.ini doc_root = / export / home / guoj / www / htdocs / estion_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 plus the following sentences: addtype application / x-httpd-php3 .php3 Options Followsymlinks allowoverride None < / DIRECTORY>

../www/bin/apachectl start

转载请注明原文地址:https://www.9cbs.com/read-5603.html

New Post(0)