Morning,
I am sorry the perfectly good solution appears to you to be excrement.
But I feel I should remind you that, by installing WAMPServer or any version of a web server and a database server, you have tacitly agreed to become the System Administrator, The web server Administrator, The database Administrator and The website Administrator.
This means that at some stage you are going to have to put your fears behind you and when confronted by new information that you dont understand, do some research to reverse your lack of knowledge.
The Hosts fileNot such a scarey file when you
find out what it does and why!Quote
Also, could someone please also answer the edit I added to the first post here? I'm trying to find a way to make my server accessable via other computers on the LAN, and I did try googling this, however the most informative tutorial I could find was USELESS, because when I went to the points in my CONF file the kid went to, I realized commands like "deny from all" had somehow been removed?! WHY WOULD SOMEONE COMPLICATE THE CONF FILES SO BADLY?
Anyway, I need a solution for that too, sorry.
Most WAMPServer related tutorials on the web are a little old and also in most cases, crap, to use your terminology, and were created when Apache 2.2 was the latest version of Apache, I assume that the one you found was using Apache 2.2 whereas WAMPServer 2.5 comes with Apache 2.4.
In Apache 2.4 they (thats the Apache team, not the WAMPServer team) changed the instructions that control access to Apache from the
Allow to the
Require syntax
From
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
To
Require local
Some documentation on the changes between Apache 2.2 and 2.4!
Take a look at my signature, there are links to all the manuals you may need to become familiar with in order to wrangle Apache, MySQL and PHP.
Tell Apache to allow access from any ip on your local network and create an Alias so you can access data outside the current domain folder structureEdit the httpd.conf file
Locate this line
# onlineoffline tag - don't remove and make the following changes
The first will allow your site to be accessed from the local network the second will create an Alias within the localhost domain called
media which can be used from within your PHP scripts.
# onlineoffline tag - don't remove
Require local
Require ip 192.168.1
</Directory>
Alias /media "d:/media"
<Directory "d:/media">
Require local
Require ip 192.168.1
</Directory>
You should now be able to access resources in the D:/MEDIA folder from PHP and HTML as for example
<img src="/media/a_picture.jpg"/>
---------------------------------------------------------------------------------------------
(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 --
phpMyAdminGet 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-
Edited 2 time(s). Last edit at 03/31/2015 11:18AM by RiggsFolly.