Apache httpd.config Issue
Posted by: jostclan (---.dhcp.stls.mo.charter.com)
Date: May 13, 2019 01:34AM

I just upgraded my WAMP server from an older Apache version 2.2.21 to a newer version of WAMP that includes Apache 2.4.37 and I am experiencing issues with the mod_rewrite.so module. I made sure this module is turned on in both versions. However in the new version my site rewrites the URLs correctly but my PHP $_GET arrays are empty when I pass more than one parameter. One works, two or more do not.

I think this has something to do with the httpd.conf file in the <Directory> section. My eyes are glazing over trying to understand the new settings that will allow the parameters to be read but I am failing. Can you help me?

Old Apache settings:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

New Apache settings:
<Directory />
AllowOverride FileInfo
Require all denied
</Directory>

Options: ReplyQuote
Re: Apache httpd.config Issue
Posted by: RiggsFolly (Moderator)
Date: May 13, 2019 09:46AM

This section of the httpd.conf file is the way apache sets up the base access privilages to the disk/drive that apache is installed onto.

Now of course the base access to the apache drive should be NO ACCESS AT ALL.

So your old httpd.conf file had been incorrectly messed with.

BEWARE, THERE IS A LOT A BADLY INFORMED ADVICE OUT THERE ON THE INTERNET

The process of opening up folders that Apache and therefore its clients (the outside world) can see and either read or write to should be done from within the Virtual Hosts setup for each of yor projects

See THE NEED FOR VIRTUAL HOSTS

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.