PDA

View Full Version : Something must be wrong with the server


schmoukiz
08-29-2002, 01:12 AM
I've tried installing several scripts that work fine on my home server (Apache) and which don't need any modifications on an NT server. I usually get an eror message containing the word "fopen". Maybe you could have a look at this guestbook (http://www.rapid.pcnet.ro/blackbook)which is not installed yet. It says that all the necesary permisions are granted, but something is not working. You'll also find there a link to the phpinfo (http://www.rapid.pcnet.ro/phpinfo.php) page
I can talk to the server administrator and ask him to change some settings, but I don't know which.

Nightfire
08-29-2002, 03:05 AM
Looks like you've got a chmod problem with the config.php file. Try setting it to 0777 or 0666 (not sure which).

firepages
08-29-2002, 03:09 AM
As you are running on NT file permissions are handled in a totally different way to *NIX , so CHMOD to 666 & 777 are meaningless on NT

You are not running in safe_mode which could have been another possible problem.

So that leave 2 possibles, either your host has disabled the fopen() command (unlikely) or its an IIS persmissions issue & I know sod all about IIS permissions.

I would recommend you send your host the returned error message

(Warning: fopen("config.php","w") - Permission denied in funciones.php on line 206)

which I assume they will have seen many times before :)

Dotcomsnz
08-29-2002, 01:08 PM
hehe, on a *nix server - you definately do not want 777 permissions - 755 will work just fine under the user - 777 is a big security problem commonly associated with cgi - php is also very powerfull and equally as unsafe :D

OK, the error tells you this:-

fopen("config.php","w")

Failed Opening config.php

Permission denied in funciones.php on line 206

What does line 206 of funciones.php say?

Make sure there are no spaces after the closing tag at the end of config.php and funciones.php - After the >

This sometimes happens when transferring files between servers.

schmoukiz
08-30-2002, 01:35 AM
This is line 206 :

$fp=fopen("config.php","w");