Hello, i have a simular issue like this post : https://forum.howtoforge.com/threads/port-8080-ispconfig-seems-not-to-be-listening.78947/ I had to uninstall and reinstall apache2 on my server. i can't access to ispconfig web administration. Now with apachectl -S command i have this default file configuration : VirtualHost configuration: *:80 vmi730079.contaboserver.net (/etc/apache2/sites-enabled/000-default.conf:1) How can i replace it with the good default file configuration of ispconfig *:8080 *************.com (/etc/apache2/sites-enabled/000-ispconfig.vhost:8) Thank you for your help. Regards.
You mix up files here, /etc/apache2/sites-enabled/000-ispconfig.vhost is not a replacement for /etc/apache2/sites-enabled/000-default.conf and also /etc/apache2/sites-enabled/000-ispconfig.vhost is not a default file, it's the ISPConfig vhost. Do you have a backup of the Apache config files from the time point before you wiped out the config?
Do you have a backup of the Apache config files from the time point before you wiped out the config?[/QUOTE] No i don't have a backup from this file.. With ls -la /etc/apache2/sites-enabled/ i have these results : Code: lrwxrwxrwx 1 root root 39 Aug 3 00:25 000-apps.vhost -> /etc/apache2/sites-available/apps.vhost lrwxrwxrwx 1 root root 35 Aug 2 23:25 000-default.conf -> ../sites-available/000-default.conf lrwxrwxrwx 1 root root 43 Aug 3 00:25 000-ispconfig.conf -> /etc/apache2/sites-available/ispconfig.conf lrwxrwxrwx 1 root root 38 Aug 3 00:25 999-acme.conf -> /etc/apache2/sites-available/acme.conf With ls -la /etc/apache2/sites-available/ i have all these website. Code: total 256 drwxr-xr-x 2 root root 4096 Aug 3 01:12 . drwxr-xr-x 8 root root 4096 Aug 3 01:00 .. -rw-r--r-- 1 root root 1332 Apr 2 05:06 000-default.conf -rw-r--r-- 1 root root 310 Aug 3 00:25 acme.conf -rw-r--r-- 1 root root 1362 Aug 3 00:32 apps.vhost -rw-r--r-- 1 root root 13245 May 25 13:50 artisan-de-pierres-maroc.com.vhost -rw-r--r-- 1 root root 12317 Aug 2 21:48 autourdukitab.dev.vhost -rw-r--r-- 1 root root 13191 Jun 20 20:42 bienvieillir-chez-soi.fr.vhost -rw-r--r-- 1 root root 13499 May 25 13:50 boutique-oiseaux-europiafs.com.vhost -rw-r--r-- 1 root root 6338 Apr 2 05:06 default-ssl.conf -rw-r--r-- 1 root root 12966 May 25 13:50 dordogne-soleil.com.vhost -rw-r--r-- 1 root root 12900 May 25 15:07 ghiata-pierre.com.vhost -rw-r--r-- 1 root root 1975 Aug 3 00:32 ispconfig.conf -rw-r--r-- 1 root root 3267 Aug 3 01:12 ispconfig.vhost -rw-r--r-- 1 root root 12993 Jun 23 11:35 kamel-latreche.com.vhost -rw-r--r-- 1 root root 13116 May 25 14:11 le-diamant-mandarin.com.vhost -rw-r--r-- 1 root root 12696 May 25 14:25 maproo.fr.vhost -rw-r--r-- 1 root root 12762 May 25 14:25 mg-tools.eu.vhost -rw-r--r-- 1 root root 12466 May 31 08:22 perruches-ondulees.com.vhost -rw-r--r-- 1 root root 12885 May 25 14:11 samdepanne71.com.vhost -rw-r--r-- 1 root root 12782 May 25 16:12 sympatico-vagal.com.vhost -rw-r--r-- 1 root root 12259 May 25 14:11 terre-delice.fr.vhost Apache is not listening port 8080 , there is no result with netstat -tupln | grep 8080 With nano /etc/apache2/sites-available/ispconfig.vhost Code: ###################################################### # This virtual host contains the configuration # for the ISPConfig controlpanel ###################################################### Listen 8080 NameVirtualHost *:8080 <VirtualHost _default_:8080> ServerAdmin webmaster@localhost <Directory /var/www/ispconfig/> <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> </Directory> <Directory /usr/local/ispconfig/interface/web/> <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> </Directory> <IfModule mod_fcgid.c> DocumentRoot /var/www/ispconfig/ SuexecUserGroup ispconfig ispconfig <Directory /var/www/ispconfig/> Options -Indexes +FollowSymLinks +MultiViews +ExecCGI AllowOverride AuthConfig Indexes Limit Options FileInfo <FilesMatch "\.php$"> SetHandler fcgid-script </FilesMatch> FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php Require all granted </Directory> IPCCommTimeout 7200 MaxRequestLen 15728640 </IfModule> <IfModule mpm_itk_module> DocumentRoot /usr/local/ispconfig/interface/web/ AssignUserId ispconfig ispconfig AddType application/x-httpd-php .php <Directory /usr/local/ispconfig/interface/web> # php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp" Options +FollowSymLinks AllowOverride None Require all granted php_value magic_quotes_gpc 0 </Directory> </IfModule> # ErrorLog /var/log/apache2/error.log # CustomLog /var/log/apache2/access.log combined ServerSignature Off <IfModule mod_security2.c> SecRuleEngine Off </IfModule> # SSL Configuration SSLEngine On SSLProtocol All -SSLv3 SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key #SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES2> SSLHonorCipherOrder On <IfModule mod_headers.c> Header always add Strict-Transport-Security "max-age=15768000" RequestHeader unset Proxy early </IfModule> SSLUseStapling On SSLStaplingResponderTimeout 5 SSLStaplingReturnResponderErrors Off </VirtualHost> <IfModule mod_ssl.c> SSLStaplingCache shmcb:/var/run/ocsp(128000) </IfModule> <Directory /var/www/php-cgi-scripts> AllowOverride None Require all denied </Directory> <Directory /var/www/php-fcgi-scripts> AllowOverride None Require all denied </Directory> Also in nano /etc/apache2/ports.conf i have Code: # If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default.conf Listen 80 <IfModule ssl_module> Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet # NameVirtualHost *:80 # NameVirtualHost *:443 Thank you for your help.
run: ln -s /etc/apache2/sites-available/ispconfig.vhost /etc/apache2/sites-enabled/000-ispconfig.vhost service apache2 restart
Thank you, now i have the same websites in enabled website : Code: lrwxrwxrwx 1 root root 39 Aug 3 00:25 000-apps.vhost -> /etc/apache2/sites-available/apps.vhost lrwxrwxrwx 1 root root 35 Aug 2 23:25 000-default.conf -> ../sites-available/000-default.conf lrwxrwxrwx 1 root root 43 Aug 3 00:25 000-ispconfig.conf -> /etc/apache2/sites-available/ispconfig.conf lrwxrwxrwx 1 root root 44 Aug 3 07:58 000-ispconfig.vhost -> /etc/apache2/sites-available/ispconfig.vhost lrwxrwxrwx 1 root root 38 Aug 3 00:25 999-acme.conf -> /etc/apache2/sites-available/acme.conf Apache seems to listen port 8080 now Code: netstat -tupln | grep 8080 tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 175015/apache2 But when i want to access ispconfigpanel i have this error message : Not Found The requested URL was not found on this server. Thank you. regards.
Yes you can check here : https://vmi730079.contaboserver.net:8080/login/ You can check also one of the website : https://samdepanne71.com/ Thank's.
O,, you can try to run an ISPConfig update with: ispconfig_update.sh --force and let the updater reconfigure services. Or you might have uninstalled other packages besides Apache (which depend on Apache) that are missing yet or disabled some Apache modules.
I have updated ispconfig but the access problem persists: I have uninstalled and reinstalled apache2 with thses commandes Code: sudo apt-get remove --purge apache2 apache2-data apache2-utils sudo apt-get install apache2 How can i reinstall packages besides apache or enable apache modules ? Thank you.
That command purge all already created apache2 settings, which I personally would not advise. The same way you manually install them i.e. not via ISPConfig autoinstaller but via following related ISPConfig Perfect Server Tutorial. If you mean to change to other web server, that will be more difficult thus not advisable for normal users, though it is possible.
ok thank you i try with this one : https://www.howtoforge.com/perfect-server-debian-10-buster-apache-bind-dovecot-ispconfig-3-1/ Does a tutorial exist for debian 11 ? regards.
Thank you, i did it but it's the same state : I don't understand why its ok when i check https://vmi730079.contaboserver.net:8080/ but we don't see all the vhost files with ls -la /etc/apache2/sites-enabled/ I have only these one Code: lrwxrwxrwx 1 root root 39 Aug 3 00:25 000-apps.vhost -> /etc/apache2/sites-av ailable/apps.vhost lrwxrwxrwx 1 root root 35 Aug 2 23:25 000-default.conf -> ../sites-available/ 000-default.conf lrwxrwxrwx 1 root root 43 Aug 3 00:25 000-ispconfig.conf -> /etc/apache2/site s-available/ispconfig.conf lrwxrwxrwx 1 root root 44 Aug 3 07:58 000-ispconfig.vhost -> /etc/apache2/sit es-available/ispconfig.vhost lrwxrwxrwx 1 root root 38 Aug 3 08:49 999-acme.conf -> /etc/apache2/sites-ava ilable/acme.conf We should be to see all the websites here no ? Also, whit with apachectl -S i have Code: VirtualHost configuration: *:8081 vmi730079.contaboserver.net (/etc/apache2/sites-enabled/000-apps.vhost:9) *:80 vmi730079.contaboserver.net (/etc/apache2/sites-enabled/000-default.conf:1) *:8080 vmi730079.contaboserver.net (/etc/apache2/sites-enabled/000-ispconfig.vhost:9) In the port 80 i should to have someting like Code: *:80 is a NameVirtualHost default server vmi680454.contaboserver.net (/etc/apache2/sites-enabled/000-default.conf:1) port 80 namevhost vmi680454.contaboserver.net (/etc/apache2/sites-enabled/000-default.conf:1) port 80 namevhost 2lpro.fr (/etc/apache2/sites-enabled/900-2lpro.fr.vhost:7) wild alias *.2lpro.fr Thank's.
That's because you deleted all vhosts by uninstalling and purging Apache2. as @ahrasis mentioned, removing and purging apache2 was not such a good idea, at least not if you plan to use a system in future. What you can try is that you login to ISPConfig, go to Tools > resync and then resync all websites.
I have found the missed php module ! It's Mpm-itk-module https://www.pizzolongo.com/2018/07/apache2-mpm-itk-on-debian-9/ I have also installed other php 7.4 modules with this tuto : https://www.delixirpro.com/blog/2020/01/04/installer-apache-2-php-7-mariadb-sous-linux-lamp/ i have resynchronise all websites in ispconfig pannel. it's all ok now. Thank you very much for your assitance, your are the best
So your ISPConfig UI is accessible again. Good. Now do what was advised to you above i.e. resync all websites. This should restore all web site's settings. Be patient as it may take some times.
Yes, thank you, i dit it. I just have a problem to access webmail now : https://vmi730079.contaboserver.net:8080/webmail I have this message: Forbidden You don't have permission to access this resource. thank's.
Hello, thank you, i did it but it doesn't work. Can i uninstall and reinstall Roundcube without delete databases ?