konorbi Posted August 8, 2015 Report Posted August 8, 2015 Hello! I wanted to install Blesta with the .htaccess file On my server I use apache. Mod rewrite, and htaccess support is enabled, it is working on my other sites. My files is located at /var/clientweb , chmod and chown is right. .htaccess : <Files ~ "\.(pdt)$"> order deny,allow deny from all </Files> # Protect against Clickjacking #Header append X-Frame-Options "SAMEORIGIN" RewriteEngine on # Force HTTPS #RewriteCond %{HTTPS} !=on #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=307,NE,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php RewriteCond %{REQUEST_URI} ^(.*)/install.php$ RewriteRule install.php %1/install/ [R=301,L] Apache config (it is configured on a subdomain): <VirtualHost *:80> ServerAdmin info@mydomain.com ServerName client.mydomain.com DocumentRoot /var/clientweb <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/clientweb/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/clientweb_error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/clientweb_access.log combined php_value session.save_path /var/sessions </VirtualHost> Apache error log doesn't show anything. But when I point my browser to http://clientweb.mydomain.com/install/ it tells this error: Error Mod rewrite is not enabled, or htaccess is not supported by this server. You must disable pretty URL support in Blesta by removing the .htaccess file. System: Debian 8 64-bit PHP version: PHP 5.6.9-0+deb8u1 Apache version: Apache/2.4.10 (Debian) Quote
0 konorbi Posted August 9, 2015 Author Report Posted August 9, 2015 I fixed it in this way: During installation I removed the .htaccess file, and after installation, I re-created it again, and deleted the cache/1 folder. Now it is working great with pretty urls. Quote
0 Michael Posted August 8, 2015 Report Posted August 8, 2015 Would you like me to look into this for you as it's an apache issue or a cache issue. You can try it before me if you wish, inside /cache/ remove the 1 folder. If not please get teamviewer and pm your id and pass. konorbi 1 Quote
0 konorbi Posted August 8, 2015 Author Report Posted August 8, 2015 There is nothing in cache folder, PM sent to you, and thanks for the fast answer. Quote
0 serge Posted August 9, 2015 Report Posted August 9, 2015 I think you should check this: ErrorMod rewrite is not enabled and after solve it, re-start apache Quote
0 activa Posted August 10, 2015 Report Posted August 10, 2015 if mode rewrite was not enabled , it will never work the system url rewrite . maybe the way blesta check the extentions need some deep look . Quote
0 yigis3686 Posted November 17, 2022 Report Posted November 17, 2022 On 8/9/2015 at 10:32 PM, konorbi said: I fixed it in this way: During installation I removed the .htaccess file, and after installation, I re-created it again, and deleted the cache/1 folder. Now it is working great with pretty urls. Would you Htaccess Redirect Generator allow to investigate this for htaccess checker as it's either an apache or a caching problem? If you'd like to try it before me, eliminate the single directory inside it /cache/. If not, please download TeamViewer and PM your login information. Quote
Question
konorbi
Hello!
I wanted to install Blesta with the .htaccess file
On my server I use apache. Mod rewrite, and htaccess support is enabled, it is working on my other sites.
My files is located at /var/clientweb , chmod and chown is right.
.htaccess :
Apache config (it is configured on a subdomain):
Apache error log doesn't show anything. But when I point my browser to http://clientweb.mydomain.com/install/ it tells this error:
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.