Error 500 in website while installing Joomla

Discussion in 'Installation/Configuration' started by lemtume, Mar 17, 2019.

  1. lemtume

    lemtume New Member HowtoForge Supporter

    Hi there,
    after installation Centos perfect server in accordance with article-> creating a new site (as ISPConfig admin) ->
    adding joomla installer to 'web' folder (var/www/clients/client1/web1/web/) (as Centos root)->

    I have met the following issue:
    HTML files work fine (I can see index.html - Welcome to your website!), at the same time
    any PHP files don't work (after opening I receive HTTP ERROR 500). Cant Install Joomla or open any PHP files.

    Error log after changing different PHP modes:
    Code:
    [Sun Mar 17 21:04:25.028875 2019] [fcgid:warn] [pid 15576] [client 192.168.100.3:6057] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/includes/defines.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:04:25.028953 2019] [fcgid:warn] [pid 15576] [client 192.168.100.3:6057] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/includes/defines.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:04:33.486894 2019] [core:crit] [pid 15574] (13)Permission denied: [client 192.168.100.3:6062] AH00529: /var/www/lemtu.me/web/installation/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/lemtu.me/web/installation/' is executable
    [Sun Mar 17 21:09:55.907847 2019] [fcgid:warn] [pid 15574] [client 192.168.100.3:6204] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/installation/application/bootstrap.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/installation/index.php on line 26
    [Sun Mar 17 21:09:55.907885 2019] [fcgid:warn] [pid 15574] [client 192.168.100.3:6204] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/installation/application/bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/installation/index.php on line 26
    [Sun Mar 17 21:09:59.707026 2019] [fcgid:warn] [pid 15577] [client 192.168.100.3:6208] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/installation/application/bootstrap.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/installation/index.php on line 26
    [Sun Mar 17 21:09:59.707062 2019] [fcgid:warn] [pid 15577] [client 192.168.100.3:6208] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/installation/application/bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/installation/index.php on line 26
    [Sun Mar 17 21:20:06.366219 2019] [fcgid:warn] [pid 23870] [client 192.168.100.3:6373] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/installation/application/bootstrap.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/installation/index.php on line 26
    [Sun Mar 17 21:20:06.366279 2019] [fcgid:warn] [pid 23870] [client 192.168.100.3:6373] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/installation/application/bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/installation/index.php on line 26
    [Sun Mar 17 21:22:19.633643 2019] [:error] [pid 24175] [client 192.168.100.3:6430] PHP Warning:  require_once(/var/www/clients/client1/web1/web/includes/defines.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:22:19.633699 2019] [:error] [pid 24175] [client 192.168.100.3:6430] PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/includes/defines.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:23:25.661601 2019] [:error] [pid 24175] [client 192.168.100.3:6484] PHP Warning:  require_once(/var/www/clients/client1/web1/web/includes/defines.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:23:25.661643 2019] [:error] [pid 24175] [client 192.168.100.3:6484] PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/includes/defines.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:29:52.126501 2019] [fcgid:warn] [pid 24532] [client 192.168.100.3:6728] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/includes/defines.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:29:52.126544 2019] [fcgid:warn] [pid 24532] [client 192.168.100.3:6728] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/includes/defines.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:38:36.318379 2019] [fcgid:warn] [pid 26384] [client 192.168.100.3:6862] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/includes/defines.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:38:36.318422 2019] [fcgid:warn] [pid 26384] [client 192.168.100.3:6862] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/includes/defines.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:40:11.160932 2019] [fcgid:warn] [pid 26386] [client 192.168.100.3:6880] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/includes/defines.php): failed to open stream: Permission denied in /var/www/clients/client1/web1/web/index.php on line 37
    [Sun Mar 17 21:40:11.161056 2019] [fcgid:warn] [pid 26386] [client 192.168.100.3:6880] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/includes/defines.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/index.php on line 37
    Please advise. In ISPconfig manual can't find a solution.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your problem is that you get a 500 error in your website while the thread you originally posted in is about a 500 error in ISPConfig, so that's a completely different topic. I moved this to a new thread now.

    The reason for your problem seems to be that you uploaded the joomla installer under a wrong user (root) so that the webserver and web user can't access it. To fix that, run:

    chown -R web1:client1 /var/www/clients/client1/web1/web/*

    and ensure that you use php mode php-fpm or php-fcgi in the website and that the suexec checkbox is enabled. Next time if you don't want to have to chown the files, upload them with a FTP user of the site or use a shell user of the site to download the joomla installer as this ensures that all files are owned by the right user.
     
    lemtume likes this.

Share This Page