Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I configure oscommerce, if I don't use port 80?


no1os

Recommended Posts

Posted

Hi, everybody:

 

I am just attempting to install oscommerce at home. I would like to change the default listen port number 80 of apache server. Say If I replace it with 10001, what should I configure with oscommerce?

 

Thank you for your time.

 

 

Sincerely Yours

 

Steve Wong

Posted

hi, matt:

 

Thank you for your reply, Maybe you misunderstood.

 

When I changed the port number in the file conf/httpd.conf, say replace 80 with

10001, the oscommerce did not work. That is why I posted my last problem. I think

I need to configure oscommerce file ( ex: admin/includes/configure.php or catalog/includes/configure.php) . Is there anybody who tried it? I would appreciate your help.

 

Thank you.

 

Steve Wong

Posted

The actual port shouldn't matter for the configuration of osCommerce - it should work on whatever port WITHOUT special settings.

It's the protocol that talks to the webserver (http(s) on whatever port)

- the webserver serves the pages (osCommerce) through that port.

 

Sounds like a configuration error in your httpd.conf

 

 

Regards,

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

I've done it--it's not that difficult, actually:

 

1. Make some additions in you httpd.conf--

 

Where the Listen directive is listed, add/change to the port you want apache to listen to. You can have it listen to multiple ports by specifying additional Listen directive, each on its own line

 

Listen 80 <--default

 

Listen 10000 <--new

 

 

2. If you are using virtual hosts, make an entry which is mapped to the new port (check apache docs for correct syntax)

 

<VirtualHost www.yoursite.com:10000>

.

.

.

</VirtualHost>

 

 

3. Now, in catalog/includes/configuration.php, change the HTTP_SERVER port definition:

 

define('HTTP_SERVER', 'http://www.yoursite.com:10000'); <--default

 

define('HTTP_SERVER', 'http://www.yoursite.com:10000'); <--new

 

 

4. Restart the server daemon to enact the changes

 

 

If you are also configuring for HTTPS, you need to make additional changes (Listen port for HTTPS, VirtualHost if necessary, and the HTTPS_SERVER definition. However, just try to get the plain HTTP stuff working first--if that's successful, and depending on what you know, it won't be too difficult.

 

I'll be on the forums for a while trying to resolve an email issue, and I'll check back here.

Archived

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

×
×
  • Create New...