Test Drupal7 in CentOS7

Source: Internet
Author: User
Tags drupal
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.