Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Install problem - Bad request
 
jppichon
Jr. Member
 
Total Posts:  25
Joined:  2007-09-28
Paris - France
 

Hello,

We are more and more confused with Magento installation.

We are developping with Magento since october 2007 and we never have had installation problems since version 0.6.14100 (which is always running correctly today)

Last week we were unable to install the version 0.7.14800 because as soon as we launched Magento we got teh error “bad request”.

This morning we tried to install the latest version 0.7.15480 and it is the same. We don’t understand the reason because the server and configuration are the same than earlier.
As our PHP version is 5.1.6 we uncommented the lines for the cgi mode.
We followed the installation instructions “Magento installation via SSH”
We browsed through the forum and wiki pages but we didn’t found any usefull information except a this recent thread http://www.magentocommerce.com/boards/viewthread/2758/
for a similar problem but without any solution

Could you please help us ?

regards

Jean Pierre

 
Magento Community Magento Community
Magento Community
Magento Community
 
jppichon
Jr. Member
 
Total Posts:  25
Joined:  2007-09-28
Paris - France
 

Hello,

Could someone of the Magento team take care of my request ?
As I wrote we are not really newbie with Magento (as well as PHP developments) because we are développing with it since october and we should open several shops for customer as soon as the final version will be released.

In last post I forgot to say that we are on Linux Server with Plesk and Fedora FC6.

Regards

Jean Pierre

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Bad request can happen when protocol and port do not match.

For example, if you try accessing http://server.com:443 or https://server.com:80

Make sure you do not have this situation.

 
Magento Community Magento Community
Magento Community
Magento Community
 
magetel
Jr. Member
 
Total Posts:  8
Joined:  2007-10-23
Colmenar Viejo
 

I had the same problem and it was solved selecting both options under domain_name/configuration/ preferencies:

Preferencies:
SSL support:  (checked)
SSL and No-SSL in same directory (checked)

 
Magento Community Magento Community
Magento Community
Magento Community
 
jppichon
Jr. Member
 
Total Posts:  25
Joined:  2007-09-28
Paris - France
 
Moshe - 31 January 2008 03:39 AM

Bad request can happen when protocol and port do not match.

For example, if you try accessing http://server.com:443 or https://server.com:80

Make sure you do not have this situation.

Thank you Moshe for pointing this out but we already checked it.

The magento directory has been installed under httpdocs and httpsdocs and whatever we tried “http:oursite.com/magento” or “https:oursite.com/magento” we get the same error : bad request.
We also checked that there were not a local.xml file under app/etc/

With the version prior to 0.7.14800 we never have had an installation problem.

Best regards

Jean Pierre

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Could you outline the steps that lead to this problem? With URLs and non-sensitive configuration values.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jppichon
Jr. Member
 
Total Posts:  25
Joined:  2007-09-28
Paris - France
 

Hello,

More informations and detail about my problem :

I tried to install the last Magento version on another dedicated server we have (where Magento never been installed) and the problem is exactly the same : Bad request.

On the same server, I successfully installed an older version (0.6.14100).

In both cases we are with Linux server with Plesk Panel, Fedora fc6, php 5.1.6-3.6.fc6 and 5.0.27-1.fc6

I’m quite lost

Regards

Jean Pierre

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

On which step of installation do you see this problem?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jppichon
Jr. Member
 
Total Posts:  25
Joined:  2007-09-28
Paris - France
 
Moshe - 01 February 2008 04:10 AM

Could you outline the steps that lead to this problem? With URLs and non-sensitive configuration values.

Hi Moshe,

I installed Magento via SSH :

- wget http://...... I copy and paste the url of the last version
- tar -zxf magento.....version
- cd magento (magento folder is at the website root --> httpdocs)
- chmod o+w var var/.htaccess app/etc
- chmod -R o+w media

I upload the file php5-cgi into the directory cgi-bin located at httpdocs/cgi-bin
I change mode of php5-cgi to 755

I uncomment the lines for the cgi mode of the .htaccess file located at the root of install directory (httpdocs/magento)

Then I launch the installation with http://ecommerce.e-quasar.com/magento and it’s at this point that I get the “bad request”.

On this server we are still running an older version (0.6.14100) to develop a site for a customer. You can see it here --> http://ecommerce.e-quasar.com/collines/
If you visit this link you will see that we are not totally newbie and we already invested our development team into Magento (since october 2007).

Regards

Jean Pierre

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

The default CGI lines in .htaccess

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

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

Your file is php5-cgi - can you try changing in .htaccess so it will be:

Action php5-cgi /cgi-bin/php5-cgi
 
Magento Community Magento Community
Magento Community
Magento Community
 
jppichon
Jr. Member
 
Total Posts:  25
Joined:  2007-09-28
Paris - France
 
Moshe - 01 February 2008 05:34 AM

The default CGI lines in .htaccess

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

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

Your file is php5-cgi - can you try changing in .htaccess so it will be:
Action php5-cgi /cgi-bin/php5-cgi

Hi Moshe

Thanks for yr reply;

I did it and then the installation wizard was successfully launched but after the download update step, I clicked on OK to continue (all installations we ok). Then I got the page with the error message “Whoops, it looks like you have an invalid PHP version.”

Regards

Jean Pierre

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

If you have used PEAR installation, it includes .htaccess file that overwritten your custom one (should be fixed for next release)

Please re-do your changes to .htaccess

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top