Koozali.org: home of the SME Server

Cannot acces https

Offline meelis

  • ****
  • 112
  • +0/-0
Cannot acces https
« on: November 14, 2012, 09:02:09 AM »
I changed phpbasedirectory primary ibay and now i cant access webmail and server-manager etc.. this is httpd error log
tail -f /var/log/httpd/error_log
[Wed Nov 14 09:44:06 2012] [warn] NameVirtualHost 0.0.0.0:443 has no VirtualHosts
[Wed Nov 14 09:44:06 2012] [warn] NameVirtualHost 0.0.0.0:80 has no VirtualHosts

and browser says error: ssl_error_rx_record_too_long

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #1 on: November 14, 2012, 10:51:58 AM »
Can this may fix the problem if recrate certifcates?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Cannot acces https
« Reply #2 on: November 14, 2012, 10:56:09 AM »
meelis

Quote
I changed phpbasedirectory primary ibay ....

I suggest you undo that change and then see if things work OK again.
If so, you can then work out how to correctly make the required change.

You may want/need to move your Primary ibay content to a regular ibay, so that way if you make any changes to the ibay folder it will not upset the rest of your server's main domain functionality.
Just a guess & a suggestion, as I did not research your problem.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #3 on: November 14, 2012, 10:58:33 AM »
I changed back but i still get this error ssl_error_rx_record_too_long

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #4 on: November 14, 2012, 02:00:57 PM »
 :-( Has enybody can help me, i cant access server-manager and eny page if https required?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Cannot acces https
« Reply #5 on: November 14, 2012, 02:33:22 PM »
I changed back

how?

post the output of
Code: [Select]
db accounts show Primary

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #6 on: November 14, 2012, 04:03:29 PM »
   CgiBin=enabled
    Group=shared
    Modifiable=yes
    Name=Primary i-bay
    PHPBaseDir=/home/e-smith/files/ibays/Primary:/tmp
    PasswordSet=no
    Passwordable=no
    PublicAccess=global
    Removable=no
    UserAccess=wr-group-rd-everyone

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Cannot acces https
« Reply #7 on: November 14, 2012, 05:56:51 PM »
try
Code: [Select]
db accounts delprop Primary PHPBaseDir
signal-event ibay-modify Primary

should do the trick

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #8 on: November 14, 2012, 06:15:22 PM »
not working, webpages over http working but over https not

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Cannot acces https
« Reply #9 on: November 14, 2012, 06:19:36 PM »
Quote
to remove all old & unwanted files do the following (make a backup of files in these folders first, if you have commercial certificates). You should answer y to accept each file removal one at a time.
Code: [Select]
rm /home/e-smith/ssl.crt/*
rm /home/e-smith/ssl.key/*
rm /home/e-smith/ssl.pem/*
signal-event post-upgrade
signal-event reboot

from the wiki..
try.. and, obviously, close and reopen your browser

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #10 on: November 14, 2012, 07:10:53 PM »
nothing same problem

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #11 on: November 14, 2012, 08:18:07 PM »
http://www.sslshopper.com/ssl-checker.html# says No SSL certificates were found?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Cannot acces https
« Reply #12 on: November 14, 2012, 10:10:25 PM »
meelis

what else did you modify?

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #13 on: November 15, 2012, 07:25:53 AM »
I dont now, i think something wrong is http.conf or/and virtual hosts. I see this errors
[warn] NameVirtualHost 0.0.0.0:443 has no VirtualHosts
[warn] NameVirtualHost 0.0.0.0:80 has no VirtualHosts
this is my httpd.conf, http://www.vkok.ee/httpd.confu.txt

and this error PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening '' for inclusion (include_path='.:/usr/share/pear-addons:/usr/share/pear')


« Last Edit: November 15, 2012, 08:01:37 AM by meelis »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Cannot acces https
« Reply #14 on: November 15, 2012, 10:18:50 AM »
please post the output of
Code: [Select]
/sbin/e-smith/audittools/templates

BTW, you can see what you did using
Code: [Select]
history

finally, a suggestion: NEVER play with your production server.. use a virtual machine to test

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #15 on: November 15, 2012, 10:23:01 AM »
./templates
/etc/e-smith/templates-custom/etc/ups/upssched.conf/01CONFIG: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/ups/upsmon.conf/NOTIFYCMD: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/ups/upsd.users/admin: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/crontab/unjunkstats: OWNED_BY_RPM, ADDITION
/etc/e-smith/templates-custom/etc/crontab/unjunk: OWNED_BY_RPM, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/unjunkmgr: OWNED_BY_RPM, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/S85ErrorPages: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/roundcube: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/login.php: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/login.html: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/login.inc: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/php-pecl-fileinfo-1.0.4-2.el5.rf.i386.rpm: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/motd.php: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/sudoers/30nut: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/sudoers/10sudoers: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/smb.conf/50userhomes-admin: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/qmail/alias/.qmail-oblivion: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/qmail/control/queuelifetime: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/qmail/control/doublebounceto: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/17check_basicheaders: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/17check_basicheaders: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/275compose_confirm: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/395emoticons: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/055show_preview: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/290compose_html: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/425refresh_time: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/560save_recipients: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/435preview_enabled: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/455preview_show_tooltip: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/430nav_popup: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/prefs.php/285compose_popup: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/config/prefs.php/310initialapplication: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/httpd/html/horde/config/prefs.php/200personal: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98glpi: MANUALLY_ADDED
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99ocs-comm_server: MANUALLY_ADDED
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98ocs-reports: MANUALLY_ADDED
/etc/e-smith/templates/opt/roundcube/config/main.inc.php/20local: MANUALLY_ADDED

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Cannot acces https
« Reply #16 on: November 15, 2012, 10:27:29 AM »
Code: [Select]
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/S85ErrorPages: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/roundcube: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/login.php: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/login.html: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/login.inc: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/php-pecl-fileinfo-1.0.4-2.el5.rf.i386.rpm: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/motd.php: MANUALLY_ADDED, ADDITION

[re]move these files, expand template and restart httpd

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #17 on: November 15, 2012, 10:42:33 AM »
Many many thanks again, i'm never play working server, almost all working again except horde there i see the error Horde is unable to correctly start the custom session handler?

A man never learns from others' mistakes, only from their own