HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=19)
-   -   ISPConfig: from http to https & from https to http (http://www.howtoforge.com/forums/showthread.php?t=3732)

Hans 15th April 2006 15:16

ISPConfig: from http to https & from https to http
 
After installing ISPConfig, sometimes we want to change from http to https mode, or as you wish from https to http mode.

With this small instruction you can read how you can do this!
Realise that you have to be careful, do not screw your system!

Here we go:

From http to https:


1) Copy file httpd.conf_https from the Tarball to filefolder /root/ispconfig/httpd/conf

2) Make a copy of the existing httpd.conf file !

3) Rename httpd.conf_https to httpd.conf

4) Open the new httpd.conf and replace {SERVER_NAME} with the server name
(have a look at the backed-up httpd.conf to find out the correct value)

5) Open /home/admispconfig/ispconfig/lib/config.inc.php and change the ISPConfig URL from http to https.

6) Finally restart ISPConfig: /etc/init.d/ispconfig_server restart


From https to http:

1) Copy file httpd.conf_http van de Tarball to filefolder /root/ispconfig/httpd/conf

2) Make a copy of the existing httpd.conf file !

3) Rename httpd.conf_http to httpd.conf

4) Open the new and replace {SERVER_NAME} with the server name
(have a look at the backed-up httpd.conf to find out the correct value)

5) Open /home/admispconfig/ispconfig/lib/config.inc.php and change the ISPConfig URL from https to http.

6) Finally restart ISPConfig: /etc/init.d/ispconfig_server restart


Hans

AcidKat 12th March 2008 19:03

When you sat "copy file from the tarball", where is the tarball located?

lubos 13th March 2008 01:30

Quote:

Originally Posted by AcidKat
When you sat "copy file from the tarball", where is the tarball located?

Hi AcidKat,
you have to download so called Tarbal from http://www.ispconfig.org/downloads.htm.
Tarbal is actualy compressed file containing whole software. You can uncompres it (depending on your operational system) in different ways.
Windows:
If you'll download it onto Windows I will suggest to use 7zip, free compressing software available on http://www.7-zip.org/. Make sure that you will uncompress tarbal twice (first ISPConfig-2.2.21.tar.gz file and afterwards uncompress newly created ISPConfig-2.2.21.tar file) as it is compressed twice.
Linux:
Alternatively you can download newest tarbal to Linux by using following command:
Code:

wget http://prdownloads.sourceforge.net/ispconfig/ISPConfig-2.2.21.tar.gz?download
Make sure that you'll download right version of ISPconfig as it must be the same as you have installed on your server. If you did not upgraded to newest version go to ispconfig.org/download and find file matching your installation.
Afterwards you can unpack it by using command:
Code:

tar xvfz ISPConfig-2.2.21.tar.gz
.Next continue with steps described above. When you finnish you can safely remove both, tarbal and unpacked files from your computer using commands
Code:

rm ISPConfig-2.2.21.tar.gz
rm -r install_ispconfig

Make sure that you will NOT download tarball to location where is your current installation as you can break it. All above written commands have to be issued from the same directory. You can use e.g.
Code:

cd /opt/
to go to opt directory and execute all commands from here.
I hope this help you.
Lubos

TomC 15th April 2008 13:12

Hi Hans,

thanks for the great HowTo - it worked perfectly for me a few weeks ago when I changed the configuration of my ISPConfig from https to http.

However, today I came across a little drawback: I upgraded my ISPConfig to the latest version 2.2.22. After the upgrade, the configuration was running with https again. So I had to go through the same procedure once again.

So, somewhere ISPConfig seems to remember whether it was configured to run via http or https. Do you have any idea where this could be and how I can change it so that the next upgrade runs more smoothly?!

Thanks loads,
Tom

Hans 16th April 2008 11:04

@TomC,
I don't know how this can be done.
Probably Till knows the answer..

falko 16th April 2008 22:08

Quote:

Originally Posted by TomC
So, somewhere ISPConfig seems to remember whether it was configured to run via http or https. Do you have any idea where this could be and how I can change it so that the next upgrade runs more smoothly?!

Thanks loads,
Tom

Please make sure that $go_info["server"]["server_url"] in /home/admispconfig/ispconfig/lib/config.inc.php has the right value (http).

_X_ 19th October 2008 23:32

If someone gets error about certificates for main ISPConfig here is how to recreate them:
http://www.howtoforge.com/faq/14_63_en.html

To make SSL work for client sites in ISPConfig:
under ISPManager/Sites/site.com/Basis>SSL - enable
after that there is NEW SLL tab
Enter all data exept SSL Request: and SSL Certificate:
for Action: Create certificate
Save
after that client can use https for login into ISPConfig and phpmyadmin and webmail (if you created Co-Domain for webmail site change forward from http to https)
certificat is self-signed and you get warning but untill you get proper certification this will work.

vk1003 6th December 2010 06:58

hi
 
hi sory to disturb you all...

my server runs on ispconfig 3 with centos 5.5.. the sites are working perfectly fine but the only issue is that the ispconfig admin login section is opening only on port 8080 and in many plces people are not able to see the control panel login.

Is the above said step the one to change the port :8080 to https://domainname.com:443 one ! ?pls advice..

To be more perfect

mytranslator.in is now running on this server and http://mytranslator.in:8080 is not opening in major areas and hence i want this to be https://mytranslator.in:443 where my ispconfig admin login opens up for my reseller and my client login.

pls help

venkat

falko 7th December 2010 14:17

Quote:

Originally Posted by vk1003 (Post 246003)
hi sory to disturb you all...

my server runs on ispconfig 3 with centos 5.5.. the sites are working perfectly fine but the only issue is that the ispconfig admin login section is opening only on port 8080 and in many plces people are not able to see the control panel login.

Is the above said step the one to change the port :8080 to https://domainname.com:443 one ! ?pls advice..

To be more perfect

mytranslator.in is now running on this server and http://mytranslator.in:8080 is not opening in major areas and hence i want this to be https://mytranslator.in:443 where my ispconfig admin login opens up for my reseller and my client login.

pls help

venkat

This is the ISPConfig 2 forum. Please open a new thread in the ISPConfig 3 forum.

hahni 27th March 2011 00:04

What must be done, to use ISPConfig2 with Certs from StartSSL (http://www.startssl.com)? The CSR must be 2048 Bit and not 1024 Bit like in ISPConfig2-standard.


All times are GMT +2. The time now is 04:34.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.