View Single Post
Old 12-11-2009, 09:57 AM   #1
Junior Member
 
Join Date: Dec 2009
Posts: 1
crimson is on a distinguished road
Default Installing FastCGI has broke squirrelmail and phpmyadmin

I'm on debian lenny and recently installed FastCGI for php in ISPManager via this post: http://forum.ispsystem.com/en/showth...hlight=fastcgi

Now, I can't get into phpmyadmin or webmail.

If I try to restart apache2, I get:

Code:
Syntax error on line 6 of /etc/apache2/conf.d/phpmyadmin.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
After a lot of searching, I found that fastcgi apparently cannot be used with php_admin_flags (as those are php_mod calls) and therefore the two files

phpmyadmin.conf:

Code:
Alias /x /usr/share/phpmyadmin/
<Directory /usr/share/phpmyadmin>
	AllowOverride All
	RemoveHandler .php
	AddType application/x-httpd-php .php
	php_admin_value open_basedir /usr/share/phpmyadmin:/etc/phpmyadmin:/etc/phpMyAdmin:/tmp:.:..:./:../
	php_admin_value upload_tmp_dir /tmp
	php_admin_value include_path /etc/phpmyadmin:/etc/phpMyAdmin:.:..
	php_admin_value session.save_path /tmp
	php_admin_value safe_mode off
	DirectoryIndex index.php
	Order allow,deny
	Allow from all
</Directory>
and squirrelmail.conf:

Code:
Alias /x /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
	RemoveHandler .php  .php3 .php4 .phtml
	AddType application/x-httpd-php .php  .php3 .php4 .phtml
	php_admin_value open_basedir none
	php_admin_value upload_tmp_dir /tmp
	php_admin_value session.save_path "/tmp"
	php_admin_value include_path .:..
	php_admin_value safe_mode off
	DirectoryIndex index.php
	Order allow,deny
	Allow from all
</Directory>
won't let apache restart since they make calls to php_admin_value. If I comment these lines out, I can restart apache, but then of course phpmyadmin and webmail don't work.

Is there a way around this? Can these files be rewritten to work with fastcgi?

Thank you for any help!

Last edited by crimson; 12-11-2009 at 10:01 AM.
crimson is offline   Reply With Quote