1. Install MoD
Yum Install php-pdo.x86_64
Yum Install php-mysql.x86_64
Yum Install php-ldap.x86_64
2. Create User and Grant privileges of database (admin always has the root User, but he'll not give the user and US Ername)
Create user ' stadmin ' @ '% ' identified by ' stadmin ';
Grant all privileges on * * to ' stadmin ' @ '% ';
3. Create DB and Import db (prepare the database of your website or web app)
4. Update main.php in DB section (if you are change the config file)
Username:stadmin
Password: * * * *
5. Update/etc/php.ini (the config file of this new server environment)
Date.timezone = PRC
6. Restart httpd (after change, don ' t forget to restart the servers)
/ETC/INIT.D/HTTPD restart
/etc/init.d/mysqld restart
7:set The local server can use the network and use the database. (Maybe you'll encounter this situation, try this)
Error tip: Cdbconnection failed to open the DB connection:sqlstate[hy000] [2003] Can ' t connect to MySQL server on ' 10.196.19.73 ‘
Setsebool-p httpd_can_network_connect=1
Setsebool-p httpd_can_network_connect_db =1
8:may has problem of URL rewrite
Issues that may be resolved after you deploy a PHP Web site to a Linux server