First of all, in CentOS 6.9 need some preparation environment, I was on the basis of my previous blog to build, and again on the basis of the expansion and construction;
httpd mysql-server php php-mysql these four RPM packages, directly with Yum loaded, this operation I will not show you, a command to solve;
Since I have set up the HTTP environment, I only installed the latter three packets;
A directoryindex index.php was added to the configuration file of the virtual host;
Create a new PHP index and then write the PHP statement to test for success;
: Success
Need to import phpMyAdmin, WordPress and discuz rpm packages into the Linux host;
Then we rename the extracted phpMyAdmin file to PMA, enter it directly in the browser, and before entering, use mysql_install_dbto create the MySQL database, and then mysql_secure_ Installation add a password to the root user, I set the 123456; log in directly on the browser; phpMyAdmin creation is complete;
Similarly create discuz, but only need to extract the inside of the upload folder, if garbled, in the main configuration file /etc/httpd/conf/http.conf http to modify the default encoding format for GB2312 can be;
After you click Start installation, you find that the directory file does not have permissions, and then you need to change the permissions of these files to 777;
Discuz creation completed;
WordPress creation process is similar, but need to create a corresponding database in the MySQL database;
The database I created is wpdb, creating a user Wpuserthat gives all permissions;
Modify the wp-config-sample.php file based on the database name and user name you just created;
According to the prompt, the contents of the inside copy, and the folder inside the new wp-config.php to paste;
Then new users can be used;
WordPress creation completed;
phpMyAdmin in Centos 6.9, construction of WordPress, construction of Discuz