Please report all spam threads, posts and suspicious members. We receive spam notifications and will take immediate action!
Results 1 to 6 of 6

Thread: php probs




  1. #1
    Join Date
    Sep 2002
    Posts
    752

    Default

    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.
    "I'm back!" ^_^

  2. #2
    Join Date
    Sep 2002
    Posts
    752

    Default

    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
    "I'm back!" ^_^

  3. #3
    Join Date
    Nov 2001
    Posts
    674

    Default

    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!

  4. #4
    Join Date
    Sep 2002
    Posts
    752

    Default

    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
    "I'm back!" ^_^

  5. #5
    Join Date
    Sep 2002
    Posts
    752

    Default

    all i know is the prob is mysql or database related..
    "I'm back!" ^_^

  6. #6
    Join Date
    Nov 2001
    Posts
    674

    Default

    What's the line of code on line 48?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •