Page 1 of 1

IIS6 PHP5.2.3 MySQL5 Serendipity Problem

Posted: Tue Aug 07, 2007 11:53 am
by bently
Hi guys,

I've come across a strange problem while installing serendipity on my IIS6 web server for a friend of mine.

- Serendipity v1.1.3 pre-installation report -

PHP installation
Operating system Windows NT 5.2, i586
Webserver SAPI isapi
PHP version >= 4.1.2 Yes, 5.2.3
Database extensions MySQL, MySQLi
Session extension Yes
PCRE extension Yes
GDlib extension Yes
OpenSSL extension Yes
mbstring extension Yes
iconv extension Yes
zlib extension Yes
Imagemagick binary Not found [?]

php.ini configuration
Recommended Actual
safe_mode OFF OFF
register_globals OFF OFF
magic_quotes_gpc OFF OFF
magic_quotes_runtime OFF OFF
session.use_trans_sid OFF OFF
allow_url_fopen ON ON
file_uploads ON ON
post_max_size 10M 15M
upload_max_filesize 10M 20M

Permissions
c:\inetpub\wwwroot/blog/ Writable
c:\inetpub\wwwroot/blog/templates_c Writable
c:\inetpub\wwwroot/blog/archives/ Writable
c:\inetpub\wwwroot/blog/uploads/ Writable
Execute Imagemagick binary Not found [?]

Okay now I have run through the installation following this page and it reports that it was installed correctly, however when I click on the "Click here to go to your blog" link it returns me to the pre-installation page.

For the life of me I cant find whats wrong.

Ive tried dropping the sql database and recreating it, ive tried reinstalling serendipity and each has had no effect. Is Imagemagick required and could this be why it is not working as it should? If so, does anyone have any pointers for installing Imagemagick on windows to be compatible with serendipity.

Regards,

Bently

Re: IIS6 PHP5.2.3 MySQL5 Serendipity Problem

Posted: Tue Aug 07, 2007 12:39 pm
by garvinhicking
Hi!

Hm, can you see if the SQL Database-Tables were created? Also, after installation you should have a 'serendipity_config_local.inc.php' file in your s9y directory, if that could not be created, you might run into write privilege problems?

It should not be related to imagemagick at all...

Regards,
Garvin

Posted: Tue Aug 07, 2007 1:14 pm
by bently
Hi Garvin,

Yes the database was populated. I do not have a 'serendipity_config_local.inc.php' although I do have a 'serendipity_config.inc.php' file.

Bently

Posted: Tue Aug 07, 2007 1:31 pm
by bently
I've managed to get it to create the local.inc.php file and it no longer brings me back to the pre installation page by changing the path to serendipity (expert installation option) to use forward slashes instead of back slashes, however now I just get a blank white page.

If i go straight to the serendipity_admin.php page I can log in but everytime I try to go to a menu item it asks me to log in again.

Pullin my hair out over this the last two days :)

Bently

Posted: Tue Aug 07, 2007 1:32 pm
by garvinhicking
Hi!

Okay, then it definitely seems as if s9y cannot write the local file. Can you check the write/directory permissions?

Is a .htaccess file created?

You could try to create the serendipity_config_local.inc.php manually after installation, it should look something like this:

Code: Select all

<?php
        /*
          Serendipity configuration file
          Written on Sun, 08 Jul 2007 19:56:09 +0200
        */

        $serendipity['versionInstalled']  = '1.3-alpha1';
        $serendipity['dbName']            = 'serendipity';
        $serendipity['dbPrefix']          = 'serendipity10_';
        $serendipity['dbHost']            = '127.0.0.1';
        $serendipity['dbUser']            = 'root';
        $serendipity['dbPass']            = 'root';
        $serendipity['dbType']            = 'mysql';
        $serendipity['dbPersistent']      = false;

        // End of Serendipity configuration file
        // You can place your own special variables after here:
?>


Regards,
Garvin

Posted: Tue Aug 07, 2007 1:58 pm
by bently
Hi Garvin,

Yes, both file are there. I get a white page now.

Posted: Tue Aug 07, 2007 2:10 pm
by garvinhicking
Hi!

Did you create them manually now? If yes, did you enter the right credentials into the file?

A white pages means that PHP is generating a fatal PHP error which is not displayed. Can you have a look at your IIS/CGI error output logs? There should be a fatal error notice that tells you what to do. Alternatively, you could temporarily enable the 'display_errors' php.ini directive to see the error?

Most likely, the error will tell you that serendipity is not able to write to the directory 'templates_c'. Which points to invalid directory/write permissions again, can you make sure that PHP is able to write to the mentioned directory?

Regards,
Garvin

Posted: Tue Aug 07, 2007 2:37 pm
by bently
I let them create themselves. Here is the php output from the blank page.

Warning: Smarty::include(c:\inetpub\wwwroot/blog/templates_c\carl_contest^%%89^897^8975E977%%index.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\blog\bundled-libs\Smarty\libs\Smarty.class.php on line 1258

Warning: Smarty::include() [function.include]: Failed opening 'c:\inetpub\wwwroot/blog/templates_c\carl_contest^%%89^897^8975E977%%index.tpl.php' for inclusion (include_path='.;C:\php5\pear;C:\Inetpub\wwwroot\blog/bundled-libs/;C:\Inetpub\wwwroot\blog/bundled-libs/Smarty/libs/;C:\Inetpub\wwwroot\blog/;') in C:\Inetpub\wwwroot\blog\bundled-libs\Smarty\libs\Smarty.class.php on line 1258

I do appreciate your help Garvin.

Bently

Posted: Tue Aug 07, 2007 2:41 pm
by garvinhicking
Hi!

Sadly exactly what I expected. PHP is not able to write files to the directory, which was also the initial problem during installation.

You really need to check your directory permissions.

Best regards,
Garvin

Posted: Tue Aug 07, 2007 2:50 pm
by bently
Do you mean within IIS or folder security? If so all file/folders have read write permissions within IIS.

bently

Posted: Tue Aug 07, 2007 3:23 pm
by bently
Thats a joke.. Well its working now thanks for your assistance Garvin.
I created another instance in IIS, copied the serendipity files to a new directory in C:\Inetpub\ and ran through the process again, worked flawlessly.

Bently

Posted: Tue Aug 07, 2007 3:43 pm
by garvinhicking
Hi!

Hehe. Sounds like Microsoft... ;-)

I myself only have an apache, so I sadly don't know how write/read permissions are handled and configured with IIS...

Regards,
Garvin

Posted: Wed Aug 08, 2007 1:21 am
by bently
Yep thats my conclusion also :)

Think I will document all this for future use.

Thanks again mate!

Bently