Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Leadhoster.com EasyMod Installation Test
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Leadhoster.com EasyMod Installation Test
PostPosted: 08/19/2007 10:09 PM Reply with quote
Owl
~Forum_Nut~
Owl
Posts 168
Word Cnt. 14,430
BDay N/A
Sign N/A
Sex Sex:Male
Joined: Aug 02, 2007
Local time: 10:22 AM
blank.gif
Leadhoster is an interesting site. I does some strange things. like naming your FTP account a number instead of a name. ect

No big deal just a little confusing. they send you a preset up ftp account via email.

Database installed no issues.

Phpbb 2.0.22 installed with no issues.

Easymod installed with some small issues but the auto detect picked up on the install and bingo it installed.

CCIP 4.1 FTP failure..will not load due to the file size restrictions of 500kb so the ip-country.csv failed to load.

CCIP 0.3.2 uploaded to ftp with no errors

Now here's where I ran into my first snag to muck up the installs with EM.
I went to do the EM install of CCIP 0.3.2

When I tried to access the ACP>MOD Center>Install MODs it gave me an error page 500 script execution
heres the page:



Quote:
Error 500: Script Execution Failure
Description: The server encountered an internal error or misconfiguration and was unable to complete your request.

Most common reasons for returning this error message are:

• File Upload Mode
When you upload Perl, CGI scripts via FTP you should use always ASCII mode. If you get "Error 500: Script Execution Failure" you should check whether your FTP client uses ASCII mode when uploading your scripts, because if it uses BINARY mode to upload your scripts they won't work on the server. The problem caused by wrong upload mode is associated with the way different operating systems handle the "end of line" character. Unix system uses a "line-feed" (LF), Windows uses a "carriage-return" (CR) and "line-feed" (LF) pair. That's why it is very important that you set the uploading mode to ASCII.

• File Permissions
When you upload scripts via FTP the file permissions are set by default to 755. If you get "Error 500: Script Execution Failure" you should check whether your scripts have 755 permissions. Otherwise your scripts have lower level of permissions and does not support execution upon request. The octal representation of the 755 permission is equal to the following textual format: -rwxr-xr-x
Most FTP clients support the CHMOD command which is used for setting file permissions. In case you have set improper permissions to your scripts, use your FTP client and set "Read, Write, Execute" permissions for the owner, "Read, Execute" permissions for the group and everyone else.

• Script Errors
This is the third well known reason for getting "Error 500: Script Execution Failure" upon execution of your scripts. Check your scripts for any obvious syntax or programming errors to make sure your code is not broken.


Remember: When you get a "Error 500: Script Execution Failure", you should always check for any file uploading problems (ASCII/BINARY) and the executable permission settings. Once those are checked and verified, it looks like there is a syntax error or some other problem in the script.


I checked the permissions but I don't see anything wrong with them.. Scripts being blocked possibly?


FN
Back to Top
View user's profile Find all posts by ~Forum_Nut~ Send private message  
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/21/2007 1:10 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:22 AM
Location: St Pete, FL
peace.gif
Every time I've seen the 500 Internal Server Error, it was either caused on sites like Awardspace that requires all files to be set to a required permission, typically 755, or whenever code was added above the <?php code at the top of one of your phpBB files.  I have also seen this happen  when one of the phpBB directory parent folder permissions or any one of the phpBB folder permissions are not set correctly...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/21/2007 2:37 AM Reply with quote
Owl
~Forum_Nut~
Owl
Posts 168
Word Cnt. 14,430
BDay N/A
Sign N/A
Sex Sex:Male
Joined: Aug 02, 2007
Local time: 10:22 AM
blank.gif
I did find one file that was 644 so I changed it to 755 but I get the same errors.

Heres the debug info:



Quote:
EM installer v0.3.0 wrote:

Update EM from: 0.3.0
phpBB version: 2.0.22
Working Dir: /home/www/forumnut.atwebpages.com/forum/admin/mods/easymod
Install Step: 1
Mode:


The Error wrote:

Critical Error: This version of EM has already been installed. Terminating to prevent reinstallation.

If you are trying to reinstall this version, change the EM version number from the Admin Control Panel under EasyMOD Settings. Or you could also use the EM Version Changer (by GPHemsley) here.




Permissions: (including system errors)
read access ::   OK
write access ::   OK
root path write ::   OK
chmod access ::   OK
unlink access ::   OK
mkdir access ::   OK
tmp path write ::   OK
FTP extension ::   module not loaded
Safe Mode ::   OFF
copy access ::   OK


Additional System Information:

System: Linux f1.runhosting.com 2.6.13.2z1-reseller #9 SMP Sun Feb 11 21:28:54 EET 2007 i686
Configure Command: './configure' '--prefix=/usr/local/php4' '--enable-discard-path' '--enable-memory-limit' '--enable-inline-optimization' '--disable-rpath' '--disable-debug' '--with-layout=GNU' '--with-zlib' '--enable-bcmath' '--with-openssl=/usr' '--enable-calendar' '--with-bz2' '--with-zip=/usr' '--with-pcre-regex=/usr' '--with-db4' '--enable-dbx' '--with-gd=/usr/' '--with-gettext' '--enable-mbstring' '--with-regex=php' '--with-mysql=/usr/' '--with-pgsql=/usr/' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--with-expat-dir=/usr' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--enable-ctype' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-shmop' '--enable-sockets' '--with-xmlrpc' '--with-curl' '--with-pic'
PHP version: 4.4.2
register_globals: ON
magic_quotes_gpc: ON
magic_quotes_runtime: OFF
allow_url_fopen: ON
sockets_support: enabled


