Page 1 of 4
shared installation error!!!
Posted: Thu Jan 19, 2006 1:31 am
by t0m_taylor
hey everyone
ok having a problem installing it shared
every seems to have gone to plan, until this on the install page:
Code: Select all
Warning: session_start(): open(/tmp/sess_045a456b2aae6e1f028bf8b29ad27213, O_RDWR) failed: Permission denied (13) in /usr/local/lib/php/s9y/serendipity_config.inc.php on line 6
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/local/lib/php/s9y/serendipity_config.inc.php:6) in /usr/local/lib/php/s9y/serendipity_config.inc.php on line 6
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/local/lib/php/s9y/serendipity_config.inc.php:6) in /usr/local/lib/php/s9y/serendipity_config.inc.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lib/php/s9y/serendipity_config.inc.php:6) in /usr/local/lib/php/s9y/serendipity_admin.php on line 11
you can see the urls above @
http://dj.tommytaylor.co.uk
i followed the steps here:
http://www.s9y.org/41.html and i have linked it
would be great if someone could help me fix this and then i can get down to installing the site
thanks
tom
Re: shared installation error!!!
Posted: Thu Jan 19, 2006 11:22 am
by garvinhicking
Your /tmp directory must be writable for the webserver to use sessions!
Regards,
Garvin
Posted: Thu Jan 19, 2006 12:31 pm
by t0m_taylor
Ok thanks
What about the double forward slash in the following when i go onto dj.tommytaylor.co.uk i get the following:
http://dj.tommytaylor.co.uk//serendipity_admin.php
Thanks
Tom
Posted: Thu Jan 19, 2006 1:46 pm
by garvinhicking
That's not an issue, you can even use
http://dj.tommytaylor.co.uk//////////// ... _admin.php and everything would work okay
It's a basic path issue, so there's no problem with that.
Regards,
Garvin
Posted: Thu Jan 19, 2006 2:47 pm
by t0m_taylor
ah right ok
so how would i fix this basic path issue, i dont want two forward slashes like //
would rather just have the 1
also in which file would i change the path to its session folder (instead of using tmp as i cannot change the permissions of that folder at the moment)
Thanks
Tom
Posted: Thu Jan 19, 2006 3:13 pm
by garvinhicking
If you don't want the two forward slashes, you must go and edit the Serendipity Core PHP Code and remove it.

