September 10, 2010, 09:44:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Work on Kolab2/Gentoo-2.2 has stopped. The project has been deprecated (see board Kolab2/Gentoo).
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: 70_mod_php5.conf  (Read 3220 times)
xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« on: May 29, 2007, 01:48:24 AM »

When going to https://localhost/admin/ after a fresh install I'm greeted by a Forbidden message. When I check the error log it says

/var/log/apache2/localhost_ssl_error_log
Code:
[Mon May 28 20:11:44 2007] [error] [client 192.168.0.100] client denied by server configuration: /usr/lib/php5/bin/php-cgi

to fix the problem I modified the PHP5CGI handler in modules.d/70_mod_php5.conf to read

Code:
# handler for PHP 5 scripts
<IfDefine PHP5CGI>
    ScriptAlias /php5-cgi /usr/lib/php5/bin/php-cgi
    Action php5-cgi /php5-cgi
    AddHandler php5-cgi .php5 .php
    AddDirectoryIndex index.php index.phtml

    <Directory /usr/lib/php5/bin/>
        Options +ExecCGI +FollowSymLinks
        Order allow,deny
        Allow from all
        AllowOverride None
    </Directory>
</IfDefine>

Do you know of a better solution?
Logged

Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #1 on: May 29, 2007, 03:03:44 PM »

Actually I modified the template for /etc/conf.d/apache2 to use the -D PHP5 flag. It makes more sense to use the non-cgi version of PHP. I used this only for low-memory servers but this should not be the default.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!