Try leaving off the ".c" so mod_headers.c becomes mod_headers and so on. Double check that the path is correct also. On 10/03/2014 08:36 AM, Volkan Gezer wrote: > I am using Arch linux and trying to set up development environment of > ownCloud and I am receiving a 500 error: > > [Wed Oct 01 01:17:50.901758 2014] [core:alert] [pid 32084] [client > ::1:44681] /srv/http/owncloud/.htaccess: Invalid command '<IfModule', > perhaps misspelled or defined by a module not included in the server > configuration > > If I checked the .htaccess file, here are the first 10 lines: > > <IfModule mod_fcgid.c> > <IfModule mod_setenvif.c> > <IfModule mod_headers.c> > SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1 > RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION > </IfModule> > </IfModule> > </IfModule> > <IfModule mod_php5.c> > php_value upload_max_filesize 513M > > > I have the extra those modules enabled in my httpd.conf file: > > LoadModule setenvif_module modules/mod_setenvif.so > LoadModule headers_module modules/mod_headers.so > LoadModule fcgid_module modules/mod_fcgid.so > LoadModule php5_module modules/libphp5.so > > Any guide to solve the 500 error would be appreciated. The same > .htaccess file was working without any problems in my Ubuntu setup. > > The full files: > > httpd.conf: http://paste.kde.org/p0gqinrsr > owncloud .htaccess: http://paste.kde.org/p84wbouwy > php module.conf: http://paste.kde.org/pkalrmsvz > > Apache last line: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.6.0 mod_fcgid/2.3.9 > > > Best regards, > Volkan GEZER > volkangezer@xxxxxxxxx > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx