PDA

View Full Version : php probs



stormybaka
06-01-2003, 11:00 AM
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.

stormybaka
06-01-2003, 12:24 PM
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

Osiris
06-02-2003, 04:13 PM
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!

stormybaka
06-02-2003, 04:45 PM
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

stormybaka
06-02-2003, 04:50 PM
all i know is the prob is mysql or database related..

Osiris
06-04-2003, 08:29 PM
What's the line of code on line 48?