Jump to content

Configure Dreamweaver w/ VirtualHost , php, mysql Solved Read On


Recommended Posts

Here is my setup

It'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 superdiscount
DocumentRoot 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/phpmyadmin
the <? 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 their
file 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:\php

and I copied mysql my.ini to c:\windows

Link to comment
Share on other sites

Problem Solved. Fixed.
Hopefully this will help others who having been going crazy trying to figure
this 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 locally
and 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 Connection
tool.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.