unicast / conkeep

1 stars 0 forks source link

Conkeep doesn't work in location different than root (/) #1

Open vetash opened 10 years ago

vetash commented 10 years ago

After installation i have next problem:

HTTP_Exception_404 [ 404 ]: Unable to find a route to match the URI: conkeep/index.php SYSPATH/classes/kohana/request.php [ 743 ] 738 739 $processed_uri = Request::process_uri($uri, $this->_injected_routes); 740 741 if ($processed_uri === NULL) 742 { 743 throw new HTTP_Exception_404('Unable to find a route to match the URI: :uri', array( 744 ':uri' => $uri, 745 )); 746 } 747 748 // Store the URI SYSPATH/classes/kohana/request.php [ 171 ] » Kohana_Request->__construct(arguments) DOCROOT/index.php [ 108 ] » Kohana_Request::factory() Environment

unicast commented 10 years ago

Could you provide config of your web server?

vetash commented 10 years ago

Thanks for reply!

I used Apache2 (All of extensions required on installation step is installed) Config: <VirtualHost *:80> ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            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 ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

Directory with conkeep is: /var/www/conkeep/

Also on the server installed zabbix. Zabbix have own conf for apache 2:

root@monsrv:~# cat /etc/apache2/conf.d/zabbix # Define /zabbix alias, this is the default Alias /zabbix /usr/share/zabbix Options FollowSymLinks AllowOverride None Order allow,deny Allow from all ``` php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 # php_value date.timezone Europe/Riga ``` Order deny,allow Deny from all Order deny,allow Deny from all Order deny,allow Deny from all Order deny,allow Deny from all Order deny,allow Deny from all Order deny,allow Deny from all Order deny,allow Deny from all Order deny,allow Deny from all Screen of error: https://www.dropbox.com/s/dr5ypg5nmarr3tv/conkeep_ne_rabotaet.PNG Thanks.
unicast commented 10 years ago

Ah, I see, you trying to install application to location different than root (/). Unfortunately conkeep works only in root directory, you have to create dedicated virtual host for it. Like this:

<VirtualHost *>
    ServerAdmin admin@conkeep.example.com
    ServerName conkeep.example.com
    DocumentRoot /var/www/conkeep.example.com/htdocs/
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>

    ErrorLog /var/log/apache2/conkeep.example.com-error.log
    LogLevel warn
    CustomLog /var/log/apache2/conkeep.example.com-access.log combined
</VirtualHost>