PDA

View Full Version : [SOLVED] 13.10 Upgrade Apache2 - Not all sites working



Paresh
October 24th, 2013, 02:13 AM
Hi All

I have just upgraded from 13.04 to 13.10, and it all appeared to go smoothly, except for one small issue (so far...)

I have Trac and SVN servers set up on Apache and while the SVN server is running nicely, Trac does not want to play ball. Note that they both worked on 13.04.

When going to the Trac url, I get:

403: Forbidden You don't have permission to access /trac on this server.

Looking at /var/log/apache2/error.log and I get the following:

[Wed Oct 23 23:14:26.926910 2013] [authz_core:error] [pid 13105] [client 127.0.0.1:53939] AH01630: client denied by server configuration: /var/trac/cgi-bin/trac.wsgi

I have checked my Trac setup and permissions & groups seem ok (not really expecting any change here) and module wsgi is enabled.

Can anyone suggest what else I need to check?

Thanks in advance

Paresh

pqwoerituytrueiwoq
October 24th, 2013, 02:17 AM
you have to add a line to your config and the file names matter now

chad@M4A79XTD-EVO:~$ ls /etc/apache2/sites-available/
000-default.conf 002-php-scanner.conf default-ssl.conf
001-desktop.conf 003-testing.conf
chad@M4A79XTD-EVO:~$ ls /etc/apache2/sites-enabled/
001-desktop.conf 002-php-scanner.conf 003-testing.conf
chad@M4A79XTD-EVO:~$ cat /etc/apache2/sites-enabled/002-php-scanner.conf
ServerName chad-room
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/www-data/php-scanner
<Directory /home/www-data/php-scanner/>
Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
the bold line shows you what you need to add

Paresh
October 24th, 2013, 05:22 AM
Thanks for the suggestion, but it didn't work.

This is my config with your suggestion added.
I restarted apache and I got the same result (403 Forbidden)

This worked before the update (without the new bit in bold)


Alias /trac/chrome/common /var/trac/htdocs/common
Alias /trac/chrome/site/tracworkflowadmin /var/trac/htdocs/tracworkflowadmin
Alias /trac/chrome/site /var/trac/htdocs/site

<Directory /var/trac/htdocs>
Require all granted
Order allow,deny
Allow from all
</Directory>

WSGIScriptAlias /trac /var/trac/cgi-bin/trac.wsgi
<Directory /var/trac/cgi-bin>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>

<Location "/trac/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /etc/apache2/trac.passwd
Require valid-user
</Location>

<VirtualHost *:80>
ServerName trac
DocumentRoot /var/trac/htdocs/
WSGIScriptAlias /trac /var/trac/cgi-bin/trac.wsgi
</VirtualHost>

pqwoerituytrueiwoq
October 24th, 2013, 06:20 AM
that is what it took for me to get it working here
not that good with these config files
i figured out this solution a few months back during alpha 1 testing
maybe this will help you
http://httpd.apache.org/docs/current/upgrading.html

Paresh
November 1st, 2013, 06:23 PM
Well, I finally got this fixed.
I had to experiment a bit, but this is what I changed:


<Directory /var/trac/htdocs>
Options All
AllowOverride All
Require all granted
</Directory>

WSGIScriptAlias /trac /var/trac/cgi-bin/trac.wsgi
<Directory /var/trac/cgi-bin>
Options All
AllowOverride All
Require all granted
</Directory>

The rest of the file is unchanged.

Thanks for the help.