Author Topic: Installation problem  (Read 7592 times)

Offline Watchkeeper

  • Newbie
  • *
  • Posts: 6
Installation problem
« on: April 16, 2008, 04:20:33 PM »
I'm having problems installing Roundcube.

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

Code: [Select]
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:

Code: [Select]

 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!

Offline Rafaello

  • Newbie
  • *
  • Posts: 1
Re: Installation problem
« Reply #1 on: April 17, 2008, 10:41:41 AM »
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!

Offline Watchkeeper

  • Newbie
  • *
  • Posts: 6
Re: Installation problem
« Reply #2 on: April 18, 2008, 07:16:20 AM »
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.

Offline Watchkeeper

  • Newbie
  • *
  • Posts: 6
Installation problem
« Reply #3 on: May 11, 2008, 05:24:18 AM »
Bumping this request.

Offline evb

  • Jr. Member
  • **
  • Posts: 34
Installation problem
« Reply #4 on: May 21, 2008, 02:11:55 AM »
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.

Offline Mark F

  • Newbie
  • *
  • Posts: 2
Installation problem
« Reply #5 on: May 21, 2008, 08:36:42 AM »
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!

Offline zyurph

  • Newbie
  • *
  • Posts: 6
Installation problem
« Reply #6 on: May 30, 2008, 04:05:54 PM »
Quote from: Watchkeeper;11936
Bumping this request.
I'm in the same boat, does anyone know of a solution?

Offline Watchkeeper

  • Newbie
  • *
  • Posts: 6
Installation problem
« Reply #7 on: June 04, 2008, 09:57:45 AM »
Quote from: evb;12144
Find 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

Offline zyurph

  • Newbie
  • *
  • Posts: 6
Installation problem
« Reply #8 on: June 04, 2008, 10:03:40 AM »
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.

Offline Watchkeeper

  • Newbie
  • *
  • Posts: 6
Installation problem
« Reply #9 on: June 04, 2008, 12:08:02 PM »
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.