PDA

View Full Version : Sugar installation PHP error


pborm
22nd August 2006, 18:01
Hello, I'm currently installing a Sugar instance. I get two errors or warnings,

Writable Session Save Path () Not A Valid Directory
PHP Memory Limit >= 32M Warning: 8M (Set this to 32M or larger in your php.ini file)


the session save path dissappear if I turn on Safe mode inside ispconfig, but sugar doesn't want safe mode turned on.

I'm using Fedora. I also tried manually editing the /etc/php.ini file with no effect. My guess is that I'd have to put something in the "Apache Directives" field in the ISPConfig. Any ideas??

patulo
22nd August 2006, 18:19
Edit "/etc/php4/apache2/php.ini" and set this:

memory_limit = 32M
session.save_path = /var/tmp

and, check if /var/tmp exist and if it has 777 permisions.

pborm
22nd August 2006, 18:23
I'm running Fedora. I get to the apache stuff through /etc/httpd..... and my php.ini is in /etc/php.ini

I've tried setting the stuff in php.ini, but for some reason its not recognizing it there... I have the memory_limit set to 40M there and I already did a chmod 777 on the directory it has the session_save_path as

pborm
22nd August 2006, 18:24
oh yeah, I'm also running php 5

patulo
22nd August 2006, 18:31
try a find / -name "php.ini", to see if are other config fie that could be used by apache.

Just to be sure, are you restarting apache when you change the php.ini ?.
Are you using mod_php or php-cgi ?

pborm
22nd August 2006, 18:46
ok, I added this to the "Apache Directives" section in the config for the site in ISPConfig...

php_admin_value open_basedir /var/www/html/web10/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/html/web10/phptmp/
php_admin_value session.save_path /var/www/html/web10/phptmp/
php_admin_value memory_limit 32M

Now, everything greens up, but I get this new error....

PHP version OK (ver 5.0.5)
Not Available

falko
23rd August 2006, 16:58
Try to remove
php_admin_value open_basedir /var/www/html/web10/
and make sure PHP Safe Mode is disabled.

pillul
23rd August 2006, 18:41
and restart apache !