and i set it in the host file like in guides but for some reason it just takes me to the home page when i even have it take me to like C:/wamp/apps/phpmyadmin2.10.1 it takes me to my default page am i missing something
found my problem but ran into another 1 and have been stumped for almost an hr. now it just takes me to my home for my non sub domained site??? any ideas please help
ok one last problem my php script is set to connect to mysql but i put in my mysql.hingsmaf.com which forwards to my phpmyadmin folder my uname and pwd and my db and it says mysql cannot connect ) and the error i get is error 10061
any ideas how to do this im going to try an avoid local host because im not always going to be running it off of here because i have an app for a bussines that needs to connect to a database
You need to add <Directory "C:/wamp/apps/phpmyadmin2.10.1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory>
<VirtualHost *:80> ServerName mysql.hingsmaf.com ServerAlias mysql DocumentRoot C:/wamp/apps/phpmyadmin2.10.1 <Directory "C:/wamp/apps/phpmyadmin2.10.1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory>
</VirtualHost>
<VirtualHost *:80> ServerName localhost DocumentRoot C:/wamp/www ErrorLog C:/wamp/www/logs/error.log CustomLog C:/wamp/www/logs/access.log common </VirtualHost> go no luck with any but, i could be putting it in wrong place
You're doing that right. Make sure the mysql server is running. Try another method:
Create a file shortcut to phpmyadmin2.10.1 index.php file and put that shortcut in any of your working virtual host directory. I prefer to put it in the parent website www.hingsmaf.com. You can name the short cut as phpmyadmin. You may comment with # to the virtual host mysql.hingsmaf.com temporarily.
Then open the browser, and type in www. websitename.com/phpmyadmin
and i dont think this is wat im trying to do.. im trying to change mysql from being localhost to being mysql.hingsmaf.com i have an online db the says moysql.eclipsefit.com on my phpmyadmin page and thats wat i need to do with this one
well the easier way is to put the phpmyadmin folder into the www folder.
then
<VirtualHost *:80> ServerName mysql.hingsmaf.com ServerAlias mysql DocumentRoot C:/wamp/www/phpmyadmin2.10.1 <Directory "C:/wamp/www/phpmyadmin2.10.1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory>
will work
just make sure you put a .htacces file into your phpmyadmin folder so ween u go to the site it asks for password first
<VirtualHost *:80> ServerName mysql.hingsmaf.com ServerAlias mysql DocumentRoot C:/wamp/www/phpmyadmin2.10.1 <Directory "C:/wamp/www/phpmyadmin2.10.1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory>
found the probelem u didnt ende that code u gave me with </virtualhost> but it still doesnt work if u go into phpmyadmin and on the homepage ull see localhost i need to change that to say mysql.hingsmaf.com i need to change my mysqls host
pretty much wat it comes down to is making my mysql server a remote hose
Edited 1 time(s). Last edit at 02/29/2008 10:06PM by hingsmaf003.
yes my statfink site works fine and so does my default but its not the virtual hosts thats the problem its i need to change my mysql connection so its not localhost like my user is root@localhost when it shud be root@mysql.hingsmaf.com