New websites giving 403 forbidden error

Discussion in 'Installation/Configuration' started by ad.shannon, Jun 22, 2015.

  1. ad.shannon

    ad.shannon New Member

    Hi
    I have a server with Centos 6.5 running ISPconfig 3 after following this guide
    https://www.howtoforge.com/perfect-...l-php-pureftpd-postfix-dovecot-and-ispconfig3

    all was working will then couple of days ago something happened. If I try create a new website and then access it I get a 403 forbidden error.
    It looks like no new vhost files are created when the new website is created but not sure how to fix this.

    I haven't noticed any other issues so far, any websites that were creating before are still up and running, mail is still working, etc.

    I get an email saying the following when I try create or update a new website in ISPconfig...
    WARNING - Could not check apache version, apachectl not found.

    And a second email saying....
    WARNING - Action aborted, file is a symlink:


    Here's the output from the ISPConfig test script...
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p5


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

    [INFO] php (cli) version is 5.3.3

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

    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening
    [WARN] Port 80 (Webserver) seems NOT to be listening
    [WARN] Port 443 (Webserver SSL) seems NOT to be listening
    [WARN] Port 143 (IMAP server) seems NOT to be listening
    [WARN] Port 993 (IMAP server SSL) seems NOT to be listening
    [WARN] Port 110 (POP3 server) seems NOT to be listening
    [WARN] Port 995 (POP3 server SSL) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    [WARN] Port 21 (FTP server) seems NOT to be listening
    [WARN] Port 22 (SSH server) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems NOT to be listening

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

    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.

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

    [WARN] I could not determine which web server is running.
    [WARN] I could not determine which mail server is running.
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [WARN] I could not determine which ftp server is running.

    ##### LISTENING PORTS #####




    ##### IPTABLES #####



    Any help would be appreciated

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Run:

    /usr/local/ispconfig/server/server.sh

    as root on the shell, then check if the site is working.
     
  3. ad.shannon

    ad.shannon New Member

    That gives the following

    # /usr/local/ispconfig/server/server.sh
    PHP Warning: exec() has been disabled for security reasons in /usr/local/ispconfig/server/server.php on line 135
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The problem is that you disabled the exec command in php.ini which stops php based shell scripts that have to run external commands like ispconfig. Copy your system php.ini to /usr/local/ispconfig/server/lib/php.ini and then remove all functions that are listed in the disabled functions line.
     
  5. ad.shannon

    ad.shannon New Member

    I now get nothing back when I run the server.sh script.

    But still have the 403 error trying to access the new website
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

  7. ad.shannon

    ad.shannon New Member

    Thanks Till

    had to repeat these commands a few times

    - Delete the lockfile:
    rm -f /usr/local/ispconfig/server/temp/.ispconfig_lock
    - run:
    /usr/bin/php -q /usr/local/ispconfig/server/server.php

    but looks good now.
     

Share This Page