oberwil Posted December 2, 2006 Share Posted December 2, 2006 Here is my setupIt's Windows XP Pro, with Apache 2.2.3 and PHP 5.1.6. MySQL 5.0.24. Apache DocRoot is C:\Apache\Apache2.2\htdocs. I created a Virtual-Host file with my sites. The sites that I'm tyring to use the database with is set to <VirtualHost>ServerName superdiscountDocumentRoot C:/Apache/Apache2.2/htdocs/superdiscount/htdocs</VirtualHost>So http://superdiscount shows index.html page OK.I also do have a Site with just localhost too. I have phpMyAdmin installed, and it runs from /localhost/phpmyadminthe <? phpinfo() function works when loaded.So I guessing that either I don't have Dreamweaver Testing Server properly configured or that it has a problem with the pathing or because of the VirtualHost pathing is not correct.For Testing Server I set my URL Prefix to http://superdiscount since that is what I have in the VirtualHost. But with that I just got the unidentified error message. Then I changed it to /superdiscount/htdocs and got the Error 404 No Testing Server.The Testing Serving Folder is set the C:\Apache\Apache2.2\htdocs\superdiscount\htdocs\ since that is the pathing to the root of this site.I have Remote Info set to FTP with Host Directory as /htdocs. But that has to deal with uploading my files, so I don't really think that has any bearing on this.So I'm getting this 404 error with the following: The testing server specified for this site does not map to the http://superdiscount/htdocs/_mmServerScripts/MMHTTPDB.php URL. Verify that the URL Pefix maps to the root of the site.BTW: there is a _mmServerScript folder under /superdiscount/htdocs.One more thing I forgot to add. Some Sites say to copy libmysql.dll from the c:\php directory to the windows directory. I notice that both mysql\bin and \php both have a libmysql.dll file, and theirfile size differs. So do I really use the php file or should I use the mysql file ??Also in httpd.conf I have PHPIniDir c:\phpand I copied mysql my.ini to c:\windows Quote Link to comment https://forums.phpfreaks.com/topic/29215-configure-dreamweaver-w-virtualhost-php-mysql-solved-read-on/ Share on other sites More sharing options...
oberwil Posted December 5, 2006 Author Share Posted December 5, 2006 Problem Solved. Fixed. Hopefully this will help others who having been going crazy trying to figurethis one out. So here's what's going on. Basically PHP5.2 is set up more secure with register_globals=on, and register_arrays=off. So if you are developing locallyand then ftp'ing you pages this shouldn't be a problem to change the off to on.Afte that I was able to see my databases in the Dreamweaver MySQL Connectiontool. Quote Link to comment https://forums.phpfreaks.com/topic/29215-configure-dreamweaver-w-virtualhost-php-mysql-solved-read-on/#findComment-135542 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.