Install httpd, mariadb, and PHP, start httpd and mariadb, and create a database of UTF-8 character sets.
Download Drupal core and Drupal Translations 2 files on the Drupal website: drupal-7.34.tar.gz
drupal-7.34.zh-hans.po
.
tar xzvf drupal-7.34.tar.gzcd drupal-7.34
Copy all files to a web directory, including 2 hidden files.
cp -R * /var/www/htmlcp .gitignore .htaccess /var/www/html
Put the Simplified Chinese language pack where it should be placed.
cp drupal-7.34.zh-hans.po /var/www/html/profiles/standard/translations/
Create a settings.php file.
cp /var/www/html/sites/default/default.settings.php /var/www/html/sites/default/settings.php
Add write permissions to the settings.php file and the default folder.
chmod a+w /var/www/html/sites/default/settings.phpchmod a+w /var/www/html/sites/default/
Prevent SELinux from messing up.
chcon -R -t httpd_sys_content_rw_t /var/www/html/sites/default
Browse http://localhost to start the installation, and then change the permissions back after the installation is complete.
chmod a-w /var/www/html/sites/default/settings.phpchmod +w /var/www/html/sites/default/settings.phpchmod a-w /var/www/html/sites/default/chmod +w /var/www/html/sites/default/
The above describes the test Drupal 7 under CentOS 7, including the aspects of the content, I hope to be interested in PHP tutorial friends helpful.