You are not logged in.

#1 2014-08-08 18:11:54

magiusche
Member
Registered: 2008-12-05
Posts: 37

[SOLVED] SVNServe + Apache (DAV) error 503 cant commit ONLY php file!

Hi guys and .. first of all, sorry for my poor english.

Here my problem, and i will hope someone can help me go out from this hell!!!

Until Yesterday i've used Apache + DAV module + svnserve to host my SVN repository.

I've used to commit and update every day all my works, and... all goes fine!

Today (without making any update) a new error appears while attempting to commit file: "[08/Aug/2014:19:48:51 +0200] "PUT /svn/Sources/!svn/txr/1038-ws/Nuovo%20documento%20di%20testo.php HTTP/1.1" 503 1014" (apache access_log)

I figure out that this error appears only when i try to commit a file with ".php" extension (if i rename this file into .txt all is ok!).

So, someone can help me to solve this?

I want add some additional info:
- error_log

[Fri Aug 08 20:04:54.161477 2014] [proxy_fcgi:error] [pid 970] [client 192.168.1.147:32182] AH01071: Got error 'Primary script unknown\n'
[Fri Aug 08 20:04:54.198613 2014] [proxy_fcgi:error] [pid 970] [client 192.168.1.147:32182] AH01071: Got error 'Primary script unknown\nsdf sd\x7f'
[Fri Aug 08 20:04:54.198681 2014] [proxy_fcgi:error] [pid 970] (104)Connection reset by peer: [client 192.168.1.147:32182] AH01075: Error dispatching request to : (sending empty stdin)

- http-conf file

<Directory "/archive/SVNRepository/repositories">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>

<Location /svn>
   DAV svn
   SVNParentPath /archive/SVNRepository/repositories
   AuthzSVNAccessFile /archive/SVNRepository/.svn-policy-file
   AuthName "Magius(CHE) - SVN Repositories"
   AuthType Basic
   AuthUserFile /archive/SVNRepository/.svn-auth-file
   Satisfy Any
   Require valid-user
</Location>

CustomLog /var/log/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION

Thx in advance for all your help.

Desperated Programmer! :-)

Last edited by magiusche (2014-08-11 14:07:22)


Hope i help you!
and
VICE.VERSA

Offline

#2 2014-08-11 13:37:55

magiusche
Member
Registered: 2008-12-05
Posts: 37

Re: [SOLVED] SVNServe + Apache (DAV) error 503 cant commit ONLY php file!

Guys... noone have a vague idea to resolve this iussue?

I beg u!!! Someone help me!!

:-)


Hope i help you!
and
VICE.VERSA

Offline

#3 2014-08-11 14:07:43

magiusche
Member
Registered: 2008-12-05
Posts: 37

Re: [SOLVED] SVNServe + Apache (DAV) error 503 cant commit ONLY php file!

After 1 week of research i've found the source of the problem and fixed. I write down the soluzion if someone is interested.

1) I've installed fcgi module for php so, in order to work i've added this line into httpd.conf

ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/srv/http/$1

this setting transfer all http request with ".php" to the fcgi proxy for PHP.
2) I've installed SVNServe with dav module and the url is "http://myserver/svn/" so every commit call to the sever that includes ".php" will be parsed by fcgi and returns strange errors (see step 1)
3) to solve the iussue just put IGNORE proxy rule into your httpd.conf like that

ProxyPass /svn !

so every http request that include svn in the url will be NOT parsed by fcgi and SVNServe can operate correctly.


Hope i help you!
and
VICE.VERSA

Offline

Board footer

Powered by FluxBB