enter image description here

I am getting this on my website. I then check the usergroup for apache and to the dir of root of project

enter image description here


enter image description here

apache configuration is:

<VirtualHost *:80>
  ServerAdmin rajanlagah@gmail.com
  ServerName beta.--.com
  ServerAlias beta.--.com
  DocumentRoot /var/lib/jenkins/workspace/beta-frontend/build

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

What is wrong?

  • 1
    Better to look at apache2 error log file. Typically at: /var/log/apache2/error.log
    – FedKad
    Oct 3, 2020 at 16:31
  • Thankyou for this i will look to it shortly. @FedonKadifeli Oct 3, 2020 at 16:52
  • Your normal user may have read access to this directory (DocumentRoot). But, apache2 daemon runs under user www-data (by default) and the www-data user may not have read access to this directory. Run the following command sudo su --shell /bin/bash --login www-data, then go to directory /var/lib/jenkins/workspace/beta-frontend/build and try to list its contents.
    – FedKad
    Oct 3, 2020 at 17:03
  • @FedonKadifeli Nothing but this worked, Thankyou Oct 3, 2020 at 20:28

1 Answer 1


Try changing the owner of the following directory /var/lib/jenkins/workspace/beta-frontend/build to www-data

use following command to do so:

sudo chown -R www-data:www-data /var/lib/jenkins/workspace/beta-frontend/build

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.