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/and can be in other directories.
installing 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 sentence:
AddType application/x-httpd-php3. php3
<directory "/export/home/guoj/php-3.0.11/" >
Options FollowSymLinks
AllowOverride None
</Directory>
.. /www/bin/apachectl start
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service