No announcement yet.

php probs

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

  • php probs

    Trying to host my friends forum. can't get it to load..
    I try to start the index.php from a browser and get:

    Security Alert! The PHP CGI cannot be accessed directly.
    This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

    For more information as to why this behaviour exists, see the manual page for CGI security.

    For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.

  • #2
    Also wanted to create a small forum for myself for people to catch up with me, as I am hopeless with email and keeping in contact at times..
    But when but after completeing the install.php and submitting I got this message...

    Warning: mysql_connect(): Can't connect to MySQL server on 'stormybaka' (10061) in D:\stormybaka\forum\db\mysql4.php on line 48

    Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in D:\stormybaka\forum\db\mysql4.php on line 330

    Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in D:\stormybaka\forum\db\mysql4.php on line 331
    phpBB : Critical Error

    Could not connect to the database

    Comment


    • #3
      Your second problem stems from the first, but it's nice and easy to fix :).

      Simply open up your php.ini file (it's usually stored in X:\Windows\) with Notepad and add the following line at the very bottom;

      cgi.force_redirect = 0


      That should fix it up, good luck!

      Comment


      • #4
        Thanks osiris, but already did that..but didn't take effect till I restarted the server..Me bad!!

        Now I get these messages:

        for my friends forum being transferred I got:
        phpBB : Critical Error

        Could not connect to the database

        for the one I am trying to install I got:
        Warning: mysql_connect(): Can't connect to MySQL server on 'stormybaka' (10061) in D:\stormybaka\forum\db\mysql4.php on line 48

        Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in D:\stormybaka\forum\db\mysql4.php on line 330

        Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in D:\stormybaka\forum\db\mysql4.php on line 331
        phpBB : Critical Error

        Could not connect to the database

        Comment


        • #5
          all i know is the prob is mysql or database related..

          Comment


          • #6
            What's the line of code on line 48?

            Comment

            Working...
            X