Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Issues with Apache 2.4 and WampServer running side-by-side on Windows (no replies)

$
0
0
THE ISSUE

I'm trying to run Apache 2.4 in a standalone installation with PHP and MySQL, all manually configured alongside my WAMPServer. This means I have two separate servers running side-by-side.

I was following a tutorial from 2015 on how to run two apache installs side-by-side on Windows. At a certain point it the instructions on screen didn't match up with what I was seeing on my system. I filled in the gaps a figured out some workarounds by Googling and researching some Stack Overflow posts.

Eventually, I did get both installs running side by-side by setting up some virtual hosts. I'm a newbie when it comes to Apache and virtual hosts, so I don't really understand the internals of virtual hosts on a deep level, but I think I get the general concept: it is like a symlink or alias for a URL or IP address that might be typed into your browser's address bar.

MY SYSTEM SETUP:
1 - Windows version: Windows 10 64-bit
2 - Version WampServer: 3.1.3 32-bit
3 - Apache 2.4.33 - PHP 5.6.35
4 - MySQL 5.7.21
5 - MariaDB 10.2.14
6 - PHP 5.6.35 for CLI (Command-Line Interface)
7 - WampServer Icon Color: ORANGE

MY CODE

Here is the setup that worked:

# Virtual Hosts
#

<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:90>
ServerName myalbums
ServerAlias myalbums
DocumentRoot "${INSTALL_DIR}/www/myalbums/public"
<Directory "${INSTALL_DIR}/www/myalbums/public">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

A BIT OF BACKGROUND

I made some changes in some conf files (normally very meticulous in my documentation) -- just following directions from another tutorial -- that worked. Then I commented out the "*:80" virtualhost, but that broke the whole thing, which I thought was weird. If localhost on port 80 is the "real" and "true" host, then why would anyone make a "virtual" alias for it?

Anyway, like I said, the above config worked. Again, there are other files I modified just blindly following instructions and I don't remember what every file was, nor what I changed in them, NOR which of the many tutorial I've had to reference (because none of them are a complete tutorial on what I'm trying to do) those instructions came from.

Following yet another tutorial, I installed Zend PHP a few weeks later with composer and that is what the "myalbums" in the VirtualHost "*:90" is referring to, but have since deleted that folder.

WAMP ERRORS

WampServer was giving me a whole bunch of errors when I click on the green "W". I resolved most of them by tinkering and troubleshooting within some Apache config files. There were also error messages under the "Your VirtualHosts" submenu, three or four if I recall correctly. Some of them had something said something like "DON'T PUT WAMP PATHS IN THE WINDOWS PATH ENVIRONMENT VARIABLE". I removed the two references to WAMP in the Windown PATH variable.

I got rid of most of them errors, partially by searching Stack Overflow and following advice from another post to add "Listen 80" at the top of the httpd-vhost.conf file, and commenting out the "*:90" virtual host. Now, that file is the only one that still has an error:

"There is an error.
In the httpd-vhost.config file:

The Port used (80) for the VirtualHost localhost is not a Listen port"

In addition to that error, the big "W" **is orange** and I am unable to login to MySQL server, though I know my password is correct. What is going on?

MY QUESTIONS:

_This is one question asking in multiple parts to get prompt the most complete answer from various perspectives._

1. How can I run Apache 2.4 on the same server with WAMP? Does it have something to with virtual hosts?

1. Why can't I login to MySQL (nor phpMyAdmin) though my password is correct? Is this a known issue with WAMP or Apache?

1. Why is the "W" orange?

1. Can anyone give a complete step-by-step explaining how to run Apache 2.4 and Wampserver side-by-side on Windows 10 without conflicts and errors from WAMPServer?

Any help is appreciated.

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>