HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Ssl is not writed on apache (http://www.howtoforge.com/forums/showthread.php?t=59640)

servidoresadmin.com 19th November 2012 21:19

Ssl is not writed on apache
 
Hi,

I'm working on ispconfig 3.0.4.6 and when I create a new ssl cert, it is not created under apache virtual hosts.

Till, please let me know how can we reinstall ispconfig and test with a new installation....

We save certificate, create certificate, restart apache but apache can't create virtual hosts for ssl cert.

I put into debug and can see:



19.11.2012-20:00 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:00 - DEBUG - No Updated records found, starting only the core.
19.11.2012-20:00 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:01 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:01 - DEBUG - Found 1 changes, starting update process.
19.11.2012-20:01 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
19.11.2012-20:01 - DEBUG - Saving SSL Cert for: panel.my-web.com
19.11.2012-20:01 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
19.11.2012-20:01 - DEBUG - exec: chmod 751 /var/www/clients/client1/web12
19.11.2012-20:01 - DEBUG - exec: chmod 751 /var/www/clients/client1/web12/*
19.11.2012-20:01 - DEBUG - exec: chmod 710 /var/www/clients/client1/web12/web
19.11.2012-20:01 - DEBUG - exec: chmod 777 /var/www/clients/client1/web12/tmp
19.11.2012-20:01 - DEBUG - exec: chmod 755 /var/www/clients/client1/web12/log
19.11.2012-20:01 - DEBUG - exec: usermod --groups sshusers web12
19.11.2012-20:01 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12
19.11.2012-20:01 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/cgi-bin
19.11.2012-20:01 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/log
19.11.2012-20:01 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/ssl
19.11.2012-20:01 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/tmp
19.11.2012-20:01 - DEBUG - exec: chown -R web12:client1 /var/www/clients/client1/web12/web
19.11.2012-20:01 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/log/error.log
19.11.2012-20:01 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web12/.php-fcgi-starter
19.11.2012-20:01 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/panel.my-web.com.vhost
19.11.2012-20:01 - DEBUG - Apache status is: 1
19.11.2012-20:01 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
19.11.2012-20:01 - DEBUG - Apache online status after restart is: 1
19.11.2012-20:01 - DEBUG - Processed datalog_id 628
19.11.2012-20:01 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:02 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:02 - DEBUG - Found 3 changes, starting update process.
19.11.2012-20:02 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
19.11.2012-20:02 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
19.11.2012-20:02 - DEBUG - exec: chmod 751 /var/www/clients/client1/web12
19.11.2012-20:02 - DEBUG - exec: chmod 751 /var/www/clients/client1/web12/*
19.11.2012-20:02 - DEBUG - exec: chmod 710 /var/www/clients/client1/web12/web
19.11.2012-20:02 - DEBUG - exec: chmod 777 /var/www/clients/client1/web12/tmp
19.11.2012-20:02 - DEBUG - exec: chmod 755 /var/www/clients/client1/web12/log
19.11.2012-20:02 - DEBUG - exec: usermod --groups sshusers web12
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/cgi-bin
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/log
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/ssl
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/tmp
19.11.2012-20:02 - DEBUG - exec: chown -R web12:client1 /var/www/clients/client1/web12/web
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/log/error.log
19.11.2012-20:02 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/panel.my-web.com.vhost
19.11.2012-20:02 - DEBUG - Apache status is: 1
19.11.2012-20:02 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
19.11.2012-20:02 - DEBUG - Apache online status after restart is: 1
19.11.2012-20:02 - DEBUG - Processed datalog_id 629
19.11.2012-20:02 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
19.11.2012-20:02 - DEBUG - Saving SSL Cert for: panel.my-web.com
19.11.2012-20:02 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
19.11.2012-20:02 - DEBUG - exec: chmod 751 /var/www/clients/client1/web12
19.11.2012-20:02 - DEBUG - exec: chmod 751 /var/www/clients/client1/web12/*
19.11.2012-20:02 - DEBUG - exec: chmod 710 /var/www/clients/client1/web12/web
19.11.2012-20:02 - DEBUG - exec: chmod 777 /var/www/clients/client1/web12/tmp
19.11.2012-20:02 - DEBUG - exec: chmod 755 /var/www/clients/client1/web12/log
19.11.2012-20:02 - DEBUG - exec: usermod --groups sshusers web12
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/cgi-bin
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/log
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/ssl
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/tmp
19.11.2012-20:02 - DEBUG - exec: chown -R web12:client1 /var/www/clients/client1/web12/web
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/log/error.log
19.11.2012-20:02 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/panel.my-web.com.vhost
19.11.2012-20:02 - DEBUG - Apache status is: 1
19.11.2012-20:02 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
19.11.2012-20:02 - DEBUG - Apache online status after restart is: 1
19.11.2012-20:02 - DEBUG - Processed datalog_id 630
19.11.2012-20:02 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
19.11.2012-20:02 - DEBUG - Saving SSL Cert for: panel.my-web.com
19.11.2012-20:02 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
19.11.2012-20:02 - DEBUG - exec: chmod 751 /var/www/clients/client1/web12
19.11.2012-20:02 - DEBUG - exec: chmod 751 /var/www/clients/client1/web12/*
19.11.2012-20:02 - DEBUG - exec: chmod 710 /var/www/clients/client1/web12/web
19.11.2012-20:02 - DEBUG - exec: chmod 777 /var/www/clients/client1/web12/tmp
19.11.2012-20:02 - DEBUG - exec: chmod 755 /var/www/clients/client1/web12/log
19.11.2012-20:02 - DEBUG - exec: usermod --groups sshusers web12
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/cgi-bin
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/log
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/ssl
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/tmp
19.11.2012-20:02 - DEBUG - exec: chown -R web12:client1 /var/www/clients/client1/web12/web
19.11.2012-20:02 - DEBUG - exec: chown web12:client1 /var/www/clients/client1/web12/log/error.log
19.11.2012-20:02 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web12/.php-fcgi-starter
19.11.2012-20:02 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/panel.my-web.com.vhost
19.11.2012-20:02 - DEBUG - Apache status is: 1
19.11.2012-20:02 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
19.11.2012-20:02 - DEBUG - Apache online status after restart is: 1
19.11.2012-20:02 - DEBUG - Processed datalog_id 631
19.11.2012-20:02 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:03 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:03 - DEBUG - No Updated records found, starting only the core.
19.11.2012-20:03 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:04 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.11.2012-20:04 - DEBUG - No Updated records found, starting only the core.
19.11.2012-20:04 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock

Thanks,
Servidores Administrados

till 19th November 2012 21:35

Quote:

Till, please let me know how can we reinstall ispconfig and test with a new installation....
There is no need to reinstall your system.

The ssl vhost is not created when there is a problem with the ssl certificate e.g. because openssl could not create the cert due to special chars entered in the ssl cert detail fields. Ensure that the ssl checkbox is enabled in the website settings and that you selected a Ip address in the website settings. Go o the ssl tab of the site and select delete as action to remove the broken ssl cert and click on save. Then neter the correct ssl cert details, choose create as action and click on save and wait 1-2 minutes.

The detailed instructions on how to create a ssl certificate aredescribed in the manual as well.


All times are GMT +2. The time now is 22:06.

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