Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Magento Install Step by Step Tutorials
 
Genisys
Jr. Member
 
Total Posts:  3
Joined:  2008-08-19
 

"Infernal Server Error” (That’s NOT a sprelling mistake!)

Hi People,

Now been through some 16 re-attempts at Magento installation on a ‘HostingBay’ server in Oz (albeit I’m in the UK).
Initially there were three compatibility problems shown up by the magento-check.php which I referred to the server crew and they fixed.
The check now Congratulates me on using a compatible system.

So, I run the Install/Download extracted from the ‘magento-downloader-1.1.3.zip’ file and uploaded.
Whilst I can’t find any reference to suPHP or phpsuexec in the phpinfo report - the system goes directly to ‘Internal Server Error’ (500) If the Magento subdirectory has 777 rights OR any of the advised ‘uncomment’ changes to .htaccess.

With the directory set to 755, phase one will run ending with the “Download completed. You can proceed with installation” message, and [Continue Magento Installation Button]… But that’s it, Whatever I’ve tried regarding permissions and variations to .htaccess (from comments, suggestions and ideas springing from going through the destructions and forum posts) - I can’t get anything other than the ‘InFernal Server Error’ from there on.

The initial process log probably IS telling me where it hurts - but I’m not conversant with the CGI/pearl commands going on…
After the first line comment there are three warnings, everything else appears to download/install successfully.

Do the warnings declare the problem?  Can any of you spot the obvious mistake… like User skipped brain engagement phase?

The warnings / initial part of log =
Did not download optional dependencies: pear/XML_RPC, use --alldeps to download automatically

Warning: popen() has been disabled for security reasons in /home/digit875/public_html/go/downloader/pearlib/php/OS/Guess.php on line 247

Warning: fgets(): supplied argument is not a valid stream resource in /home/digit875/public_html/go/downloader/pearlib/php/OS/Guess.php on line 248

Warning: pclose(): supplied argument is not a valid stream resource in /home/digit875/public_html/go/downloader/pearlib/php/OS/Guess.php on line 256

pear/PEAR can optionally use package “pear/XML_RPC” (version >= 1.4.0)
------------------------------------- all clear / ok from here -------------------------

Your help and comments would be appreciated.

Nigel
[tag Genisys (Generic Information Systems)]

------------------------------------------------
Update 25th August 2008

Problem Resolved: Directory Permissions, some more Directory Permissions, Yet More Directory Permissions (and maybe a few file permissions), and a php.ini problem.

It would seem that the server the site is on really doesn’t like you leaving a potential security threat in the form of 777 permissions.

Initially the Install would only produce an ‘Internal Server Error’ Page.
When that was cleared by changing the /Downloads directory (and its subs) permissions (chmod) from 777 to 755 - the download/install ran ok.

So, then you get the [proceed] button - but the download/install in the meantime has created a lot of new directories - all with 777 permissions, so you need to use FTP or cPanel to sort these out before clicking that [proceed] link.

Ok, so maybe you can now get as far as the configure screen. In my case I couldn’t.
During earlier searching through forum posts regarding compatibility, I had come across an item that suggested a fix (in relevant circumstances where the path to resources was causing the system to declare that essential modules didn’t exist) - was to add a php.ini file - within which should be the line “php_flag short_open_tag on”: This was still in my Magento subdirectory.

The result was that whilst the overall site passed the magento-check.php routine, the same check from the Magento subdirectory reported that there was no PDO/MySQL functionality.
The Directory permissions were 755, there were no obvious conflicts in the relevant .htaccess files - so why was it OK on the site, but not in the Magento Directory?… Removed the php.ini - and full compatibility returned.

Now - finally through to the Admin Screen (Dashboard)… But none of the links worked.
There are a number of threads on this subject elsewhere.
But in short… Directory permissions again.  The Javascript directories had been missed in the earlier 777 to 755 chmod changes.
Hence the Drop-Down menus weren’t working. Changed those… And finally I can get into the site management.

