4.测试mysql ,php ,apache
cp /php 目录/php.ini-dist /usr/local/lib
cd /usr/local/lib
mv php.ini-dist php.ini
vi php.ini
修改
register_globals=On
:wq
cd /usr/local/apache/conf
vi httpd.conf
找到DirectoryIndex index.html
改为DirectoryIndex index.php index.html
找到Options Indexes FollowSymLinks MultiViews
改为Options FollowSymLinks MultiViews
合适的地方加入
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps :wq cd ../bin apachectl restart |
好了,我们来测试
cd /usr/local/apache/htdocs vi test.php phpinfo(); ?> :wq |
打开IE输入 http://IP/test.php
如果你能看见php 的测试页,说明大功告成了!
安装ZEND
版本 Zend Optimizer v3.0.gz
。/install.sh
这个很简单的,安装中会让你指定php.ini 和apache/bin路径,自己调整一下就好了
责任编辑:虫虫