Posted by:
stevenmartin99
(---.b-ras2.blp.dublin.eircom.net)
u can change phpmyadmin in c:/wamp/alias/phpmyadmin.conf
change the Allow , Deny section like so
---------------------------------------------
FROM
<Directory "c:/wamp/apps/phpmyadmin3.2.0.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
TO
<Directory "c:/wamp/apps/phpmyadmin3.2.0.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
---------------------------------------------------
NOTE:- Now people can access it from web so secure with .htacess or password------------------------------------------------------------------------------------
To enable vhost setup open C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf
Line 466
FROM
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
TO
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
-----------------------------------------------------------------------------------------
To edit the setup open C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf
Basic Example is
----------------------------------------
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/folder1"
ServerName www.folder1.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/folder1"
ServerName folder1.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/folder2"
ServerName folder2.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/folder2/subfolder"
ServerName subfolder.folder2.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/folder2"
ServerName www.folder2.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www"
ServerName localhost
</VirtualHost>
----------------------------------------
You would need to delete everything and replace it with the code above for it to work. also note www. is a sub domain of folder1.com so it needs to be there too otherwise www.folder1.com wont work - its just the same as sub2.folder2.com
Steven Martin
stevenmartin99@gmail.comstevenmartin99@hotmail.comPampServer.com - [
pampserver.com]
Edited 7 time(s). Last edit at 01/30/2010 02:20PM by stevenmartin99.