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

Magento

eCommerce Software for Online Growth

Magento Forum

   
500 internal server error
 
nsnvc1
Jr. Member
 
Total Posts:  6
Joined:  2008-06-02
 

Hi guys,

I’ve been trying to install Magento but I get this ‘500 internal server error’ if I try to go to install directory. I have done everything according to the installation guide (permissions have been set to 777) etc… What is going wrong?

Error message:

“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 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Php info:

http://www.geldbudget.nl/info.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
nublue
Jr. Member
 
Total Posts:  30
Joined:  2008-04-01
 

Hi there,

This could well be because PHP safe mode is on.  Try turning it off and see what happens - in my experience, Magento vaguely works if at all when safe mode isn’t disabled.

 Signature 

NuBlue Web Solutions - UK Magento Web Hosting and Reseller Hosting
Magento Hosting Packages Now Avaliable - Magento & SSL Installed
NuBlue Web Hosting - Magento support and Free Installations. 0845 0045 583
NuBlue Demo Store - Our Demo Magento Store hosted on our PHP5 servers

 
Magento Community Magento Community
Magento Community
Magento Community
 
nsnvc1
Jr. Member
 
Total Posts:  6
Joined:  2008-06-02
 

Thnx for reply. How do I turn PHP safe mode off? Is there a workaround if my provider doesn’t allow this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  332
Joined:  2008-01-03
 

Hey,
if the solution from nublue doesn’t succeed, please post your system setup and your .htaccess. Are you using php5 as cgi-binary?

You can also try disabling .htaccess, but you can’t install magento if you disable it. After disabling .htaccess try to access the site again in your browser. If you don’t get an Error 500 reenable .htaccess and check if mod_rewrite is running correctly.

Edit
You can disable safe_mod in your .htaccess if your provider does allow it.
You can also set this up globally in php.ini or host related within the virtual host entry.

As admin flag (isn’t overwriteable by ini_set)

php_admin_flag safe_mode off

As flag (is overwriteable by ini_set)

php_admin_flag safe_mode off

 Signature 

---
Wichtiger Hinweis: Wer Visionen hat, sollte zum Arzt gehen.
Nuff respect to Stefan B.- he’s the ultimate magento pope.
---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan F.
---
commercial: null212 | Büro für Kommunikation und Design
privat: Nörd1

 
Magento Community Magento Community
Magento Community
Magento Community
 
nsnvc1
Jr. Member
 
Total Posts:  6
Joined:  2008-06-02
 

Hi guys,

thnx for replies but it still doesn’t work. My provider has turned off php SAFE mode but I still get this internal server error.
Here is my .htaccess file:

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

############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi

# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php

############################################
## this line is specific for 1and1 hosting

#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

############################################
## default index file

DirectoryIndex index.php

<IfModule mod_php5.c>

############################################
## adjust memory limit

php_value memory_limit 64M
php_value max_execution_time 18000

############################################
## disable magic quotes for php request vars

php_flag magic_quotes_gpc off

############################################
## enable resulting html compression

#php_flag zlib.output_compression on

###########################################
# disable user agent verification to not break multiple image upload

php_flag suhosin.session.cryptua off

</IfModule>

<IfModule mod_security.c>
###########################################
# disable POST processing to not break multiple image upload

SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_deflate.c>

############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip

# Insert filter
#SetOutputFilter DEFLATE

# Netscape 4.x has some problems…
#BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
#BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don’t compress images
#SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don’t deliver the wrong content
#Header append Vary User-Agent env=!dont-vary

</IfModule>

<IfModule mod_ssl.c>

############################################
## make HTTPS env vars available for CGI mode

SSLOptions StdEnvVars

</IfModule>

<IfModule mod_rewrite.c>

############################################
## enable rewrites

Options +FollowSymLinks
RewriteEngine on

############################################
## you can put here your magento root folder
## path relative to web root

#RewriteBase /magento/

############################################
## workaround for HTTP authorization
## in CGI environment

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

############################################
## always send 404 on missing files in these folders

RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

############################################
## never rewrite for existing files, directories and links

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

############################################
## rewrite everything else to index.php

RewriteRule .* index.php [L]

</IfModule>

############################################
## Prevent character encoding issues from server overrides
## If you still have problems, use the second line instead

AddDefaultCharset Off
#AddDefaultCharset UTF-8

<IfModule mod_expires.c>

############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires

ExpiresDefault “access plus 1 year”

</IfModule>

############################################
## By default allow all access

Order allow,deny
Allow from all

############################################
## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags

#FileETag none

AddHandler application/x-httpd-php5 .php

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

How do I know if I’m using php5 as cgi-binary?

Any other suggestions?

 
Magento Community Magento Community
Magento Community
Magento Community
 
nsnvc1
Jr. Member
 
Total Posts:  6
Joined:  2008-06-02
 

No suggestions?

 
Magento Community Magento Community
Magento Community
Magento Community
 
nublue
Jr. Member
 
Total Posts:  30
Joined:  2008-04-01
 

From what you’ve posted, I’d say you’re not.  The cgi-binary refers I think to a workaround for people who were running Magento on a PHP 4 rather than 5 server.  The details are here http://www.magentocommerce.com/knowledge-base/entry/installing-magento-on-a-php4-server on how to set it up.  Might be worth a try as you’re using a version of PHP that I haven’t tried Magento in, so I’m not aware of any other issues that may be affecting it.  There was certainly an issue in PHP 5.2.5 that can be fixed that prevented Magento working very well, perhaps the same is true for 5.2.0.

 Signature 

NuBlue Web Solutions - UK Magento Web Hosting and Reseller Hosting
Magento Hosting Packages Now Avaliable - Magento & SSL Installed
NuBlue Web Hosting - Magento support and Free Installations. 0845 0045 583
NuBlue Demo Store - Our Demo Magento Store hosted on our PHP5 servers

 
Magento Community Magento Community
Magento Community
Magento Community
 
nsnvc1
Jr. Member
 
Total Posts:  6
Joined:  2008-06-02
 

Thnx for suggestion. I’ve tried that too but it’s also not working. Removing .htaccess file causes 500 error to go away but I get a 404 error page. Could it be that .htaccess is causing all the trouble?
I’m starting to get desperate here. Nice introduction to Magento…

 
Magento Community Magento Community
Magento Community
Magento Community
 
CSPalmisano
Member
 
Total Posts:  64
Joined:  2008-05-31
 

I’m sorry to say that I too am experiencing this issue. I’ve spent several hours trying to figure this out with no luck.

Just to be clear, I’m not a newbie when it comes to installing web applications. I’ve configured numerous CMS via the web with no issues.

I was really psyched to give Magento a try. Looks like I’ll have to wait until they simplify the install process.

 
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
52230 users|849 users currently online|105504 forum posts