# 403 Forbidden error on WAMP

**URL:** <https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [September 17, 2022, 8:45am UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425 "2022-09-17T08:45:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikehersee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikehersee/32/8291_2.png) [@mikehersee](https://forum.mautic.org/u/mikehersee)\
**Post date:** [September 17, 2022, 8:45am UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/1 "2022-09-17T08:45:32Z")

</div>

**Your software** mautic 4.4.2  
_My PHP version is_ :7.4.26 - but have also tried 8.0.13 and 8.1.0  
\*My MySQL version is: MySQL 5.7.36

**Updating/Installing Errors**  
\*I am: Installing  
installing via : windows chrome

_These errors are showing in the installer_ : It doesn’t get that far: 403 Forbidden error

_These errors are showing in the Mautic log_ : No log is produced that I can find

**Your problem**  
_My problem is_ 🙂  
I have a wamp installation on my PC for developing and testing stuff. I can load wordpress just fine and works like a charm. However, if I create a directory below ‘www’ for a new domain and put all the unzipped files from the latest mautic download into it, I get 403 Forbidden error. if I remove those files and put newly unzipped wordpress files in the same directory, Wordpress install opens normally. If I remove all the wordpress files and put back the mautic files and directories, including the .htaccess that comes with mautic, I get 403 forbidden again.

I’ve previously successfully installed mautic on a live site, hosted by Rochen, in a subdirectory, without doing anything that I can recollect to any configuration files. I’ve checked conventional windows file and folder authorities on the main directory and index.php from mautic and index.php from wordpress and they appear to be exactly the same as each other when comparing different categories of user. I have searched all the forum entries for WAMP, but none seem to have had quite the same problem which is that it won’t even seem to run the index.php file from a fresh file copy. I’m an experienced programmer and have run several Joomla sites, but have relatively little experience at messing with web-related configuration files so I don’t know where to look. There are no log files produced within the directory that mautic is in.

The access log has an entry when I try to go to index.php: ::1 - - [17/Sep/2022:09:03:47 +0100] “GET /pivotalshift.co.uk/ HTTP/1.1” 403 284

The apache\_error log has an entry: [Sat Sep 17 09:03:47.037964 2022] [authz\_core:error] [pid 9492:tid 1204] [client ::1:50223] AH01630: client denied by server configuration: C:/wamp64/www/pivotalshift.co.uk/index.php

So I’m really puzzled as to why index.php from wordpress works fine, but index.php from mautic doesn’t seem to be allowed, when the authorities on the two files appear to be identical. Can anyone shed any light on this?

Thanks  
Mike Hersee

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [September 17, 2022, 5:22pm UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/2 "2022-09-17T17:22:08Z")

</div>

Why not use ddev to develop mautic locally? Its all configured for you, install docker move to mautic directory and run ddev start

Its not exactly answer to your question, but it seems to be straight forward solution.

---

<div class="post-metadata">

**Author:** ![mikehersee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikehersee/32/8291_2.png) [@mikehersee](https://forum.mautic.org/u/mikehersee)\
**Post date:** [September 18, 2022, 10:30am UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/3 "2022-09-18T10:30:35Z")

</div>

Hi, I wasn’t even aware of ddev, but I am familiar with WAMP and it’s worked perfectly fine and predictably in the past for both Wordpress and Joomla. My understanding is that it’s a good representation of a hosted server environment and therefore it should work properly. I’ll take a look at ddev, but I can’t help feeling that the answer is probably something fairly simple. I also feel that I _should_ understand why it isn’t working in WAMP in case I unwittingly encounter the same issue again in a live environment.

Thanks for the suggestion though, I’ll take a look at ddev.

---

<div class="post-metadata">

**Author:** ![mikehersee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikehersee/32/8291_2.png) [@mikehersee](https://forum.mautic.org/u/mikehersee)\
**Post date:** [September 18, 2022, 11:06am UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/4 "2022-09-18T11:06:39Z")

</div>

Ok, I took a look at ddev, and I saw that you need to load docker, so I took a look at that. I see there’s a one-hour docker tutorial and got a bit of a grasp of it from watching a 15-minute introduction. This is feeling like layers of complicationa and new things to learn, so it’s not feeling like the kind of solution I’m after, when there surely must be some simple reason why mautic install is forbidden on WAMP when wordpress works fine. But thanks for the suggestion.

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [September 18, 2022, 12:21pm UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/5 "2022-09-18T12:21:22Z")

</div>

You do not actually need to know docker, I think when your focus is running mautic.

- Install docker: [Install Docker Desktop on Windows | Docker Documentation](https://docs.docker.com/desktop/install/windows-install/)
- Install ddev [DDEV Installation - DDEV Docs](https://ddev.readthedocs.io/en/stable/users/install/ddev-installation/)
- Clone mautic repo: [GitHub - mautic/mautic: Mautic: Open Source Marketing Automation Software.](https://github.com/mautic/mautic)
- Move to mautic folder
- Run ddev start to start instance
- Run ddev stop to stop instance

Without looking into server config its really hard to provide solution to your original question.

---

<div class="post-metadata">

**Author:** ![fzngagan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fzngagan/32/6133_2.png) [@fzngagan](https://forum.mautic.org/u/fzngagan)\
**Post date:** [October 2, 2022, 6:35am UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/6 "2022-10-02T06:35:40Z")

</div>

I was hit by the same issue and spent hours trying to get things working. Simple fix( **Only advisable for local dev install** ): Comment out the `<IfModule authz_core_module>` and `<IfModule !authz_core_module>` sections in the `.htaccess` file.

---

<div class="post-metadata">

**Author:** ![mikehersee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikehersee/32/8291_2.png) [@mikehersee](https://forum.mautic.org/u/mikehersee)\
**Post date:** [October 2, 2022, 6:55am UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/7 "2022-10-02T06:55:11Z")

</div>

Ah, thanks! still a mystery though 🤔

---

<div class="post-metadata">

**Author:** ![fzngagan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fzngagan/32/6133_2.png) [@fzngagan](https://forum.mautic.org/u/fzngagan)\
**Post date:** [October 2, 2022, 7:01am UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/8 "2022-10-02T07:01:23Z")

</div>

Just came accross this one which seems to be the same solution. Wish I checked it our earlier 😉

> [@403 Forbidden after fresh install with Softaculous](https://forum.mautic.org/t/403-forbidden-after-fresh-install-with-softaculous/23891/14):
>
> I have just removed comment the following lines in .htaccess and everything is working # Apache 2.4+ \<IfModule authz\_core\_module\> # Deny access via HTTP requests to all PHP files. \<FilesMatch "\.php$"\> # Comment the following line to avoid 403 error #Require all denied \</FilesMatch\> # Deny access via HTTP requests to composer files. \<FilesMatch "^(composer\.json|composer\.lock)$"\> Require all denied \</FilesMatch\> # Except those allowed below…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [October 3, 2022, 7:01pm UTC](https://forum.mautic.org/t/403-forbidden-error-on-wamp/25425/9 "2022-10-03T19:01:49Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
