WebFaction
Community site: login faq

Hello,

I tryed to install friendica on a static/CGI/PHP-5.4 application and got this message when ran the app:

Url rewrite in .htaccess is not working. Check your server configuration.

Then I tryed use the tips found in webfaction documentation but nothing worked out.

I don't know how to check if the server grants me the permissions I need to install the app. Friendica install doc says I need:

Apache with mod-rewrite enabled and "Options All" so you can use a local .htaccess file

I need some help to install the app.

Thanks in advance.

asked 30 May '13, 17:41

Leila D
112
accept rate: 0%

Our apache has mod_rewrite and supports .htaccess files, so this should not be a problem.

Can you provide the actual content of your .htaccess file to see if the issue is there?

One problem might be that your application is trying to create and edit the .htaccess file itself. You may need to grant apache write access.

(30 May '13, 20:25) ryans ♦♦

Sure

AddType application/x-java-archive .jar
AddType audio/ogg .oga

<FilesMatch "\.(out|log)$">
Deny from all
</FilesMatch>

<IfModule mod_rewrite.c>
  RewriteEngine on
  # Protect repository directory from browsing
  RewriteRule "(^|/)\.git" - [F]

  # Rewrite current-style URLs of the form 'index.php?q=x'.
  # Also place auth information into REMOTE_USER for sites running
  # in CGI mode.

  # If you have troubles or use VirtualDocumentRoot
  # uncomment this and set it to the path where your friendica installation is
  # i.e.:
  # Friendica url: http://some.example.com
  # RewriteBase /
  # Friendica url: http://some.example.com/friendica
  # RewriteBase /friendica/
  #
  RewriteBase /

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]

</IfModule>
(30 May '13, 20:35) Leila D

I just granted Apache write access and the problem persists.

(30 May '13, 21:10) Leila D

The problem is the "E=REMOTE_USER:%{HTTP:Authorization}" section in your rewrite rules. This doesn't work because the php-cgi environment runs on Apache with suExec, and suExec does not allow environment variables set like this.

More information, including a workaround, is discussed in this related community post. Hope that helps!

permanent link

answered 30 May '13, 21:32

ryans ♦♦
5.0k73159
accept rate: 43%

I'm still working on the problem. I'll try to gather more information with friendica community.

Anyway, I learned a lot about the server. Thanks for the help.

permanent link

answered 02 Jun '13, 07:21

Leila D
112
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×73
×13
×1

question asked: 30 May '13, 17:41

question was seen: 4,441 times

last updated: 02 Jun '13, 07:21

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM