Roundcube Community Forum

 

Installation problem

Started by Watchkeeper, April 16, 2008, 04:20:33 PM

Previous topic - Next topic

Watchkeeper

I'm having problems installing Roundcube.

I've uploaded the files and run the install script. This produces the following error message:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at
 /home/.../public_html/.../mail/installer/index.php:8) in /home/.../public_html/.../mail/installer/index.php on line 29

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at
 /home/.../public_html/.../mail/installer/index.php:8) in /home/.../public_html/.../mail/installer/index.php on line 29


After that, the environment check throws up the following:

magic_quotes_gpc: NOT OK (is '1', should be '0')

I've checked the .htaccess file in public_html (put there by a Drupal installation) and have the following:


 php_value magic_quotes_gpc      0
(and more code to the end tag)


 php_value magic_quotes_gpc        0
(and more code to the end tag)


 php_value magic_quotes_gpc        0
(and more code to the end tag)

The php version is given as Version: OK (PHP 4.4.8 detected)

Any advice would be welcomed!

Rafaello

create php.ini in your root directory
and put in php.ini line:

magic_quotes_gpc = Off

this fix problem
magic_quotes_gpc: NOT OK (is '1', should be '0')

but what about..

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at
 /home/.../public_html/.../mail/installer/index.php:8) in /home/.../public_html/.../mail/installer/index.php on line 29

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at
 /home/.../public_html/.../mail/installer/index.php:8) in /home/.../public_html/.../mail/installer/index.php on line 29

i don't known

help me!

Watchkeeper

Quote from: Rafaello create php.ini in your root directory
and put in php.ini line:

magic_quotes_gpc = Off

this fix problem

No, sorry, it doesn't. Neither does putting the php.ini file in the mail directory.

Watchkeeper


evb

Put a standard phpinfo.php file in your roundcube root and get the page by your browser. It should give you information about your php installation.
Find where the used php.ini resides and verify if magic_quotes_gpc is off.
The parameter should allso be listed in the phpinfo page.

Mark F

FWIW:

My install puts the php.ini file in /etc/php5/apache2 directory

I don't know if  the error messages matter, but they will stop being sent to the screen if you scroll down the php.ini file and look for error logging to screen. Sometimes useful for debugging, but not for a production environment!

zyurph

Quote from: Watchkeeper;11936Bumping this request.
I'm in the same boat, does anyone know of a solution?

Watchkeeper

Quote from: evb;12144Find where the used php.ini resides and verify if magic_quotes_gpc is off.
Thanks, evb. I followed your suggestion and this is what I got:

magic_quotes_gpc    On    On
magic_quotes_runtime    Off    Off
magic_quotes_sybase    Off    Off


The first parameter is the local value and the second the master value. I've referred the matter to my hosting company for their attention as I don't have access to php.ini.

Can anyone help with the initial error messages?

Cannot send session cookie - headers already sent
Cannot send session cache limiter - headers already sent

zyurph

I was able to get it to work by putting a php.ini file in the installer directory with Magic_quotes_gpc Off in the file.

Watchkeeper

Thanks, zyurph! That's cured it. So the php.ini file had to go in the installer directory, eh? I had it in the root and mail directories.

Oh, and I believe variable names are case sensitive so I used magic_quotes_gpc.