如何为旧版PHP应用程序创建Mac OS X开发环境?
我刚被分配开始使用大型的旧版PHP应用程序中的代码.副本正在生产服务器上运行,并且我已将副本从代码存储库中拉到本地计算机上.
I've just been assigned to start working with the code from a large, legacy PHP app. A copy is running on the production servers, and I've pulled a copy from the code repositories onto my local machine.
我安装XAMPP的目的是希望在开发过程中在本地运行该应用程序,但我遇到了麻烦.我如何(1)使XAMPP指向我的开发文件夹,以及(2)实际上使PHP应用程序在本地(包括数据库表)启动并运行?
I installed XAMPP in hopes of running the app locally during development, but I'm stuck. How do I (1) get XAMPP to point to my development folder and (2) actually get the PHP app up and running locally (including database tables)?
1)将开发文件夹移动到htdocs文件夹中,在该文件夹中,您已将XAMPP安装到以下位置:C:\ xampp \ htdocs \ my_legacy_php_app \,然后浏览到 http://localhost/my_legacy_php_app/进行查看. 2)您需要将数据库迁移到测试环境,大多数人发现使用phpMyAdmin非常容易,因此,导航到 http://localhost/phpMyAdmin 并导入数据库.
1) Move your development folder into the htdocs folder where ever you installed XAMPP to ie: C:\xampp\htdocs\my_legacy_php_app\ and then browse to http://localhost/my_legacy_php_app/ to see it in action. 2) You would need to migrate the database to your test environment, most people find using phpMyAdmin pretty easy, so, navigate to http://localhost/phpMyAdmin and import the database.