Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php problem with SSL


davem

Recommended Posts

Hello,

 

I have just installed a trial SSL Cert on our server, as we are preparing to bring our osCommerce store online. I think it is installed ok, as static HTML pages serve up fine at http:// and https:// addresses, and the browser shows a lock indicating a secure site.

 

My problem is with php. The store works fine with normal http:// address, but not when using https://.

 

I went back to basics and created the basic script which just calls phpinfo:

<?php

phpinfo();

?>

 

This is the same as the osCommerce scripts; works with http:// address but not the secure https:// address.

 

Apache returns the following error:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

The logs show this:

[Wed Apr 16 20:38:47 2003] [error] (13)Permission denied: exec of /home/myusername/public_html/phpinfo.php failed

[Wed Apr 16 20:38:47 2003] [error] [client 68.43.165.100] Premature end of script headers: /home/myusername/public_html/phpinfo.php

 

Thanks, any insight would be greatly appreciated. You all probably know how exciting it is when you are ready to go live! :)

 

Dave

 

Server Version: Apache/1.3.27 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.0 FrontPage/5.0.2.2510 mod_ssl/2.8.12 OpenSSL/0.9.6b PHP-CGI/0.1b

Server Built: Apr 5 2003 21:53:20[/i]

Link to comment
Share on other sites

Can you access your osC store via HTTPS or do you get the same error?

 

If you get the error, then something is wrong with your apache configuration of SSL. Check your .http and .htaccess to verify everything is setup correctly. :)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Thanks for the reply,

 

osC store works perfectly with regular url (http://). Does not work at all when using secure url (https://). I don't think any php works with secure url. Static html pages to work with secure url. It's got to be a permission or configuration thing, but I can't find it.

 

Any ideas are welcome. :)

 

Thanks,

Link to comment
Share on other sites

Permission denied

 

Your https server is not configured to run scripts

 

Thanks Dick, there's a Sea Breeze in it for ya if you elaborate a little. :D

 

I'm not new to linux, but I am new to apache. To see if all scripts were dead with https I made a "hello world" script in perl and found that it does work with secure url. The problem seems to be just php.

Link to comment
Share on other sites

New info, different error with a different script. helloworld.php:

 

<?

$message="<CENTER><H2>Hello World</H2></CENTER>";

echo $message;

?>

 

gives same "Internal Server Error" to the browser, but a different message came up in the log file:

 

[Thu Apr 17 16:54:30 2003] [error] [client xx.xxx.xx.xx] malformed header from script. Bad header=<CENTER><H2>Hello World</H2></: /home/myusername/public_html/helloworld.php

 

Works as expected with normal instead of secure url. :?:

Link to comment
Share on other sites

Problem solved by my hosting company. :)

There were two lines commented out in httpd.conf:

 

LoadModule php4_module libexec/libphp4.so

AddModule mod_php4.c

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...