Jump to content

konorbi

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by konorbi

  1. 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)
×
×
  • Create New...