Announcement

Collapse
No announcement yet.

install problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • install problem

    When i run install php, the script print a very long chain of codes like this, but this is only a part.



    You are not running PHP - Please contact your system administrator.\n\n"; flush(); if ($onvservers==1 and substr($val, 0, 5)=="ALTER") { $DB_site->reporterror=0; } $DB_site->query($val); if ($onvservers==1 and substr($val, 0, 5)=="ALTER") { $DB_site->connect(); $DB_site->reporterror=1; } } unset ($query); unset ($explain); } if (!isset($action)) { ?> vBulletin 2.0.0 Install Script

    (Note: Please be patient as some parts of this may take some time.)



    Next step -->

    \n"; } // end step 1 if ($step==2) { /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= STEP 2 ------ + check config.php =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */ [email protected]("./config.php","a"); @fclose($canwrite); [email protected]("./config.php","r"); @fclose($canread); $fileexists=file_exists("./config.php"); if ($canwrite==0 and !$fileexists) { // file does not exist and cannot write new file echo "
    Cannot find config.php file and cannot create new one automatically.

    "; echo "
    Make sure that you have uploaded it and that it is in the admin directory. It should look something like this:

    "; ?>
    <?php

    /////////////////////////////////////////////////////////////
    // Please note that if you get any errors when connecting, //
    // that you will need to email your host as we cannot tell //
    // you what your specific values are supposed to be //
    /////////////////////////////////////////////////////////////

    // type of database running
    // (only mysql is supported at the moment)
    $dbservertype="mysql";

    // hostname or ip of server
    $servername="localhost";

    // username and password to log onto db server
    $dbusername="root";
    $dbpassword="";

    // name of database
    $dbname="forum";

    // allow password viewing / editing in control panel
    // 0 = not visible or editable
    // 1 = not visible, but can be edited
    // 2 = visible and can be edited
    $pwdincp=0;

    // technical email address - any error messages will be emailed here
    $technicalemail = "[email protected]";

    // use persistant connections to the database
    // 0 = don't use
    // 1 = use
    $usepconnect = 1;

    ?>
    $technicalemail

    \n"; echo "
    Only continue to the next step if those details are correct. If they are not, please edit your config.php file and reupload it. The next step will test database connectivity.

    "; if ($technicalemail=="[email protected]") { echo "
    Please update your 'Technical email' in your config.php before continuing.

    "; } else { echo "
    Next step -->

    \n"; } } if ($canwrite!=0 and $fileexists) { // test out config include("./config.php"); echo "
    "; echo "
    Please confirm the details below:

    \n"; echo "
    Database server type:

    \n"; echo "
    Database server hostname / IP address:

    \n"; echo "
    Database username:

    \n"; echo "
    Database password:

    \n"; echo "
    Database name:

    \n"; echo "
    Technical email:

    \n"; echo "


    "; if ($technicalemail!="[email protected]") { echo "


    \n"; } } if ($canwrite!=0 and !$fileexists) { echo "
    "; echo "
    Please confirm the details below:

    \n"; echo "
    Database server type:

    \n"; echo "
    Database server hostname / IP address:

    \n"; echo "
    Database username:

    \n"; echo "
    Database password:

    \n"; echo "
    Database name:

    \n"; echo "
    Technical email:

    \n"; echo "


    "; } } // end step 2 if ($step=="writeconfig") { //write config file if ($technicalemail=="[email protected]") { echo "
    Please enter a new email address in the technical email field.

    "; exit; } $configfile="<"."?php ///////////////////////////////////////////////////////////// // Please note that if you get any errors when connecting, // // that you will need to email your host as we cannot tell // // you what your specific values are supposed to be // ///////////////////////////////////////////////////////////// // type of database running // (only mysql is supported at the moment) \$dbservertype='$dbservertype'; // hostname or ip of server \$servername='$servername'; // username and password to log onto db server \$dbusername='$dbusername'; \$dbpassword='$dbpassword'; // name of database \$dbname='$dbname'; // allow password viewing / editing in control panel // 0 = not visible or editable // 1 = not visible, but can be edited // 2 = visible and can be edited \$pwdincp=0; // technical email address - any error messages will be emailed here \$technicalemail='$technicalemail'; // use persistant connections to the database // 0 = don't use // 1 = use \$usepconnect=1; ?".">"; if (file_exists($path)!=0) { unlink($path); } $filenum=fopen("./config.php","w"); fwrite($filenum,$configfile); fclose($filenum); $step=3; } if ($step>=3) { // step 3 and after, we are ok loading this file include("./config.php"); } if ($step==3) { /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= STEP 3 ------ + attempt database connectivity =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */ echo "

  • #2
    Okay it seems you're not running PHP on the server. You could either try using the .php3 or .phtml versions, or contact your host.

    Comment


    • #3
      Iam runing php3

      i thoug i wasnt runing php but i check, there is php installed on the server


      php 3

      Comment


      • #4
        take this code and paste it into a text document:

        Code:
        <?php
        echo "Hello World";
        ?>
        Now save that as hello.php and upload it to your website. Next, browse to that file using your web browser and see if you get a little message on screen saying "Hello World" (with no other text).

        You probably won't.

        Next, rename the file to hello.php3 and browse to the file again. Did it work? If this doesn't work either, you really need to contact your host to find out any special conditions they have for running PHP scripts.

        Comment


        • #5
          thanks

          It worked with .php3


          Does that mean I need to rename every single file to php3?

          Comment


          • #6
            You can just download the .php3 version from the members' area.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X