# List the functions that PHP can disable on line 386. #Remove the preceding semicolon on line 946 and change it to date.timezone = PRC Rm -f /etc/httpd/conf.d/nf /var/www/error/noindex.html (if the user has written PHP pages, they can be placed in this directory) MaxKeepAliveRequests 100 is modified in line 83 to: MaxKeepAliveRequests 1000 KeepAlive Off is modified in line 76 to : KeepAlive On Options Indexes MultiViews FollowSymLinks is modified in line 554 to Options MultiViews FollowSymLinksĭirectoryIndex index.html is modified in line 402 to: DirectoryIndex index.html index.htm Default.html Default.htm index.php Default.php plĪllowOverride None is modified in line 338 to: AllowOverride AllĪddDefaultCharset UTF-8 is modified in line 759 to: AddDefaultCharset GB2312 (add GB2312 as the default encoding) ![]() cgi is modified in line 796 to: AddHandler cgi-script. Options Indexes FollowSymLinks in line 331 is changed to: Options Includes ExecCGI FollowSymLinks ServerSignature On in line 536 is changed to: ServerSignature Off ServerTokens OS is modified in line 44 to: ServerTokens Prod Yum install php-mysql php-gd libjpeg * php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt Install PHP components to make PHP5 support MySQL Yum install mysql mysql-server #Ask whether To install, enter Y to automatically install until the installation is completeĬhkconfig mysqld on #Set to start at bootĬp /usr/share/mysql/ my-medium.cnf /etc/my.cnf #Copy the configuration file (note: if there is a my.cnf under the /etc directory by default, overwrite it directly)Įnter Y according to the prompt until the installation is completeĢ. Yum install httpd #According to the prompt, enter Y to install it successfullyĪfter the correct installation, Apache is generally restarted once (Do not put the above firewall configuration code at the end of the iptables file, it will easily cause the firewall to fail after you configure it) A INPUT -m state -state NEW -m tcp -p tcp -dport 3306 -j ACCEPT #Allow port 3306 to pass through the firewall A INPUT -m state -state NEW -m tcp -p tcp - dport 80 -j ACCEPT #Allow port 80 to pass through the firewall Configure the firewall, open port 80 and port 3306 ![]() If it is turned on, configure your firewall as follows (if you have not turned on the firewall when installing the virtual machine, then this step is omitted) :ġ. First, check whether your firewall is turned on. Construction of Centos 6.5LAMP server (Apache+PHP+MySQL)ġ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |