Error installing 1.2.6 RC2 onto new webspace

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.

Comments

  • Rafe Member
    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!
  • Rafe Member
    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 :)
  • Rafe Member
    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!
  • 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.
  • Rafe Member
    Thanks, I will update and then let you know.
  • Rafe Member
    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.
  • The wrong directional slash is more interesting.

    <URLs removed by moderator>
  • acrylian Administrator, Developer
    @azz: Stop posting unrelated URLs on forum posts or you will be banned. Consider this the first and last warning.
  • acrylian was far too kind. azz, your posts are all self-centerd SPAM. You ARE banned!
Sign In or Register to comment.