: This article describes how to test Drupal7 in CentOS7. if you are interested in the PHP Tutorial, refer to it. Install httpd, mariadb, and php, start httpd and mariadb, and create a database for the UTF-8 character set.
Download the Drupal core and Drupal translations files from 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 the web Directory, including two hidden files.
cp -R * /var/www/htmlcp .gitignore .htaccess /var/www/html
Place the simplified Chinese language pack in the desired location.
cp drupal-7.34.zh-hans.po /var/www/html/profiles/standard/translations/
Create the 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 default folder.
chmod a+w /var/www/html/sites/default/settings.phpchmod a+w /var/www/html/sites/default/
Prevent SELinux interference.
chcon -R -t httpd_sys_content_rw_t /var/www/html/sites/default
Browse http: // localhost to start installation. after installation is complete, change the permission back.
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 how to test Drupal 7 in CentOS 7, including some content. I hope my friends who are interested in the PHP Tutorial can help me.