FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Unlocking files cause Server Error
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Unlocking files cause Server Error [message #34482] Sat, 04 November 2006 22:35 Go to next message
andre75 is currently offline  andre75   United States
Messages: 10
Registered: November 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I have just installed FUDF and everything looked good. I went ahead trying to install a Newsgroup.
In order to do so, I unlocked the files (through the admin panel). After I clicked somewhere else, I got a 500 internal server error.

Please contact the server administrator, webmaster@******.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I would highly appreciate your help.

Thanks

Andre
Re: Unlocking files cause Server Error [message #34483 is a reply to message #34482] Sun, 05 November 2006 01:08 Go to previous messageGo to next message
andre75 is currently offline  andre75   United States
Messages: 10
Registered: November 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I guess its a security configuration of my webhost.
Seing that unlocking files sets all directories and files to be writeable for everyone, it makes sense.
So I am wondering what files exactly need to be unlocked to get this newsgroup feature going.
Re: Unlocking files cause Server Error [message #34496 is a reply to message #34483] Sun, 05 November 2006 12:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
You need to make sure that all files inside the messages/ directory can be written by user script runs on a command line and make sure that all files inside the include/ directory (and all of its sub-directories) are readable by that same user.

FUDforum Core Developer
Re: Unlocking files cause Server Error [message #34722 is a reply to message #34496] Thu, 16 November 2006 01:15 Go to previous messageGo to next message
andre75 is currently offline  andre75   United States
Messages: 10
Registered: November 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thanks for the reply.
I tried to run the nntp.php script but I am getting this:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /dataroot/include/theme/default/db.inc on line 17

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /dataroot/include/theme/default/db.inc on line 17

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /dataroot/include/theme/default/db.inc on line 17
(/dataroot/include/theme/default/db.inc:17<br />
/dataroot/include/core.inc:69<br />
/dataroot/scripts/nntp.php:41<br />
) : <br />
Query: Initiating mysql_connect<br />
Server Version: Unknown<br />

Any idea?
Re: Unlocking files cause Server Error [message #34726 is a reply to message #34722] Thu, 16 November 2006 10:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
The error is that PHP is failing to connect to mysql via the specified unix domain socket. You can try changing the mysql host to "localhost" or find out where the actual mysql unixdomain socket is located at.

FUDforum Core Developer
Re: Unlocking files cause Server Error [message #34732 is a reply to message #34726] Thu, 16 November 2006 11:39 Go to previous messageGo to next message
andre75 is currently offline  andre75   United States
Messages: 10
Registered: November 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thanks.
Actually it was set to localhost already and the forum itself seems to work without a hitch. I installed it in a subdomain instead of a subfolder, but I dont think thats the issue.
What else can I try?
Could it be that the script doesn't use the same db settings as the forum?
Re: Unlocking files cause Server Error [message #34733 is a reply to message #34726] Thu, 16 November 2006 11:40 Go to previous messageGo to next message
andre75 is currently offline  andre75   United States
Messages: 10
Registered: November 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
duplicate

[Updated on: Thu, 16 November 2006 11:41]

Report message to a moderator

Re: Unlocking files cause Server Error [message #34754 is a reply to message #34732] Thu, 16 November 2006 19:07 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
It uses the exact same settings as it fetches them from GLOBALS.php as does the main forum. The value of localhost is generally translated by PHP into the unix domain socket, perhaps the default socket value set for CLI is invalid. You can try specifying 127.0.0.1 as a host...

FUDforum Core Developer
Re: Unlocking files cause Server Error [message #34763 is a reply to message #34754] Thu, 16 November 2006 23:01 Go to previous message
andre75 is currently offline  andre75   United States
Messages: 10
Registered: November 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
EDIT:

127.0.0.1 finally works. Thanks again. localhost somehow didn't work.

[Updated on: Thu, 16 November 2006 23:29]

Report message to a moderator

Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: obtaining MySQL version: mysql_row_arr error
Next Topic: Files upgraded...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Jun 19 17:44:24 EDT 2018

Total time taken to generate the page: 0.00688 seconds