Drupal 8 Xampp Local Development (Error)


Xampp Drupal 8 Development Notes

When you are working with Xampp Web Server and Drupal 8, chances are that you might end up with an error that says: AH01630: Client denied by server configuration

This error is thrown when the httpd.conf file is not well configured. Basically, it's telling you that, "hey, I don't like what you just did to my configuration".

When you are trying to host two web applications, one that can be accessed using a different port (80) and one that can be accessed using another (81). Make sure that the Virtual Host file is linked to the httpd.config (Xampp Server). Make sure that Xampp knows of any Virtual Hosts defined in Vhost file or else when you are trying to access the website on that different port, it will give you a Page Not Found Error.

When using Drupal 8, be aware that File System of different project bare-bone matters. It could be that the project you are using has a different file system. Make sure to make links or to include (Include "pathToYourProjectDirectoryConfigurationFile". The example is shown below:

Example here:

Include "C:/xampp/apps/drupal/conf/httpd-prefix.conf"
Include "C:/xampp/apps/drupalProject/config/httpd-prefix.conf"

In my situation, I hosted two Drupal 8 applications in the same folder but needed those applications to be accessed using different ports. I needed Xampp to have a separate Virtual Host File that defined the settings for each web app. The problem came about when accessing a second app, the URL wasn't found.

Solution:

What I did was to read the htaccess.conf file and commented out the section that said (RewrieBase /drupal)
 and uncomment the section that said (WriteBase /)

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
#RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /



Technology
published
v.0.01





For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email AddressContact: [email protected]