Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4214  / 3 Years ago, tue, may 4, 2021, 12:07:54

I followed this tutorial in installing Bugzilla, I didn't encounter any problem not until I hit localhost/bugzilla in the URL. My sites-available/default config is as follows:



    #ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Alias /bugzilla/ /var/www/bugzilla/
<Directory /var/www/bugzilla>
AddHandler cgi-script .cgi .pl
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>
#<Directory "/usr/lib/cgi-bin">
# AllowOverride All
# Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
# Order allow,deny
# Allow from all
#</Directory>


And when tailing at var/log/apache2/error.log



(13)Permission denied: exec of '/var/www/bugzilla/index.cgi' failed





From comments ...



ls -l -rwxr-x--- 1 root apache2 2.6K Feb 20 01:16 /var/www/bugzilla/index.cgi 

More From » debian

 Answers
6

If you do a



ls -l /var/www/bugzilla/index.cgi


and it shows



ls -l -rwxr-x--- 1 root apache2 2.6K Feb 20 01:16 /var/www/bugzilla/index.cgi 


you will see that the user of the file (root) is not the apache user. Change it to the user you use for Apache. Let's assume this is www-data then ...



sudo chown www-data /var/www/bugzilla/index.cgi


will change this file (and only this file) to user www-data. This will set all files in /var/www/bugzilla/ to user www-data:



sudo chown -R www-data /var/www/bugzilla/


Be careful with that one though: it might change more than you want.


[#31635] Wednesday, May 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
issfullus

Total Points: 264
Total Questions: 126
Total Answers: 107

Location: Comoros
Member since Mon, Dec 19, 2022
1 Year ago
;