Skip to main content
January 13, 2012
Question

Local PHP/MySQL testing server???

  • January 13, 2012
  • 1 reply
  • 684 views

Hello,

Am setting up a local testing server using Xampp. Blundered around for a couple of days and got a page to preview in a browser, have no idea why. Adding restricted log-in area to a functioning site and have REALLY basic questions.

* Web host supports unlimited MySQL databases and PHP versions 4.4.8 and 5.2.5. Will pages generated with my setup be compatible?

* Will plain-vanilla HTML pages mix with PHP pages in the site?

* Accidentally set up Apache to run as a service. Will that be a local security problem if passwords are set?

* Will anything below come back to bite me?

Here's the situation:

Using DW CS5

Running Win 7 on a 64 bit PC

Xampp is set up at c:/xampp

Local folder - C:\xampp\htdocs\my_site\

Server Name - PHP MySQL

Connect Using - Local/Network

Server Folder - c:\xampp\htdocs\my_site

Web URL - c://localhost/my_site/

Thanks in advance for feedback!

This topic has been closed for replies.

1 reply

Inspiring
January 13, 2012

See http://www.adobe.com/devnet/dreamweaver/articles/setup_testing_server.html

Ask your web host about how to set up the remote site.

Don't pull too much hair out while you are doing it!

Rob Hecker2
Legend
January 14, 2012

. . .will pages generated with my setup be compatible?

Probably. It depends what functions and syntax you use. Your web host doesn't support the most current version of PHP (5.3). What version does XAMPP use now? (I don't know because I use ZendServer) But it's only a potential problem in those rare cases where you would use code PHP 5.25 doesn't support.

Will plain-vanilla HTML pages mix with PHP pages in the site?
Yes, not a problem. But usually all pages end up using a little PHP, such as for includes, so eventually you may not end up with any simple html pages.

. . .apache as service.

I believe this isn't a problem with the standard XAMPP setup which should not allow remote HTTP access. Not positive.

You may want to set up your web url for virtual host in apache and windows. edit httpd-vhosts.conf in apache

ServerName my_site
DocumentRoot  "C:\xampp\htdocs\my_site"

</VirtualHost>

and

windows/system32/drivers/etc/hosts in windows  to this--

127.0.0.1 my_site

This will allow your testing environment to have the same document root level as the remote site. then you can access your testing site with the address http://mysite. (don't try to make it mysite.com, which would be the url to the remote site)