Error with ispconfig 3 after this configuration

Discussion in 'General' started by alexanderdev, Sep 9, 2020.

  1. alexanderdev

    alexanderdev New Member

    Hello,

    I trie this :
    1. Change directories

      cd /var/www/

    2. Change group ownership

      sudo chown -Rv root:$USER .

    3. Add priviledges to our group

      sudo chmod -Rv g+rw
    edit: https: //stackoverflow.com/questions/30266250/how-to-fix-error-mkdir-permission-denied-when-running-composer
     
  2. alexanderdev

    alexanderdev New Member

    After, ispconfig in internal server error,
    apache.log
    Code:
    [ 2020-09-09 09:46:26.9868 7456/7f9829575700 Ser/Server.h:464 ]: [ServerThr.6] Shutdown finished
    [ 2020-09-09 09:46:27.0094 7508/7f2b9123b600 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
    [ 2020-09-09 09:46:27.0149 7511/7f29744f7600 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
    [ 2020-09-09 09:46:27.0150 7511/7f29744f7600 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
    [ 2020-09-09 09:46:27.0579 7511/7f29744f7600 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 7511
    [ 2020-09-09 09:46:27.0653 7521/7fb6c7f0e600 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
    [ 2020-09-09 09:46:27.0657 7521/7fb6c7f0e600 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 7521
    [Wed Sep 09 09:46:27.081134 2020] [:error] [pid 7505] python_init: Python version mismatch, expected '2.7.5+', found '2.7.13'.
    [Wed Sep 09 09:46:27.081187 2020] [:error] [pid 7505] python_init: Python executable found '/usr/bin/python'.
    [Wed Sep 09 09:46:27.081189 2020] [:error] [pid 7505] python_init: Python path being used '/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
    [Wed Sep 09 09:46:27.081198 2020] [:notice] [pid 7505] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
    [Wed Sep 09 09:46:27.081200 2020] [:notice] [pid 7505] mod_python: using mutex_directory /tmp
    [Wed Sep 09 09:46:27.085467 2020] [ssl:warn] [pid 7505] AH01906: ***:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Wed Sep 09 09:46:27.088385 2020] [mpm_prefork:notice] [pid 7505] AH00163: Apache/2.4.25 (Debian) mod_fcgid/2.3.9 Phusion_Passenger/5.0.30 mod_python/3.3.1 Python/2.7.13 OpenSSL/1.0.2u configured -- resuming normal operations
    [Wed Sep 09 09:46:27.088427 2020] [core:notice] [pid 7505] AH00094: Command line: '/usr/sbin/apache2'
    [ 2020-09-09 09:46:27.1294 7456/7f9836ad7600 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished
    [Wed Sep 09 09:46:29.626322 2020] [fcgid:warn] [pid 7554] (104)Connection reset by peer: [client ***:64348] mod_fcgid: error reading data from FastCGI server
    [Wed Sep 09 09:46:29.626339 2020] [core:error] [pid 7554] [client ***:64348] End of script output before headers: index.php
    [Wed Sep 09 09:46:30.437687 2020] [fcgid:warn] [pid 7571] (104)Connection reset by peer: [client ***:64350] mod_fcgid: error reading data from FastCGI server
    [Wed Sep 09 09:46:30.437705 2020] [core:error] [pid 7571] [client **:64350] End of script output before headers: index.php
    [Wed Sep 09 09:46:31.949695 2020] [fcgid:warn] [pid 7554] (104)Connection reset by peer: [client ***:64353] mod_fcgid: error reading data from FastCGI server
    [Wed Sep 09 09:46:31.949709 2020] [core:error] [pid 7554] [client ***:64353] End of script output before headers: index.php
    [Wed Sep 09 09:46:33.043545 2020] [fcgid:warn] [pid 7575] (104)Connection reset by peer: [client ***:64356] mod_fcgid: error reading data from FastCGI server
    [Wed Sep 09 09:46:33.043563 2020] [core:error] [pid 7575] [client 90.50.24.148:64356] End of script output before headers: index.php
    [Wed Sep 09 09:46:33.473796 2020] [fcgid:warn] [pid 7558] (104)Connection reset by peer: [client ***:64359] mod_fcgid: error reading data from FastCGI server
    [Wed Sep 09 09:46:33.473815 2020] [core:error] [pid 7558] [client ****:64359] End of script output before headers: index.php
    [Wed Sep 09 09:46:33.971003 2020] [fcgid:warn] [pid 7554] (104)Connection reset by peer: [client ***:64362] mod_fcgid: error reading data from FastCGI server
    [Wed Sep 09 09:46:33.971035 2020] [core:error] [pid 7554] [client ***] End of script output before headers: index.php
    [Wed Sep 09 09:50:25.956715 2020] [fcgid:warn] [pid 7825] (104)Connection reset by peer: [client ***51692] mod_fcgid: error reading data from FastCGI server
    [Wed Sep 09 09:50:25.956731 2020] [core:error] [pid 7825] [client ***] End of script output before headers: index.php
    apache.suexec
    [2020-09-09 08:34:13]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:34:30]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:34:30]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:34:53]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:34:53]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:39:13]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:39:13]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:46:39]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:46:39]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:48:56]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:48:56]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:55:31]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:55:31]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:55:33]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:55:33]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:55:33]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:55:33]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:55:34]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:55:34]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:55:34]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:55:34]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)
    [2020-09-09 08:55:34]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2020-09-09 08:55:34]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)

    var/www ls -la
    [email protected]:/var/www# ls -la
    total 32
    drwxrwxr-x 8 root root 4096 sept. 2 16:36 .
    drwxr-xr-x 14 root root 4096 mars 20 00:03 ..
    drwxrwxr-x 2 root root 4096 mars 19 11:18 apps
    lrwxrwxrwx 1 root root 30 mars 20 12:02 ********** -> /var/www/clients/client0/web2/
    drwxrwxr-x 3 root root 4096 mars 19 11:54 clients
    drwxrwxr-x 2 root root 4096 mars 19 11:54 conf
    lrwxrwxrwx 1 root root 30 mars 19 11:54 ************ -> /var/www/clients/client0/web1/
    lrwxrwxrwx 1 root root 30 sept. 2 16:36 ********* -> /var/www/clients/client0/web4/
    drwxrwxr-x 2 root root 4096 mars 19 11:17 html
    lrwxrwxrwx 1 root root 34 mars 19 11:18 ispconfig -> /usr/local/ispconfig/interface/web
    drwxr-xr-- 4 root root 4096 mars 19 11:18 php-fcgi-scripts
    drwxrwxr-x 2 root root 4096 sept. 9 00:50 webalizer
    lrwxrwxrwx 1 root root 24 mars 19 11:18 webmail -> /usr/share/squirrelmail/
     
  3. alexanderdev

    alexanderdev New Member

    config server

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 9.13 (stretch)

    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.1.15p3

    [WARN] Could not use mysql command line to connect to the database. Check your mysql config!

    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.4.9

    ##### PORT CHECK #####

    [WARN] Port 22 (SSH server) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Apache 2 (PID 5540)
    [INFO] I found the following mail server(s):
    Unknown process (smtpd) (PID 5332)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 11913)
    [INFO] I found the following imap server(s):
    Dovecot (PID 11913)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 25220)

    ##### LISTENING PORTS #####
    (seulement ()
    Adresse (distante)
    [anywhere]:993 (11913/dovecot)
    [anywhere]:995 (11913/dovecot)
    [localhost]:9000 (27053/php-fpm:)
    [anywhere]:72 (20450/sshd)
    [localhost]:10024 (11224/amavisd-new)
    [localhost]:10025 (11896/master)
    [localhost]:3306 (6023/mysqld)
    [localhost]:10026 (11224/amavisd-new)
    [localhost]:10027 (11896/master)
    [anywhere]:587 (11896/master)
    [localhost]:11211 (757/memcached)
    [anywhere]:110 (11913/dovecot)
    [anywhere]:143 (11913/dovecot)
    [anywhere]:465 (11896/master)
    [anywhere]:21 (25220/pure-ftpd)
    ***.***.***.***:53 (8516/named)
    [localhost]:53 (8516/named)
    [localhost]:953 (8516/named)
    [anywhere]:25 (5332/smtpd)
    *:*:*:*::*:443 (5540/apache2)
    *:*:*:*::*:993 (11913/dovecot)
    *:*:*:*::*:995 (11913/dovecot)
    *:*:*:*::*:72 (20450/sshd)
    *:*:*:*::*:10024 (11224/amavisd-new)
    *:*:*:*::*:10026 (11224/amavisd-new)
    *:*:*:*::*:587 (11896/master)
    [localhost]10 (11913/dovecot)
    [localhost]43 (11913/dovecot)
    *:*:*:*::*:9200 (19584/java)
    [localhost]:9200 (19584/java)
    *:*:*:*::*:80 (5540/apache2)
    *:*:*:*::*:8080 (5540/apache2)
    *:*:*:*::*:465 (11896/master)
    *:*:*:*::*:8081 (5540/apache2)
    *:*:*:*::*:9300 (19584/java)
    [localhost]:9300 (19584/java)
    *:*:*:*::*:21 (25220/pure-ftpd)
    *:*:*:*::*:53 (8516/named)
    *:*:*:*::*:953 (8516/named)
    *:*:*:*::*:25 (5332/smtpd)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    f2b-pureftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21
    f2b-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993
    f2b-postfix tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25,465,587
    f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain f2b-dovecot-pop3imap (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-postfix (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-pureftpd (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-sshd (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0


    Please, help me :)
     
  4. alexanderdev

    alexanderdev New Member

    I am really pissed off. Till, do you think you can watch this with me? thank you
     
  5. nhybgtvfr

    nhybgtvfr Active Member

    the first thing to do would be to reverse all of the ownership and permission changes.
    ispconfig creates the site folders and files with the correct ownership permissions for each user, and generally with the correct read/write/execute permissions as well. you may need to change some of them for specific purposes, cms's, or frameworks. the install instructions would generally tell you about those, or the error logs would indicate some files can't be read, or executed, or some folder can't be written to, in which case you can selectively lower the restrictions for that specific file or folder.

    what you're doing here is changing all the owners and permissions for all files and folders for all sites on the server. how can you not expect to have problems when making such a major blanket change to permissions?
     
    Jesse Norell likes this.
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Any particular reason why? And are you pissed because of this forum?
    This breaks your web server. To fix, you have to repair the owners.
    Owners and group owners should look like this, for example, I got this from my working server:
    Code:
    /var/www# ls -lhd clients/client23/web82/
    drwxr-xr-x 10 web82 client23 4,0K marra 15  2017 clients/client23/web82/
    Easiest fix is to restore from backup. Other fixes take more work.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This must destroy your whole wen server setup as @Jesse Norell and @nhybgtvfr . Restore a backup to fix it.

    Do you really think that anyone here is happy to help you when you write something like this? You destroyed your setup by following a false advice that neither I nor someone here in the forum gave you. And if you are pissed off about yourself because you did that or not is something that you should make up with yourself.
     
  8. alexanderdev

    alexanderdev New Member

    Thanks for help me, I use google translate,

    I was naive to believe an online tutorial, not really knowing what I was copying and pasting, but now I'm moving forward and not making that kind of mistake again. If I am rewriting here, it is because I need referrals, in the meantime, have a nice day everyone.
     
  9. alexanderdev

    alexanderdev New Member

    I'm not pissed of with this forum, I'm pissed of about me :)
    Naaa I'm ok ;)
     
    Th0m likes this.
  10. alexanderdev

    alexanderdev New Member

    I got lost in the console, I broke my teeth, now I know.
     
  11. alexanderdev

    alexanderdev New Member

    /var/www# ls -lhd clients/client23/web82/
    drwxr-xr-x 10 web82 client23 4,0K marra 15 2017 clients/client23/web82/
    Easiest fix is to restore from backup. Other fixes take more work.

    I have this for the line in /var/www/ ls -la
    lrwxrwxrwx 1 root root 34 mars 19 11:18 ispconfig -> /usr/local/ispconfig/interface/web

    Do you think I do this :
    /var/www# ls -lhd clients/client0/web1/
    drwxr-xr-x 10 web1 client0 4,0K marra 15 2017 clients/client0/web1/
    ?

    This is all ls -la in /var/www/
    drwxrwxr-x 8 root root 4096 sept. 2 16:36 .
    drwxr-xr-x 14 root root 4096 mars 20 00:03 ..
    drwxrwxr-x 2 root root 4096 mars 19 11:18 apps
    lrwxrwxrwx 1 root root 30 mars 20 12:02 *******.com -> /var/www/clients/client0/web2/
    drwxrwxr-x 3 root root 4096 mars 19 11:54 clients
    drwxrwxr-x 2 root root 4096 mars 19 11:54 conf
    lrwxrwxrwx 1 root root 30 mars 19 11:54 ******.fr -> /var/www/clients/client0/web1/
    lrwxrwxrwx 1 root root 30 sept. 2 16:36 ******.net -> /var/www/clients/client0/web4/
    drwxrwxr-x 2 root root 4096 mars 19 11:17 html
    lrwxrwxrwx 1 root root 34 mars 19 11:18 ispconfig -> /usr/local/ispconfig/interface/web
    drwxr-xr-- 4 root root 4096 mars 19 11:18 php-fcgi-scripts
    drwxrwxr-x 2 root root 4096 sept. 10 00:50 webalizer
    lrwxrwxrwx 1 root root 24 mars 19 11:18 webmail -> /usr/share/squirrelmail/
     
  12. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That is a symbolic link. When the first character in permissions is "l", it is a symbolic link. Permissions and owners do not matter when it is a symbolic link. The real file or directory where the link points to must have the correct owners and permissions.
     
    alexanderdev likes this.
  13. alexanderdev

    alexanderdev New Member

    I'm ok, do you think I do change ispconfig user ?
     
  14. alexanderdev

    alexanderdev New Member

    I have this :
    (ispconfig **.**.**:8080)
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at web[email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.
     
  15. alexanderdev

    alexanderdev New Member

    vim apache2/error.log

    [Fri Sep 11 06:57:48.067042 2020] [fcgid:warn] [pid 8199] (104)Connection reset by peer: [client **.**.**.**:53128] mod_fcgid: error reading data from FastCGI server
    [Fri Sep 11 06:57:48.067065 2020] [core:error] [pid 8199] [client **.**.**.**:53128] End of script output before headers: index.php
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Probably some permissions in php-fcgi-scripts folder are wrong. Here the correct permissions:

    [email protected]:~# ls -la /var/www/php-fcgi-scripts
    total 16
    drwxr-xr-x 4 root root 4096 Jun 28 2019 .
    drwxr-xr-x 8 root root 4096 Aug 25 02:51 ..
    drwxr-xr-x 2 ispapps ispapps 4096 Jun 28 2019 apps
    drwxr-xr-x 2 ispconfig ispconfig 4096 Jun 28 2019 ispconfig
    [email protected]:~# ls -la /var/www/php-fcgi-scripts/ispconfig/
    total 12
    drwxr-xr-x 2 ispconfig ispconfig 4096 Jun 28 2019 .
    drwxr-xr-x 4 root root 4096 Jun 28 2019 ..
    -rwxr-xr-x 1 ispconfig ispconfig 300 Aug 25 02:43 .php-fcgi-starter
    [email protected]:~#
     
  17. alexanderdev

    alexanderdev New Member

    If I uninstall and re-install isp, do you think if I delete my websites ?

    I have installed ispconfig on another server since, it gave me this idea.
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    Don't do that, you will not be able to reuse the existing sites. You would have to reinstall the whole server in that case.

    What you can try is this:

    1) Run an ispconfig update with reconfigure services = yes during update.

    if you are able to log into ispconfig again, then enable 'update permissions on update' under system > server config > web and then run Tools > resync to force an update on all websites.
     
  19. alexanderdev

    alexanderdev New Member

    Ok, I try this and I tell you.
     
  20. alexanderdev

    alexanderdev New Member

    ispconfig_update.sh
    >> Update

    Please choose the update method. For production systems select 'stable'.
    WARNING: The update from GIT is only for development systems and may break your current setup. Do not use the GIT version on servers that host any live websites!
    Note: Update all slave server, before you update master server.

    Select update method (stable,git-stable,git-master) [stable]:

    There are no updates available for ISPConfig 3.1.15p3
     

Share This Page