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.