Quantcast
Channel: EasyPHP and Modules : WordPress, Spip, Prestashop, Joomla, Drupal, phpBB, Phorum...
Viewing all articles
Browse latest Browse all 171

/modules needs alias to prevent drupal multi-site errors (no replies)

$
0
0
I have just been tracking down some mysterious "bugs" in Drupal manifesting themselves as module filter not performing correcting with tabs and searches and menu listings, and other jquery-related problems.

In researching this, I have found many other people having the same problems.

It turns out that EasyPHP sets the /modules alias in the httpd.conf file like:

Alias /modules "${path}/modules"

This, in turn, causes the mysterious problems on Drupal, and presumably, any other system that uses a modules directory indexed from the root.

The fix for this problem as documented at (http://stackoverflow.com/questions/21008848/easyphp-modules-folder-conflicts-with-drupal) is to add the line: Alias /modules "path-to-site-folder/modules" to the virtualhost directive for the virtually hosted sitename as shown below.

The virtual host module should perform this task automatically, but does not currently.

<VirtualHost *:8080>
DocumentRoot path-to-site-folder
ServerName site-name

Alias /modules "path-to-site-folder/modules"

<Directory "path-to-site-folder">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
Allow from 127.0.0.1
Deny from all
Require all granted
</Directory>

Viewing all articles
Browse latest Browse all 171

Trending Articles