Member
Member
Rafe   2009-08-06, 18:08
#1

Am trying to setup ZenPhoto on a new server. I've backed up and restored my database (from old server to new server). But files etc. is all new, straight out of the ZIP file for 1.2.6 RC2.

I've not installed into a sub-folder as I intend to use ZenPhoto/ZenPage for the whole website.

Setup is giving me this error:

Fatal error: Call to undefined function: file_put_contents() in D:\Www\root\www.forgot.co.uk\htdocs\zp-core\setup.php on line 1097

There are a few warnings from setup.php and I'm trying to fix the ones I can.

Member
Member
Rafe   2009-08-06, 19:10
#2

I restarted Apache and now I get

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, rafe@forgot.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

With this in the error log:

[Thu Aug 06 20:09:00 2009] [alert] [client 82.69.63.243] D:/Www/root/www.forgot.co.uk/htdocs/.htaccess: RewriteBase: argument is not a valid URL

Thanks for any assistance!

Member
Member
Rafe   2009-08-06, 19:15
#3

Sorry, had a go at fixing it myself and succeeded. Must really annoy you

I manually changed .htaccess to read

RewriteBase /

There was a load of ### after it.

Right, onto the next issue

Member
Member
Rafe   2009-08-06, 19:31
#4

Nope, setup.php wants to run again and it does this:

.htaccess RewriteBase is \ (fixed)

except that's not fixing it as I need /. So I commented out that chunk of setup.php

Then when trying to do the robots file I get:

Fatal error: Call to undefined function: file_put_contents() in D:\Www\root\www.forgot.co.uk\htdocs\zp-core\setup.php on line 1097

So I've manually created robots.txt and that's gone away.

Apologies for the blogging! Hope this last post is of some use to diagnose the problems in setup.php. If I can help debug please let me know.

Thanks!

Member
Member
sbillard   2009-08-06, 23:11
#5

The file_put_contents() problem is because you are running PHP4 and we missed that this was a PHP5 function. That is corrected in the nightly build.

The wrong directional slash is more interesting. That is actually got from the script name as reported by the $_SERVER variable. So somehow your configuraton must be reporting files with \ as separators even though it requires '/' as the separator.

Member
Member
Rafe   2009-08-07, 09:26
#6

Thanks, I will update and then let you know.

Member
Member
Rafe   2009-08-07, 13:12
#7

Fixed! No errors on running setup.php and correctly places / in the .htaccess file.

My site still doesn't work fully if I turn mod_rewrite on, but that doesn't bother me.

Many thanks.

Unregistered
Unregistered
Guest   2009-08-08, 05:03
#8

The wrong directional slash is more interesting.

Administrator
Administrator
acrylian   2009-08-08, 08:51
#9

@azz: Stop posting unrelated URLs on forum posts or you will be banned. Consider this the first and last warning.

Member
Member
sbillard   2009-08-08, 23:44
#10

acrylian was far too kind. azz, your posts are all self-centerd SPAM. You ARE banned!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.