WordPress.org

Forums

Install fails, gives msg: 'line1: ?php: No such f (12 posts)

  1. solorzar
    Member
    Posted 10 years ago #

    I ran wp-admin/install.php, and received these error messages:
    wp-admin/install.php: line1: ?php: No such file or directory
    wp-admin/install.php: line 2: =; command not found
    wp-admin/install.php; line 3: syntax error near unexpected token '../wp-config.php' '
    wp-admin/install.php: line 3:
    if (!file_exists('../wp..config.php')) '
    Any idea what's wrong and how to fix?
    thanks,
    robert

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Do you have php installed on the server ?
    To find out, do this:
    Paste this into a new Notepad / BBEdit file
    <?php phpinfo(); ?>
    Save as 'info.php'
    Upload to server. Visit in your browser - http://www.example.com/info.php
    That will give you info about your php version.

  3. solorzar
    Member
    Posted 10 years ago #

    Php is installed, as is MySQL and versions meet requirements.

  4. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Were the files uploaded in Binary mode instead of ASCII mode ?

  5. solorzar
    Member
    Posted 10 years ago #

    Hmm, don't know...I'll check. This is on a rh9 box...can't remember how I unpacked/installed WordPress...rpms? tar.gz? I'll have to look at the Worpress docs...

  6. frschoenfeld
    Member
    Posted 10 years ago #

    Any updates on this? I'm having the exact same problem.

  7. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Two issues cause this:

    1 - PHP is not actualy installed on the server.
    or
    2 - the file has been incorrectly uploaded as mentioned above.

    What steps have you tried ?

  8. frschoenfeld
    Member
    Posted 10 years ago #

    I'm using a hosted server, if that makes any difference.

    When I run "php -v" is says: PHP 4.3.3 (cgi) (built: Sep 1 2003 04:45:21) so I'm assuming that's it's installed and running and I have phpbb running successfully.

    I've tried:
    --unzipping the .zip file on my workstation and uploading it in text mode
    --unzipping the .zip file on my workstation and uploading it in binary mode
    --uploaded the .gz file and untarred it on my server.

    I get the same error every way that I did it.

    Thanks for your help.

  9. NuclearMoose
    Member
    Posted 10 years ago #

    Have you maintained the integrity of the folder/directory structure when decompressing the archives?

  10. frschoenfeld
    Member
    Posted 10 years ago #

    I used "tar zxvf" on the server and "use directories" in winzip on my workstation.

    It looks like the directories are all there and similar to the way it looks when I unzip in on my workstation.

  11. frschoenfeld
    Member
    Posted 10 years ago #

    I'm not very smart :-(. I was trying to run install.php from the console.

    I ran it from my browser and it's working now.

    Thanks for tolerating me.

  12. NuclearMoose
    Member
    Posted 10 years ago #

    Thanks for sharing that information, frschoenfeld. That gives us another question to ask in the future, should someone else run into the same issue.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.