Conflict between SVN and Web Application – routing/httaccess or apache config

3 years ago

dhosek
Member | 12
+
0
-

I got SVN installed ( and I use this way to access my repositories it via http protocol: http://localhost/…roject_name/ (physical location: /var/www/repos) – It works well.

I got also apache installed for my web application (physical location: /var/www/web_app), which can be accessed via http://localhost/ and It renders default action (Presenter: Homepage,
Action: default – It's something like index.php). – It works well.

BUT, when I want to view for example: Contact Page ( Presenter: Contact, Action: default – http://localhost/contact) – It says “NOT FOUND The requested URL /contact was not found on this server.”. The error doesn't look like It's a framework error by Tracy (bad code for routing in framework or something like that), it looks like there is a conflict between in .htaccess or apache config or Am I wrong?

3 years ago

voda
Member | 561
+
0
-

Do you have mod_rewrite enabled?

3 years ago

dhosek
Member | 12
+
0
-

Where should I enable it? What file?
Ty.

3 years ago

dhosek
Member | 12
+
0
-

Cuz, There are three files named htaccess.

3 years ago

voda
Member | 561
+
0
-

You need to enable mod_rewrite in your Apache server. How did you install Apache?

3 years ago

dhosek
Member | 12
+
0
-

I'm running on Debian, I installed it via apt-get apache2 etc. Everything worked properly until I needed to install SVN and set it able to be viewed via http protocol.

3 years ago

voda
Member | 561
+
0
-

Try running this command under root (or sudo): a2enmod rewrite.

3 years ago

dhosek
Member | 12
+
0
-

I'm at work, I'm connected to the server via SSH. Now I have to go somewhere. I'll be back in a few hours. I'll try your solution later. Either way, thank you. :)