Test Drupal 7 under CentOS 7

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

  • Related Article

    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.