Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Install on Plesk


pagecom

Recommended Posts

Hi,

 

I'm trying to install osCommerce on a plesk 6 server, the problem I'm having is if I enable SSL, I get the page not found and the reason for that is because on plesk there a seperate directory for all secure documents called httpsdocs, so I f I put the catalog files in the normal web root directory httpdocs I get thae error above whenever an SSL connection needed, if I put the catalog in the secure directory all is well except it makes run slow.

 

Is there a way around this to put the files in the web root and be able to use ssl?What pages need to be in the secure directory?

 

Any help on this will be appreciated.

 

Thank you

Link to comment
Share on other sites

not really on a way around that, as then your site would not be secure. the files in /catalog are necessary, as are images, etc, else you will not display images when a customer goes to create/login to an account, as well as checkout, etc.

 

is this a server you are running locally, what kind of internet connection does it have?

 

what are all the services you have running on it?

 

is this system dedicated to just osCommerce?

Link to comment
Share on other sites

Thanks for your reply.

 

 

I have found a way around this and it works great, for those who have similar problems here is how.

 

This was done on plesk 6.02 RPM install with redhat 9.

 

SSH into your server

 

su for root

 

cd /home/httpd/vhosts/domain.com

 

cp -R httpsdocs httpsdocs.bak (just incase)

 

rm -rf httpsdocs

 

ln -s httpdocs httpsdocs

 

chown ftpuser:psaserv httpsdocs

 

Thats all it should work great , now you just put your osCommerce files in your httpdocs directory and SSl should work on all pages requireing SSL.

Link to comment
Share on other sites

This answer could be a little late.. cause you already fixed the problem but just for infomation purposes only, the following is the correct way to fix this problem.

 

1.- Log into your server.

 

2.- cd /home/httpd/vhosts/domain.com/conf/

 

Create this file:

 

pico vhost_ssl.conf

 

Add this line:

 

DocumentRoot /home/httpd/vhosts/domain.com/httpdocs

 

This will change where Plesk looks for your html files when using SSL from httpsdocs to httpdocs

 

Save the file and run this script:

 

/usr/local/psa/admin/sbin/my_apci_rst

 

Your httpd.conf will be re-read and configurations updated to point to the correct DocumentRoot !

 

Your way also works.. :)

Link to comment
Share on other sites

I just

 

cp -R * ../httpsdocs

chown -R USERNAME *

 

this just creates a copy but it is so useful as a backup as well...

every now and then I just do it again after I make changes like contribs...

 

also you can do changes from one side to the other and compare with only a letter change..

 

https://

http://

 

kinda handy

Link to comment
Share on other sites

  • 1 month later...

Hi guys

 

I host my OsC on a plesk vhost and dont have ssh unfortunately. To make things worse I don't even have enough rights to modify conf/vhost_ssl.conf or create/edit links

 

Anyways I made a support request to the admin and asked them to edit conf/vhost_ssl.con and redirect my https DocRoot to /httpdocs which they did.

 

When I try to access https://my.website.com it just throws .php file and doesn't actually execute it.

 

I don't really know whats going on and neither the admin does I suppose (cuz they simply made it like before DocRoot -> /httpsdocs and I'm sitting helpless. Can anybody please shed some light here. I'd appreciate any advice

 

Regards

 

Junaid

Link to comment
Share on other sites

  • 1 month later...

Greetings:

 

This may be too late as well, but make sure you have the following entries in your vhost_ssl.conf (if you want CGI and PHP functionality within that context)

 

DocumentRoot /home/httpd/vhosts/domain.com/httpdocs

<Directory /home/httpd/vhosts/domain.com/httpdocs>

<IfModule sapi_apache2.c>

php_admin_flag engine on

php_admin_value open_basedir "/home/httpd/vhosts/domain.com/httpdocs:/tmp"

</IfModule>

SSLRequireSSL

Options +Includes +ExecCGI

</Directory>

 

Otherwise, Apache will use the options specified in the virtual host container in httpd.include, which will specify permissions for /home/httpd/vhosts/domain.com/httpsdocs (instead of the new docroot of httpdocs).

 

Regards,

 

Steve

Link to comment
Share on other sites

  • 2 weeks later...

This is what is currently in my vhost_ssl.conf file:

 

<Directory /usr/local/psa/home/vhosts/domain.com/httpsdocs>
php_admin_value open_basedir "/usr/local/psa/home/vhosts/domain.com/httpsdocs:/"
php_value include_path .:/usr/local/psa/home/vhosts/domain.com/httpsdocs
</Directory>

 

In reading through the suggestions in this thread, I'm unsure if I need to replace whats already in the file, or add to it?

 

Thanks,

Dennis

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...