You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Volkan Gezer <vl...@gmail.com> on 2014/10/03 15:36:15 UTC

[users@httpd] .htaccess 500 error with invalid command '
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@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Yehuda Katz <ye...@ymkatz.net>.
That means that the modules that supply those directives are not loaded.

On Sat, Oct 4, 2014 at 10:18 PM, Volkan Gezer <vl...@gmail.com> wrote:

> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
> perhaps misspelled or defined by a module not included in the server
> configuration
>

SetEnvIfNoCase is supplied by mod_setenvif.


> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
> perhaps misspelled or defined by a module not included in the server
> configuration
>

DirectoryIndex is provided by mod_dir.


Since you said mod_setenvif is loaded, it looks like there is actually some
problem with your htaccess.

I suggest checking the encoding of the file. "Unicode with BOM" is my first
suspicion, but if it is anything odd, that could explain why HTTPD does not
like it.

- Y


The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>
>
> Best regards,
> Volkan GEZER
> volkangezer@gmail.com
>
>
> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
> > Try without any <IfModule> directives.  As long as you always plan to
> > start apache with those modules loaded there shouldn't be an issue.
> >
> > On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
> >> 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@gmail.com
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Edgar Pettijohn <ed...@pettijohn.no-ip.biz>.
The only other thing I can think to try is to make the changes within a
<Directory> block in the main config and not use the .htaccess file and
see if you get the same errors.

On 10/05/2014 07:32 AM, Volkan Gezer wrote:
> 2014-10-05 5:07 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
>> Just looked at your httpd.conf and it shows you have these modules
>> loaded.  This is odd.
>> On 10/04/2014 10:03 PM, Edgar Pettijohn wrote:
>>> SetEnvIfNoCase needs mod_setenvif
>>> DirectoryIndex needs mod_dir
>>>
> Yes, I have these modules loaded. Just to make sure, I made a typo and
> restarted httpd to see if this might be the issue, but it complained
> about non-existance of the module. So, it means all loaded modules are
> already in my pc.
>
>
>> Since you said mod_setenvif is loaded, it looks like there is actually some problem with your htaccess.
>> I suggest checking the encoding of the file. "Unicode with BOM" is my first suspicion, but if it is anything odd, that could >explain why HTTPD does not like it.
> I removed the file, got it from the original source [1] and saved to
> the original place, but no progress...
>
> I was wondering if the order of the directives matters or not. Also
> the permission of .htaccess is 644, I am not sure if this is also a
> problem, but 777 was the same, though.
>
> [1] https://github.com/owncloud/core/blob/master/.htaccess
>
>
>>> On 10/04/2014 09:18 PM, Volkan Gezer wrote:
>>>> Thank you for following. I removed all IfModule directives now I am receiving:
>>>>
>>>> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
>>>> perhaps misspelled or defined by a module not included in the server
>>>> configuration
>>>>
>>>> error.
>>>>
>>>> Removing this line also gives:
>>>>
>>>> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
>>>> perhaps misspelled or defined by a module not included in the server
>>>> configuration
>>>>
>>>> The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>>>>
>>>>
>>>> Best regards,
>>>> Volkan GEZER
>>>> volkangezer@gmail.com
>>>>
>>>>
>>>> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
>>>>> Try without any <IfModule> directives.  As long as you always plan to
>>>>> start apache with those modules loaded there shouldn't be an issue.
>>>>>
>>>>> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
>>>>>> 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@gmail.com
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Volkan Gezer <vl...@gmail.com>.
2014-10-05 5:07 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
> Just looked at your httpd.conf and it shows you have these modules
> loaded.  This is odd.
> On 10/04/2014 10:03 PM, Edgar Pettijohn wrote:
>> SetEnvIfNoCase needs mod_setenvif
>> DirectoryIndex needs mod_dir
>>

Yes, I have these modules loaded. Just to make sure, I made a typo and
restarted httpd to see if this might be the issue, but it complained
about non-existance of the module. So, it means all loaded modules are
already in my pc.


>Since you said mod_setenvif is loaded, it looks like there is actually some problem with your htaccess.

>I suggest checking the encoding of the file. "Unicode with BOM" is my first suspicion, but if it is anything odd, that could >explain why HTTPD does not like it.

I removed the file, got it from the original source [1] and saved to
the original place, but no progress...

I was wondering if the order of the directives matters or not. Also
the permission of .htaccess is 644, I am not sure if this is also a
problem, but 777 was the same, though.

[1] https://github.com/owncloud/core/blob/master/.htaccess