Hoping this will help others with the same or similar problems.
It obviously depends on the Hosting set-up.
Mine (at HostingBay-Melbourne-Australia) is Linux, Apache, MySQL, PHP5 (all with compatible versions, extensions & modules).
But this protection against security risks (which is good… IF you know about it) has caused three very long days of struggle.

Good luck with yours.
-------------------------------------------------------------------------
Further update 5th September 2008

3 Days doing CHMODS ! - Why don’t the FTP client programs do recursive permission setting ?
The supposed command line CHMOD -R directory/file to do this - fails (on the server I’m using)
returning a ‘no such Directory’ response.
Found that some FTP progs do offer recursion… but then do both files & folders the same… UGH!

Ahh! - Found ‘FlashFTP’ (flashfxp.com) - and… THIS IS THE ANSWER cool smile

It will CHMOD the entire tree from where you want - setting folders to one selection and files to another !!!!

Gosh, I wish I’d found this two weeks ago.

regards to all,

Genisys

 
Magento Community Magento Community
Magento Community
Magento Community
 
Frikki
Jr. Member
 
Avatar
Total Posts:  20
Joined:  2007-09-25
Reykjavík, Iceland
 

FileZilla also has the option of recursive CHMOD

 
Magento Community Magento Community
Magento Community
Magento Community
 
RJH Enterprises
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2008-09-22
Warrington, Cheshire UK
 

I always use firefox with the fireFTP plugin. I have always found this the best. Another useful plugin is the developers tool bar!

 Signature 

All my posts are my opinion and ideas and are intended to help but I will not be responsible if they break your website!

BACKUP BACKUP BACKUP
Before you make any changes to code/database.

Website Design and Hosting by RJH Enterprises

I’ve pledged money for the magento developer challenge #1. Pledge $10 here

 
Magento Community Magento Community
Magento Community
Magento Community
 
vivaknievel
Jr. Member
 
Total Posts:  28
Joined:  2008-08-07
 

RJH Enterprises....

I just wanted to say THANK YOU for your recommendation of Firefox’s FTP add-on. You’ve just saved me a few days of time.

I’m having a huge problem with my current installation of Magento, and I can’t get any answers regarding them on the forums, so I’m left to re-install and rebuild the store from scratch, in hopes of that working.  Every time I tried FTP, it would stop after only a few folders and it was taking hours just to install individual directories with Fetch FTP, so my host had to install it twice, as they don’t allow SSH access.

Anyway, with the new problem, I was in the same boat… Fetch FTP kept locking up after only a few folders.  However I grabbed FireFTP right after seeing your post… in an hour’s time, FireFTP is nearing the end of uploading, where with Fetch, I would have probably still been working on the first two directories.  I’m hoping that FireFTP will also have less problems with permissions as well.  What a huge time saver.  Thanks for mentioning this wonderful FTP client.

I will have to check out Developer’s Tool as well.  So far, for coding issues and so forth, their add-on Firebug, has also been a really big help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ArtjomZab
Jr. Member
 
Total Posts:  8
Joined:  2008-10-09
 

Hi, I am just attempting to install Magento - Demo Store on my localhost. But the installation failed because the php extension cURL is missing! I’m using the latest version of xampp on windows vista. I unzipped the zipped cURL library directly in the php directory and modified the php.ini by removing the “;” in front of ”;extension=cURL...”. But it still does not work! Please help. question

 
Magento Community Magento Community
Magento Community
Magento Community
 
blizzard182
Member
 
Avatar
Total Posts:  42
Joined:  2008-09-06
Argentina
 
ArtjomZab - 10 October 2008 12:46 AM

Hi, I am just attempting to install Magento - Demo Store on my localhost. But the installation failed because the php extension cURL is missing! I’m using the latest version of xampp on windows vista. I unzipped the zipped cURL library directly in the php directory and modified the php.ini by removing the “;” in front of ”;extension=cURL...”. But it still does not work! Please help. question

There is more than one file that has the extension=cURL string. I believe there are php.ini, php5.ini, php4.ini and if I am not mistaken there is another in some other folder.

Just make a search of *.ini files and search inside of the files for the string extension=curl

I had the same problem with XAMPP.

