IIS6 PHP5.2.3 MySQL5 Serendipity Problem

Having trouble installing serendipity?
Post Reply
bently
Regular
Posts: 8
Joined: Tue Aug 07, 2007 11:46 am
Location: AUS

IIS6 PHP5.2.3 MySQL5 Serendipity Problem

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: IIS6 PHP5.2.3 MySQL5 Serendipity Problem

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bently
Regular
Posts: 8
Joined: Tue Aug 07, 2007 11:46 am
Location: AUS

Post 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
bently
Regular
Posts: 8
Joined: Tue Aug 07, 2007 11:46 am
Location: AUS

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bently
Regular
Posts: 8
Joined: Tue Aug 07, 2007 11:46 am
Location: AUS

Post by bently »

Hi Garvin,

Yes, both file are there. I get a white page now.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bently
Regular
Posts: 8
Joined: Tue Aug 07, 2007 11:46 am
Location: AUS

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bently
Regular
Posts: 8
Joined: Tue Aug 07, 2007 11:46 am
Location: AUS

Post by bently »

Do you mean within IIS or folder security? If so all file/folders have read write permissions within IIS.

bently
bently
Regular
Posts: 8
Joined: Tue Aug 07, 2007 11:46 am
Location: AUS

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bently
Regular
Posts: 8
Joined: Tue Aug 07, 2007 11:46 am
Location: AUS

Post by bently »

Yep thats my conclusion also :)

Think I will document all this for future use.

Thanks again mate!

Bently
Post Reply