Error with ispconfig 3 after this configuration

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

  1. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Code:
    cd /tmp
    wget https://www.ispconfig.org/downloads/ISPConfig-3.1.15p3.tar.gz
    tar xvfz ISPConfig-3.1.15p3.tar.gz
    cd ispconfig3_install/install
    php -q update.php
    Run this for a force update
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    We should add an option to the installer to do this, it would save posting that info several times per week.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that's a good idea.
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  5. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Already implemented in 3.2
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Always one step ahead of us ;)
     
  7. alexanderdev

    alexanderdev New Member

    Hello, excuse me for this long silence, I still asked for help and I did not come back to you. It's good, I solved the problem, it came from CHMOD. Thank you all for your help, I close the topic, thank you.
     
  8. TopRank

    TopRank New Member

    How can I change permissions ? I can't access me too to my admin panel, I changed permission with a chmod but I don't remember exactly the mistake I have done, I don't know how command to type to change www-data in root, an idea?
    Here is the result for shell commands:
    root@serveur:~# ls -la /var/www/php-fcgi-scripts
    total 16
    drwxr-xr-- 4 www-data www-data 4096 Jan 28 16:23 .
    drwxr-xr-x 8 www-data www-data 4096 Mar 6 18:34 ..
    drwxr-xr-x 2 www-data www-data 4096 Jan 28 16:23 apps
    drwxr-xr-x 2 www-data www-data 4096 Jan 28 16:23 ispconfig
    root@serveur:~# ls -la /var/www/php-fcgi-scripts/ispconfig/
    total 12
    drwxr-xr-x 2 www-data www-data 4096 Jan 28 16:23 .
    drwxr-xr-- 4 www-data www-data 4096 Jan 28 16:23 ..
    -rwxr-xr-x 1 ispconfig ispconfig 300 Jan 28 16:23 .php-fcgi-starter
     
  9. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    The chown command can be used to change the user. Though you seem to have been running that recursively in a directory above this one, which broke it in the first place. So you might have some more problems.
     
  10. TopRank

    TopRank New Member

    Yes I chmod 777 the repertory recursively this one, and I have other problems, true, for exemple for ssl certificate of some websites. How can I change with chown for example www-data in root , and www-data in ispconfig? What are the numbers of chown in this case for the command? I try to restore a backup like explain in the topic but it is the same problem, I can't go to the admin panel. Maybe it will go faster to make a new install of the system with Ispconfig too?
     
  11. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    755 for apps and ispconfig files and folders
    550 for web## ffiles and folders.
    apps and ispconfig are owned by themselves
    web folders are owned by same web_id as the folder name, and the client_id for the site owner

    Code:
    drwxr-xr-x 2 ispapps   ispapps   4096 Nov  6  2018 apps
    drwxr-xr-x 2 ispconfig ispconfig 4096 Nov  6  2018 ispconfig
    dr-xr-x--- 2 web1394   client298 4096 May  3 14:39 web1394
    dr-xr-x--- 2 web1573   client241 4096 May  3 14:38 web1573
    
    Code:
    /var/www/php-fcgi-scripts/web1394
    total 12
    dr-xr-x--- 2 web1394 client298 4096 May  3 14:39 .
    drwxr-xr-x 8 root    root      4096 Oct 14  2019 ..
    -r-xr-x--- 1 web1394 client298 1115 May  3 14:39 .php-fcgi-starter
    /var/www/php-fcgi-scripts/ispconfig
    total 12
    drwxr-xr-x 2 ispconfig ispconfig 4096 Nov  6  2018 .
    drwxr-xr-x 8 root      root      4096 Oct 14  2019 ..
    -rwxr-xr-x 1 ispconfig ispconfig  300 Jun 16  2021 .php-fcgi-starter
    
    Code:
    cd /var/www/php-fcgi-scripts
    chown -R ispapps:ispapp  apps
    chown -R ispconfig:ispconfig ispconfig
    chown -R web##:client##  web##            - the web id ## should be obvious, you'll need to find the correct client id ##
                                                                    - repeat for each different web folder.
    
     
    TopRank, Th0m and Jesse Norell like this.
  12. TopRank

    TopRank New Member

    Thank you for your reponse.
    ok that works with chown and your explanations, now I have the good values or same than the post of Till.
    Code:
    root@serveur:/var/www# ls -la /var/www/php-fcgi-scripts
    total 16
    drwxr-xr-x 4 root      root      4096 Jan 28 16:23 .
    drwxr-xr-x 8 root      root      4096 Mar  6 18:34 ..
    drwxr-xr-x 2 ispapps   ispapps   4096 Jan 28 16:23 apps
    drwxr-xr-x 2 ispconfig ispconfig 4096 Jan 28 16:23 ispconfig
    
    I have an access to the admin panel again, but I have an other problem, actually I can't add or remove a site with the admin panel. I don't have the website admin beetween home and client admin part. How can I re activate the website part admin with command line?

    upload_2022-5-8_1-46-8.png
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Go to System > CP Users, edit the admin user, and there you enable the checkbox for 'sites' in the 'Modules' settings. You might have to log out and log in again to activate the change.
     

Share This Page