Resolving a solution that Drupal clean URL cannot enable

Source: Internet
Author: User
Tags php file blank page drupal

Some prerequisites:
Website Domain name: site.com
Web site installation directory:/var/www

After git pull the code to the server and deployed the database, the clean URL is not enabled, and the following is the troubleshooting and resolution steps:

1: Establish a info.php file, which input:

<?php
Phpinfo ();
?>
and save, view the page found that the Apache Mod_rewrite module is not enabled, Linux executes the following command to install the rewrite module:
A2enmod rewrite
Then restart the Apache service:
sudo service apache2 restart
In this detection, the clean URL still does not work.

2: Search by Google for the following keywords:
"Drupal Apache clear URL not working"

By reading quickly, you see the solution, which is to find the Apache configuration file: Probably one of the following files

The code is as follows Copy Code
/etc/apache2/site-available/default
/etc/apache2/site-enable/000-default
/etc/apache2/httpd.conf

Wait a minute
And then/var/www the Apache rules in the

The code is as follows Copy Code
AllowOverride None to allowoverride all

When you are done, restart the Apache server:

The code is as follows Copy Code
sudo service apache2 restart

Then go to the configuration page of the clean URL, this time you can access, the clean URL check and save, jump to a blank page. Refresh anyway, always blank.

Kiss, what do you do when you encounter such a problem? Do you have a solution? Whether or not, wall for three minutes, and then look down.

3: If you can't access your Drupal site through a clean URL, you can access it in the following ways.

The code is as follows Copy Code
Site.com/index.php?q=admin

Habitual view of the => recent log message
You can find a row that mentions no write permissions to the Temp folder and modifies the Temp folder permissions.

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.