Recommendations:
write: server
move: copy

Selected settings:
write:
move:
ftp dir: /
ftp host: localhost
ftp port: 21
ftp debug: false
ftp ext: fsock
ftp cache: false

CWD Listing:
Code:

drwxr-xr-x .
drwxr-xr-x ..
drwxr-xr-x em_includes
drwxr-xr-x includes
drwxr-xr-x languages
drwxr-xr-x templates
-rwxr-xr-x easymod.gif
-rwxr-xr-x easymod_display_functions.php
-rwxr-xr-x easymod_install.php
-rwxrwxrwx post_process.sh
-rwxrwxrwx post_process.bat



Not testing FTP since it is not being used.


FN
Back to Top
View user's profile Find all posts by ~Forum_Nut~ Send private message  
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/22/2007 11:13 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:22 AM
Location: St Pete, FL
peace.gif
Code:
-rwxrwxrwx post_process.sh
-rwxrwxrwx post_process.bat

This means that the file permissions for both of these files is set to 777, which if you are on a site that requires that file permissions be set to 755, would be a problem.  I imagine if EM set the file permissions of these two newly created files to 777, that it is setting the file permissions for files that it modifies to 777 too, which would cause what you are describing...

This is standard for the standard version of EM.  EM first creates the files set to 777, then it typically sets the permissions to 644.  On sites that require file permissions to be set to 755, both steps would be a real problem...

Are you sure you're installing the Awardspace EM version?  I had modified EM so it automatically set file and folder permissions to 755 in all steps to avoid this problem...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/23/2007 12:21 AM Reply with quote
Owl
~Forum_Nut~
Owl
Posts 168
Word Cnt. 14,430
BDay N/A
Sign N/A
Sex Sex:Male
Joined: Aug 02, 2007
Local time: 10:22 AM
blank.gif
Yep, Its the Awardspace version all right .

Do you think that its not allowing EM to reset file permissions by not letting it run scripts?

I will go through every file to check the permissions.

let me make sure I understand this correctly though. EasyMOD changes the file permissions to 777, then edits them, then changes them to 644.

The Awardspace version sets them to 777,edits them, then changes them to 755?

Do I have that right?

Does this mean that the Awardspace version can really run on any host?

FN
Back to Top
View user's profile Find all posts by ~Forum_Nut~ Send private message  
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/23/2007 12:30 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:22 AM
Location: St Pete, FL
peace.gif
No, that's not quite right.  For included files, it isn't actually moving the file stored in the MOD folder to a destination.  It creates the file in the destination location.  So EM would create the file with permissions set to 777, then do a chmod to 644, by default...

For files that are modified, EM creates a duplicate of the file before it is modified and stores it in the MOD's backups folder.  The permissions are set to 777 when the file is created, then EM does a chmod to 644 once it is complete.  The same holds true for files stored in the processed folder, except that these are the files after they were modified...

In the Awardspace version, I set it so that EM never sets any file or folder permission to 777 or 644.  I changed the settings so that it set everything to 755 no matter what.  That's why I'm questioning whether you have installed the Awardspace version.  The Awardspace version shouldn't have any chance of setting the permissions to anything other than 755...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/23/2007 12:42 AM Reply with quote
Owl
~Forum_Nut~
Owl
Posts 168
Word Cnt. 14,430
BDay N/A
Sign N/A
Sex Sex:Male
Joined: Aug 02, 2007
Local time: 10:22 AM
blank.gif
Is there a way i can check to see which version is in there without doing a full reinstall of EM?

I would kind of like to know if I did make the error of installing the wrong version. Although I think you are probably right about it I think that possible there is a file that tells the tail of which version it is right?

And if its the wrong one couldn't I just insert the correct modified files? Or is it a situation where on installation it has already effected to many files?

FN
Back to Top
View user's profile Find all posts by ~Forum_Nut~ Send private message  
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/23/2007 1:12 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:22 AM
Location: St Pete, FL
peace.gif
You could go into the following files to find all matches of 0644 and 0777.  They should be set to 0755:

  1. admin/em_includes/em_modio.php
  2. admin/em_includes/em_ftp.php

Also, the following function should be modified in your admin/admin_easymod.php file in order to get EM to display the MOD files.

Code:
function check_file_scope($filename, $expected_scope, $simply_die = false)
{
   global $db, $lang;

   // make sure a file is located somewhere inside the specified directory
   //if( !@file_exists(phpbb_realpath($filename)) || !strstr(phpbb_realpath($filename), phpbb_realpath($expected_scope)) )
   if( !@file_exists(phpbb_realpath($filename)) )
   {
      $message = sprintf($lang['EM_modio_open_read'], $filename);
      if( $simply_die )
      {
         $db->sql_close();
         die($message);
      }
      message_die(GENERAL_ERROR, $message);
   }
}

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/23/2007 1:27 AM Reply with quote
Owl
~Forum_Nut~
Owl
Posts 168
Word Cnt. 14,430
BDay N/A
Sign N/A
Sex Sex:Male
Joined: Aug 02, 2007
Local time: 10:22 AM
blank.gif
This is interesting.. all the files in forum/admin/em_includes/ were set to 644 but all other files were set to 755..

I will reinstall the Awardspace EM now and see if it makes a difference.

FN
Back to Top
View user's profile Find all posts by ~Forum_Nut~ Send private message  
Re: Leadhoster.com EasyMod Installation Test
PostPosted: 08/23/2007 2:37 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 11:22 AM
Location: St Pete, FL
peace.gif
Ok, good luck with that...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0889s (PHP: 67% - SQL: 33%) - SQL queries: 58 - GZIP disabled - Debug on