RedHat 9.0下Apache+PHP+MySQL服务器安装配置

2020-01-30 12:44:02王旭

AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps (支持语法高亮)找到下面一行在后面加上index.php,这表示网站的默认页也能够为index.php
DirectoryIndex index.html index.html.var index.php进行php.ini文件的配置工作
(1)查找max_execution_time = 30,更改为max_execution_time = 600
(2)查找max_input_time = 60,更改为max_input_time = 600
(3)查找memory_limit = 8M ,更改为memory_limit = 20M
(4)查找display_errors = On,更改为display_errors = Off
(5)查找register_globals = Off,更改为register_globals = On
(6)查找post_max_size = 8M,更改为post_max_size = 20M
(7)查找upload_max_filesize = 2M,更改为upload_max_filesize = 20M
(8)查找session.auto_start = 0,更改为session.auto_start = 1
(9)查找safe_mode=Off,更改为safe_mode=On
保存后退出,从而完成了php.ini文件的配置工作。
6、安装Zend
解压后执行进入目录执行./install.sh 一步一步下来,当出现:Enter the location of your php.ini file的提示时,输入:/usr/local/php/lib
写个测试文件:
测试数据库链接是否正常: