Installation halts on a windows system

Having trouble installing serendipity?
Post Reply
aeffchentoet

Installation halts on a windows system

Post by aeffchentoet »

Hello,
don't know, if the problem ist alredy known, i haven't found anything about it:
When you install s9y on a windows system you get a blank page just after you press the button "vollständige installation" (it doesn't matter if you choose "einfache Installation" or "fortgeschrittene Installation"). The problem is, that the function serendipity_checkInstallation (file include/functions_installer.inc.php) uses
@include_once($_POST['serendipityPath'] . 'include/db/db.inc.php');
and in the next line
@include_once(S9Y_INCLUDE_PATH . 'include/db/db.inc.php');
On a windows system the POST Variable has a slash '/' as path seperator while the S9Y Constant has backslashes. So there will be a redeclare error that is not shown because of the '@' prefix. I don't know if there will be more errors, because i installed it on linux server an it just works fine.
Is there a workaround for wamp?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Installation halts on a windows system

Post by garvinhicking »

Hm, the last time I installed s9y on XAMPP just fine, without those problems. Usually, mixing "\" and "/" is not a good thing, but should still work...I'm currently a bit short of time so I need to look into this later.

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/
MASiR
Regular
Posts: 22
Joined: Thu Mar 31, 2005 2:30 am

Post by MASiR »

*bump*

same problem here ..
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Masir, describe your environment. I've just successfully installed s9y 1.0-beta1 on a IIS 5.0 webserver.

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/
MASiR
Regular
Posts: 22
Joined: Thu Mar 31, 2005 2:30 am

Post by MASiR »

Yeah, sorry garvin ..


I previouslyposted in http://www.s9y.org/forums/viewtopic.php?t=4464&start=15 ..

What happened so far is a long story, I'll recap:
- I had 0.8-beta4 running online
- I wanted to update for several reasons, but it didn't work, blank browser
- tried to go back and copied 0.8-beta4 over the new one online
- no success, same problem as the new version
- no error messaging on the online server, so I tried to get it running on a local server, which is a win32 system with apache+mysql on a win2000 system

now I am here ..


What my intentions are:
- get the old blog to run again (anywhere), just to be sure I still have my old entries
- fix the deleted files after this
- install a brand new s9y on a new server online with the old entries inserted
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You should then do this:

1. Enable your global and verbose PHP error reporting in your Windows Apache/PHP environment.

2. Copy your 0.8-beta4 installation onto your windows apache environment

3. Edit the file serendipity_config_local.inc.php and insert the right DB permissions

4. Upload your database to your windows/apache environment

5. Access your windows environment via http://yourhost/serendipity/serendipity_admin.php and see if that works. Check the configured paths, if it does.

The most important thing for you is to check that you transfered all serendipity files properly. Serendipity itself runs well on Windows.

You might want to install a fresh serendipity 1.0-beta1 on your windows server, for starters.

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/
MASiR
Regular
Posts: 22
Joined: Thu Mar 31, 2005 2:30 am

Post by MASiR »

After fixing a path that I overlooked in the admin panel (I could acces that already) I see that the admin panel reloaded with CSS .. Before that, everyting was in times new roman and black on white ..

now the blog sais
Warning: Smarty error: unable to read resource: "" in C:\data\sites\blog\bundled-libs\Smarty\libs\Smarty.class.php on line 1084

I can never be a 100% sure that all system files are copied/restored .. The DB copy is good .. so you say that I should install a new version of s9y and restore the old DB over it?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The error message you are getting means one of the following:

1. The "serendipityPath" setting is wrong
2. The templates_c folder does not exist or is not writable
3. A specific file in your templates/ directory is missing, or your templates/default/ folder is missing, or some files in these directories are missing. Compare it with a fresn serendipity installation Zip and see if all files are there.

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/
MASiR
Regular
Posts: 22
Joined: Thu Mar 31, 2005 2:30 am

Post by MASiR »

It's working ..

I got things to work locally, and later online .. Final bugger was the not-writable setting of the templates_c dir .. Smarty looked for the template in a wrong dir

Seems it was a mix up of copied versions to another dir and just config settings getting seriously mixed up .. restoring a database from somewhere else was not really helping either ;)

What should the cmod settings for the local.inc file be? now it is on 777 .. a bit too open I reckon?

Thanks for getting me in the right mindset ..

Now the next mission is the port to the new server .. I am not just moving, it is an upgrade+move .. So you say I should just install the latest version, export all postings from the old blog and import that there?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Great to see some progress on this! I'm so sorry that we were not able to check this out earlier becaues of the missing PHP errors. :(

About the chmod permissions: The local.inc file should usually only be read+writable for the webserver, and nobody else. So this very much depends on your setup..."0700" is the default.

As for your moving: You should first move over the current installation. Then perform the usual upgrade: Extract the new release over the existing files, open your admin panel, accept the upgrader and all should be well.

You should not need to export anything, and neither do you need to install a fresh serendipity at this point! "Upgrading" is the key, Serendipity is targetted at not requiring any "imports" from itself. :-)

Please read more in our FAQ about the upgrade process.

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/
MASiR
Regular
Posts: 22
Joined: Thu Mar 31, 2005 2:30 am

Configuration error or something something

Post by MASiR »

Hi!

I moved my blog again .. :)

Now I found out what really went wrong .. The paths in the configuration file were ok, the cmod settings were good, yet still the blog did not work ..

Reason was probably because I copied the old-server's db .. In there there are stored settings .. I had to go into the admin of the non-working blog to set the paths correctly - which did the job (after setting write access to the conf. file) ..

just to let you know ..
Post Reply