httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <>
Subject Re: [users@httpd] Fwd: Server Problem
Date Mon, 23 Nov 2015 05:31:28 GMT
When you ask a question on a user discussion list, you need to be patient.
No one on this list is being paid to answer your questions - if you must
have your question answered in a particular amount of time, you should
probably find a consultant who you can pay to help you.

Disclaimer about WordPress: This is a list for Apache HTTPD server. While
some people here may know something about Wordpress, you may also need to
find a Wordpress-specific support forum or QA site to fully answer your
Disclaimer #2 about WordPress: Before you make any mod_rewrite changes, you
must disable fancy permalinks in the Wordpress admin or you may lock
yourself out of your site. Specifically, your post links should look like "
http://site.example/folder/index.php?p=##" or "
http://site.example/folder/?p=##". You can turn on fancy permalinks again
after you make the changes in the HTTPD configuration.

For mod_rewrite to work in the .htaccess file, HTTPD needs to know that it
is allowed to use the configuration from that file.
It does this using the AllowOverride directive.

If you look at the documentation for mod_rewrite (, you will see that
each directive says which override it needs: for mod_rewrite, you need
Override FileInfo.
In your config, you would replace the text "AllowOverride None" on line 232
of httpd.conf with "AllowOverride FileInfo".

I would also remove the lines "<IfModule mod_rewrite.c>" and "</IfModule>"
from your .htaccess. Those lines prevent the rewrite rules from being read
by the server if the rewrite module is not loaded. You know that you should
have mod_rewrite enabled and you probably want the server to give you an
error if the module is not loaded rather than have it fail some other way.

- Y

On Sun, Nov 22, 2015 at 11:43 PM, KARANDEEP SINGH DHALIWAL <> wrote:

> is nobody knows about it?
> On Sun, Nov 22, 2015 at 1:43 PM, KARANDEEP SINGH DHALIWAL <
>> wrote:
>> No, because I don't have knowledge about it. I am new here. Could you
>> please guide me? what I have to change.
>> On Sun, Nov 22, 2015 at 12:36 PM, Yehuda Katz <> wrote:
>>> Did you change AllowOverride, and add RewriteEngine On anywhere in the
>>> config? Otherwise mod_rewrite won't work.
>>> Sent from a device with a very small keyboard and hyperactive
>>> autocorrect.
>>> On Nov 22, 2015 1:23 PM, "KARANDEEP SINGH DHALIWAL" <
>>>> wrote:
>>>> I tried it and change permalinks but it still not working and having a
>>>> same problem.
>>>> In httpd.conf on line 154, LoadModule rewrite_module
>>>> modules/ is already enabled
>>>> On Sun, Nov 22, 2015 at 11:31 AM, Yehuda Katz <>
>>>> wrote:
>>>>> You have AllowOverride set to none and you don't have mod_rewrite
>>>>> turned on anywhere else in your config, so this isn't a rewrite problem.
>>>>> The reason "http://localhost/KayD/index.php/2015/11/20/hello-world/"
>>>>> works is because Wordpress is processing the PATH_INFO of the URL.
>>>>> You should try disabling permalinks in Wordpress (
>>>>> - set to ugly) and see
>>>>> if your problem is resolved.
>>>>> I suspect that if you enable mod_rewrite (add RewriteEngine On and
>>>>> AllowOverride FileInfo in your config), and remove the index.php from
>>>>> URL, then Wordpress will start working properly when you turn permalinks
>>>>> back on.
>>>>> I misread the error log you posted - it is actually saying that access
>>>>> is being denied to serve the .htaccess file (which is the correct
>>>>> behavior). This is in your httpd.conf around line 288 and it should remain
>>>>> there.
>>>>> - Y
>>>>> On Sun, Nov 22, 2015 at 10:34 AM, KARANDEEP SINGH DHALIWAL <
>>>>>> wrote:
>>>>>> httpd.conf =
>>>>>> .htaccess =
>>>>>> On Sun, Nov 22, 2015 at 9:27 AM, Yehuda Katz <>
>>>>>> wrote:
>>>>>>> The error log says the configuration that is denying access is
>>>>>>> that .htaccess file. Can you post the contents of that file (putting
it in
>>>>>>> a pastebin or gist and sending the link is a good way to avoid
losing the
>>>>>>> formatting in an email).
>>>>>>> - Y
>>>>>>> Sent from a device with a very small keyboard and hyperactive
>>>>>>> autocorrect.
>>>>>>> On Nov 21, 2015 10:37 PM, "KARANDEEP SINGH DHALIWAL" <
>>>>>>>> wrote:
>>>>>>>> ---------- Forwarded message ----------
>>>>>>>> Date: Sat, Nov 21, 2015 at 8:17 PM
>>>>>>>> Subject: Server Problem
>>>>>>>> To:
>>>>>>>> I just installed [first time] WordPress 4.3.1, but I was
facing the problem with it so I downgraded and installed 4.2.5 and facing same problem.
>>>>>>>> Problem: index.php is not loading, I clicked on link and
also write in url but still not working
>>>>>>>> I uninstalled and then later I reinstalled and tried again
but facing same problem.
>>>>>>>> After some google, I also tried other options as suggested
on other websites.
>>>>>>>> Remember, index.php on other directories are working fine.
>>>>>>>> Edit .htaccess
>>>>>>>> Change Theme
>>>>>>>> Restarted Apache and Mysql
>>>>>>>> but didn't work. Themes are also not showing Live Preview
>>>>>>>> But Dashboard is running
>>>>>>>> Please Help
>>>>>>>> My pc, I am not working on Xampp or Wampp. I have running
Mysql and workbench Apache as binary and then manually installed php
>>>>>>>> Thanks
>>>>>>>> I also checked error.log it showing that error
>>>>>>>> [Fri Nov 20 18:08:16.599079 2015] [authz_core:error] [pid
6188:tid 868] [client ::1:58552]
>>>>>>>> AH01630: client denied by server configuration: B:/server/Apache/Apache24/htdocs/KayD/.htaccess,
>>>>>>>> referer: http://localhost/kayd/
>>>>>>>> Document Root B:\server\Apache\Apache24\htdocs\KayD
>>>>>>>> I checked again http://localhost/KayD/index.php still has
a problem but http://localhost/KayD/index.php/2015/11/20/hello-world/ is working
>>>>>>>> What going on here?

View raw message