>> On 10/04/2014 09:18 PM, Volkan Gezer wrote:
>>> Thank you for following. I removed all IfModule directives now I am receiving:
>>>
>>> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
>>> perhaps misspelled or defined by a module not included in the server
>>> configuration
>>>
>>> error.
>>>
>>> Removing this line also gives:
>>>
>>> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
>>> perhaps misspelled or defined by a module not included in the server
>>> configuration
>>>
>>> The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>>>
>>>
>>> Best regards,
>>> Volkan GEZER
>>> volkangezer@gmail.com
>>>
>>>
>>> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
>>>> Try without any <IfModule> directives.  As long as you always plan to
>>>> start apache with those modules loaded there shouldn't be an issue.
>>>>
>>>> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
>>>>> 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@gmail.com
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Edgar Pettijohn <ed...@pettijohn.no-ip.biz>.
Just looked at your httpd.conf and it shows you have these modules
loaded.  This is odd.
On 10/04/2014 10:03 PM, Edgar Pettijohn wrote:
> SetEnvIfNoCase needs mod_setenvif
> DirectoryIndex needs mod_dir
>
> On 10/04/2014 09:18 PM, Volkan Gezer wrote:
>> Thank you for following. I removed all IfModule directives now I am receiving:
>>
>> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
>> perhaps misspelled or defined by a module not included in the server
>> configuration
>>
>> error.
>>
>> Removing this line also gives:
>>
>> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
>> perhaps misspelled or defined by a module not included in the server
>> configuration
>>
>> The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>>
>>
>> Best regards,
>> Volkan GEZER
>> volkangezer@gmail.com
>>
>>
>> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
>>> Try without any <IfModule> directives.  As long as you always plan to
>>> start apache with those modules loaded there shouldn't be an issue.
>>>
>>> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
>>>> 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@gmail.com
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Edgar Pettijohn <ed...@pettijohn.no-ip.biz>.
SetEnvIfNoCase needs mod_setenvif
DirectoryIndex needs mod_dir

On 10/04/2014 09:18 PM, Volkan Gezer wrote:
> Thank you for following. I removed all IfModule directives now I am receiving:
>
> /srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
> perhaps misspelled or defined by a module not included in the server
> configuration
>
> error.
>
> Removing this line also gives:
>
> /srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
> perhaps misspelled or defined by a module not included in the server
> configuration
>
> The current .htaccess file is: http://paste.kde.org/pkvjq3ct3
>
>
> Best regards,
> Volkan GEZER
> volkangezer@gmail.com
>
>
> 2014-10-04 20:38 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
>> Try without any <IfModule> directives.  As long as you always plan to
>> start apache with those modules loaded there shouldn't be an issue.
>>
>> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
>>> 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@gmail.com
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Volkan Gezer <vl...@gmail.com>.
Thank you for following. I removed all IfModule directives now I am receiving:

/srv/http/owncloud/.htaccess: Invalid command 'SetEnvIfNoCase',
perhaps misspelled or defined by a module not included in the server
configuration

error.

Removing this line also gives:

/srv/http/owncloud/.htaccess: Invalid command 'DirectoryIndex',
perhaps misspelled or defined by a module not included in the server
configuration

The current .htaccess file is: http://paste.kde.org/pkvjq3ct3


Best regards,
Volkan GEZER
volkangezer@gmail.com


2014-10-04 20:38 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
> Try without any <IfModule> directives.  As long as you always plan to
> start apache with those modules loaded there shouldn't be an issue.
>
> On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
>> 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@gmail.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Edgar Pettijohn <ed...@pettijohn.no-ip.biz>.
Try without any <IfModule> directives.  As long as you always plan to
start apache with those modules loaded there shouldn't be an issue.

On 10/03/2014 11:44 AM, Edgar Pettijohn wrote:
> 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@gmail.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Volkan Gezer <vl...@gmail.com>.
Thank you for the answer. I removed all .c extensions from the
modules. Also, replaced the names with their directives, but no
success.

The modules are installed into /etc/httpd/modules which is also
correct in configuration. Can we somehow see which line causes the
problem? I have removed all <ifModule> tags one by one, but the same
error message. It seems somehow apache does not understand what
<ifmodule> is. I can call other PHP files, though.

Best regards,
Volkan GEZER
volkangezer@gmail.com


2014-10-03 18:44 GMT+02:00 Edgar Pettijohn <ed...@pettijohn.no-ip.biz>:
> 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@gmail.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess 500 error with invalid command ' Posted by Edgar Pettijohn <ed...@pettijohn.no-ip.biz>.
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@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org