---------------------------------------------------

On another note, I’ve seen many people having the Internal Server Error (I had it myself) so I made a page in the WIKI about it.

Roy, please feel free to add it here. The problem is when you have phpSuExec installed in the server. And the permissions is just one of the problems. You also need to add another settings in the php.ini file.

http://www.magentocommerce.com/wiki/wiki/installing_magento_in_a_server_with_phpsuexec

 Signature 

Disce Quasi Semper Victurus, Vive Quasi Cras Moritorus.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Miska
Jr. Member
 
Total Posts:  13
Joined:  2008-10-10
 

I get all kinds of Errors on my screen while trying to install Magento Commerce on my server…

Latest: ‘Parse error: syntax error, unexpected ‘{’ in /data/members/paid/e/n/enter2xit.com/htdocs/shop/install.php on line 123’ wtf?
Before I got ‘Internal Server Error’ and when I erased the .htaccess file I got something about the ‘cgi-bin wasn’t located’…

Tryed to remodify the .htaccess file, erase it, etc etc working around with the cgi-bin/php5-cgi without any luck at all....

Help? ^^

 
Magento Community Magento Community
Magento Community
Magento Community
 
ArtjomZab
Jr. Member
 
Total Posts:  8
Joined:  2008-10-09
 

What are your server and system attributes? What kind of php version is running on your server? And at what point of the installation do you get these errors? rolleyes

 
Magento Community Magento Community
Magento Community
Magento Community
 
Miska
Jr. Member
 
Total Posts:  13
Joined:  2008-10-10
 
ArtjomZab - 12 October 2008 08:15 AM

What are your server and system attributes? What kind of php version is running on your server? And at what point of the installation do you get these errors? rolleyes

Server: Lycos Europe (Spray.se)
Attributes: no idea what you mean with this!?

PHP version(s): both PHP4 and PHP 5.0.2 are running on the server
MySQL version: 5

Just after uploading all the necessary files on the FTP and typing the address on the address field on the browser where the errors occur.
This is the latest error I get:

Whoops, it looks like you have an invalid PHP version.
Magento supports PHP 5.2.0 or newer. Find out how to install Magento using PHP-CGI as a work-around.

I have the php5-cgi both on root/cgi-bin/php5-cgi and in the shop catalogue /shop/cgi-bin/php5-cgi, same place as where Magento Commerce is located.
Reason why I have the catalogue ‘/shop’ is that it’s a subdomain and the ordinary site is running on /www.

Any idea?

 
Magento Community Magento Community
Magento Community
Magento Community
 
ArtjomZab
Jr. Member
 
Total Posts:  8
Joined:  2008-10-09
 

It is very likely that your hosting provider does not allow as much control of the server as it is necessary to install magento on a not php5.2 server. Make sure you installed magento correctly as described here. I had equal problems running projekts on not configurable servers. Just contact your provider or get your own virtual server, which cost about 10 Euro (Germany) a month. There you always have latest software and full control. wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
Miska
Jr. Member
 
Total Posts:  13
Joined:  2008-10-10
 
ArtjomZab - 12 October 2008 09:51 AM

It is very likely that your hosting provider does not allow as much control of the server as it is necessary to install magento on a not php5.2 server. Make sure you installed magento correctly as described here. I had equal problems running projekts on not configurable servers. Just contact your provider or get your own virtual server, which cost about 10 Euro (Germany) a month. There you always have latest software and full control. wink

I have followed all the details step-by-step and I don’t get it to work.
I’m bout to loose my mind here soon if it won’t work.

Why make a Commerce store with only PHP 5.2 support and not compatible with older versions e.g. 4.x or 5.0.x? ^^
What’s so great with the latest version? They all do the same anyways…

Well, I’m gonna make a call to the server provider later today and have a chat with them on what could be the problem.
Unless they won’t support this I have to get my own virtual/dedicated server so I can manage all the necessary files, although it’s been a while since I worked with *nix based OSs and everything I learned back in school, which was years ago, has been lost during the time due no practice at all of these systems…

Let’s say, that I get myself a dedicated server which is using RedHat 9 as an example. Is it hard to configure so that everything runs without any problems?
And do you have any lists of European server providers with English support that won’t cost too much?

EDIT: Nevermind about the above text from me… Now I know the reason.
Found this in the Forums: http://www.magentocommerce.com/boards/viewthread/19923/
And the answer on that is following: http://shop.enter2xit.com/magento-check.php

Well, I would appreciate to get in touch with some cheap hosting providers around the EU/Sweden with VPS/Dedicated servers so I can make it all work! Anyone, including you ArtjomZab, who knows where I can get a cheap server from?

 
Magento Community Magento Community
Magento Community
Magento Community
 
blizzard182
Member
 
Avatar
Total Posts:  42
Joined:  2008-09-06
Argentina
 
Miska - 12 October 2008 02:30 PM


Well, I would appreciate to get in touch with some cheap hosting providers around the EU/Sweden with VPS/Dedicated servers so I can make it all work! Anyone, including you ArtjomZab, who knows where I can get a cheap server from?

Wow...they don’t support a lot of features.

Hostgator and MonsterHost (I am not sure about the last one) fully supports Magento.

I am using a shared hosting provider here in Argentina (They support is great and for you guys should be really cheap). I am still testing the speed but it seems fair enough. http://www.duplika.net

There is a couple of other hosts. configbox.net (if you know spanish) seems a nice host. Too expensive for me since it’s in Euros.

Make a google search for ‘Magento Hosting’. There are a lot of hosts that now support Magento or even offer to install it.

I would suggest you send them the link to the check php file and then make them send you a screenshot with the result.

Good luck

 Signature 

Disce Quasi Semper Victurus, Vive Quasi Cras Moritorus.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Miska
Jr. Member
 
Total Posts:  13
Joined:  2008-10-10
 
blizzard182 - 12 October 2008 02:51 PM

Miska - 12 October 2008 02:30 PM


Well, I would appreciate to get in touch with some cheap hosting providers around the EU/Sweden with VPS/Dedicated servers so I can make it all work! Anyone, including you ArtjomZab, who knows where I can get a cheap server from?

Wow...they don’t support a lot of features.

Hostgator and MonsterHost (I am not sure about the last one) fully supports Magento.

I am using a shared hosting provider here in Argentina (They support is great and for you guys should be really cheap). I am still testing the speed but it seems fair enough. http://www.duplika.net

There is a couple of other hosts. configbox.net (if you know spanish) seems a nice host. Too expensive for me since it’s in Euros.

Make a google search for ‘Magento Hosting’. There are a lot of hosts that now support Magento or even offer to install it.

I would suggest you send them the link to the check php file and then make them send you a screenshot with the result.

Good luck

Thanks for your help m8.

Duplika doesn’t seem to be a good idea. Paying $7.95 for 1GB space isn’t that much, due today I’m paying $10.00 for 4GB.

I called the server hosting today and they said that their VPS hosts can be re-modified to work along with Magento Commerce, so on friday I’ll take that server and try to work around with the DNS so I can make both the website and the VPS server to work together so I get more disk space. This is actually needed due I got tons of material that I both sell and have to show up.

Thanks anyways guys! smile

Best regards,
Miska

 
Magento Community Magento Community
Magento Community
Magento Community
 
CnSGD
Jr. Member
 
Total Posts:  1
Joined:  2008-10-03
 

Ok here is my issue.  I get the 500 error after doing the downloader install. 
I have a PHP 5.2.6
MySQL version 5.0.51a

I have tried to install this several times and honestly I so would love to have this as my store but I can’t afford to pay for a professional install.  I just have to throw my hands up and say I give.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, 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 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.41 Server at http://www.digiscrapelite.com Port 80

 
Magento Community Magento Community
Magento Community
Magento Community
 
fotoprofessor
Jr. Member
 
Total Posts:  5
Joined:  2008-10-01
 

I made a guide how to install hash for people who have Strato vServer.

http://www.magentocommerce.com/boards/viewthread/20516/

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52294 users|472 users currently online|105615 forum posts