icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » MediaWiki install returns 500 Error

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old April 24th, 2008, 11:57 AM   #1 (permalink)
Registered User
Seasoned Poster
 
steveorg's Avatar
 
Joined in May 2004
Lives in Wrong Coast
Hosted on pass77
61 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
MediaWiki install returns 500 Error

When I run the config script to install MediaWiki 1.12.0 This is from the error log:
Quote:
SoftException in Application.cpp:246: Directory ".../wiki/config" is writeable by group
[Thu Apr 24 10:32:56 2008] [error] [client 71.172.42.76] Premature end of script headers: .../wiki/config/index.php
[Thu Apr 24 10:32:56 2008] [error] [client 71.172.42.76] File does not exist: .../500.shtml
Permissions are set to 777 (as per installation instructions) and I've enabled php5 through the .htaccess file. From the forum I can see that there have been successful MediaWiki installations. Does anyone have any idea what the problem could be?

Thanks,
Steve
__________________
Steve
steveorg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2008, 12:08 PM   #2 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
Hmm...Pass7 hasn't upgraded to PHP5 yet. Not 100% but this could probably affecting the problem, since you're permissions are set to 777.
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2008, 12:38 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2008
Hosted on sh126
4 posts
Gave thanks: 0
Thanked 0 times
Try using permissions set to 755.

I know when I installed mine on a shared system I never changed a thing when it came to permissions.

Last edited by chandom; April 24th, 2008 at 12:43 PM..
chandom is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2008, 1:00 PM   #4 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
Quote:
Originally Posted by chandom View Post
Try using permissions set to 755.

I know when I installed mine on a shared system I never changed a thing when it came to permissions.
PHPsuexces is enabled on your server, so setting it to 755 is like setting it to 777 but more secure.

PHPsuexces is not enabled on his server, so he might have to set it to 777, just in case the script needs to write and execute. I'm not sure, since I've never installed the script/software. Of course you are more then welcomed to set it to 755. =)
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2008, 5:09 PM   #5 (permalink)
Registered User
Seasoned Poster
 
steveorg's Avatar
 
Joined in May 2004
Lives in Wrong Coast
Hosted on pass77
61 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
I thought that I had already tried it with 755, but that did the trick. Thanks. It may also be worth mentioning that I moved to Pass 77 several months ago. I didn't realize that I had Pass 7 in my signature. Sorry about that!

The Installation screen says:
Quote:
Warning: PHP's register_globals option is enabled. Disable it if you can.
MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities.
Should I be concerned about this?
__________________
Steve
steveorg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2008, 5:35 PM   #6 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
Quote:
Originally Posted by steveorg View Post
I thought that I had already tried it with 755, but that did the trick. Thanks. It may also be worth mentioning that I moved to Pass 77 several months ago. I didn't realize that I had Pass 7 in my signature. Sorry about that!

The Installation screen says:Should I be concerned about this?
Ah, ok. Being on Pass77 makes a whole difference from being on Pass7. I was going by the info of that server and that is why I came up with those suggestions. I'm glad you could get everything fixed.


As for the register_globals, yes it is highly recommended to turn them off. You can do this with a php.ini file and this code:

PHP Code:
register_globals Off 
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2008, 10:35 PM   #7 (permalink)
Registered User
Seasoned Poster
 
steveorg's Avatar
 
Joined in May 2004
Lives in Wrong Coast
Hosted on pass77
61 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
Thanks Roxy. Where should I put the php.ini file?
1. mydomain.com
2. subdomain.mydomain.com
3. subdomain.mydomain.com/mediawiki
__________________
Steve
steveorg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 25th, 2008, 5:42 PM   #8 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
Yes, place it in the folder for the Mediawiki! =)
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 26th, 2008, 7:28 PM   #9 (permalink)
mgk
Registered User
Excelling Contributor
 
Joined in Mar 2007
Lives in Wales
Hosted on dime999
620 posts
Gave thanks: 47
Thanked 46 times
I am quite surprised to find it on by default on new servers
__________________
Markus
mgk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On