It'll be some work to find it, though.
The session.save_path can only be changed via the PHP Configuration, so you should talk to your Provider.
Regards,
Garvin
Posted: Thu Jan 19, 2006 3:20 pm
by t0m_taylor
No worries i can fix the permissions on my tmp folder, which i shall sort once i finish work.
Any idea where i would find this double forward slashes so i can fix it?
Thanks
Tom
Posted: Thu Jan 19, 2006 3:31 pm
by garvinhicking
Okay, great. The /tmp issue should be easily fixable.
About the double slash issue, you need to inspect the files
include/functions_installer.inc.php
include/functions_config.inc.php
include/admin/installer.inc.php
I don't know which one exactly, though. And I really think it's not worth the effort, because "//" is perfectly valid.
Regards,
Garvin
Posted: Thu Jan 19, 2006 4:49 pm
by elf2000
hi t0m_taylor,
The causality which a slash doubles is this.
Code: Select all
if ( !defined('IN_installer') && IS_installed === false ) {
header('Location: ' . ($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('\\', '/', dirname($_SERVER['\
PHP_SELF'])) . '/serendipity_admin.php');
Probably this changes to such processing.
Code: Select all
if ( !defined('IN_installer') && IS_installed === false ) {
header('Location: ' . ($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . 'dj.tommytaylor.co.uk' . str_replace('\\', '/', dirname('/index.php') . '/serendipity_admin.php');
This is the point.
Code: Select all
'dj.tommytaylor.co.uk' . str_replace('\\', '/', dirname('/index.php') . '/serendipity_admin.php');
Probably this changes to such processing.
Code: Select all
'dj.tommytaylor.co.uk' . '/' . '/serendipity_admin.php');
This has been checked also with my server.
This will be reproduced 100%, if s9y is installed in docroot, without preparing a subdirectory.
However, I do not understand the causality which cannot write on /tmp.
Probably I think the problem of a server setup.
For example, does this script work?
Code: Select all
<?php
error_report( E_ALL);
ini_set( "display_errors", "on");
echo "fopen(if shown 'false', file create error):";
$fp = fopen( "/tmp/".rand(), "r");
echo "<br />";
if ( $fp !== FALSE) {
echo "fwrite(if shown 'false', file write error):".var_dump( fwrite( $fp, "test"));echo "<br />\n";
echo "fclose(if shown 'false', file close error):".var_dump( fclose( $fp));echo "<br />\n";
}
?>
This may be a server's problem when an error is displayed by this processing.(i.e. if use linux, Do you enabled selinux?)
Posted: Thu Jan 19, 2006 6:21 pm
by t0m_taylor
Nope that script didnt work, i got:
Fatal error: Call to undefined function: error_report() in /home/tommytay/dj.tommytaylor.co.uk/html/test_tmp.php on line
so that must conclude that my "/tmp" directory is not writable by the server, iv been told to do the following:
chmod a+w -R /tmp
and then it should work??
Thanks
Tom
Posted: Thu Jan 19, 2006 6:49 pm
by elf2000
sorry, "error_report" is mistake, it is typo of "error_reporting".

And also the argument of fopen was mistaken.
I rewriten. Please retry.
Code: Select all
<?php
error_reporting( E_ALL);
ini_set( "display_errors", "on");
echo "fopen(if shown 'false', file create error):";
$fp = fopen( "/tmp/".rand(), "w");
var_dump($fp);
echo "<br />\n";
if ( $fp !== FALSE) {
echo "fwrite(if shown 'false', file write error):"; var_dump( fwrite( $fp, "test")); echo "<br />\n";
echo "fclose(if shown 'false', file close error):"; var_dump( fclose( $fp)); echo "<br />\n";
}
?>
This is a result in my environment.
Code: Select all
fopen(if shown 'false', file create error):resource(4) of type (stream)
fwrite(if shown 'false', file write error):int(4)
fclose(if shown 'false', file close error):bool(true)
Posted: Thu Jan 19, 2006 9:10 pm
by t0m_taylor
OK not a problem, soon as i came home from work i ssh'd in and changed the permissions and thats fine
my next problem is installing the Imagemagick binary!
Posted: Fri Jan 20, 2006 12:06 am
by t0m_taylor
OK this is wierd, just installed the Imagemagick binary, but its still showin yellow as if it cant find it, even tho when i do "which convert" and it returns "/usr/local/bin/convert" so it is there, can't see why the installation wizard is havin the problem??

Posted: Fri Jan 20, 2006 12:16 am
by t0m_taylor
Another thing also, how would i be able to share the user accounts across each blog?
Posted: Fri Jan 20, 2006 12:21 am
by t0m_taylor
yup now im getting the following errors while trying to complete installation
Warning: serendipity_checkinstallation(/home/tommytay/dj.tommytaylor.co.uk/html/include/db/db.inc.php): failed to open stream: No such file or directory in /usr/local/lib/php/s9y/include/functions_installer.inc.php on line 585
Warning: serendipity_checkinstallation(): Failed opening '/home/tommytay/dj.tommytaylor.co.uk/html/include/db/db.inc.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/lib/php/s9y/:/usr/local/lib/php/s9y/bundled-libs/:/usr/local/lib/php/s9y/:/usr/local/lib/php/s9y/bundled-libs/') in /usr/local/lib/php/s9y/include/functions_installer.inc.php on line 585
Cannot execute the convert imagemagick binary