如何为旧版PHP应用程序创建Mac OS X开发环境? [英] How to create Mac OS X dev environment for legacy PHP app?

查看:93
本文介绍了如何为旧版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.

这篇关于如何为旧版PHP应用程序创建Mac OS X开发环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