简体   繁体   English

将Netbeans和PHP从Win迁移到Ubuntu-什么目录结构?

[英]Moving netbeans and PHP from Win to Ubuntu - what directory structure?

I have been learning PHP and Zend FW on Win32. 我一直在Win32上学习PHP和Zend FW。 In the last few days I setup Ubuntu and am cutting over all my stuff. 在过去的几天中,我安装了Ubuntu,并完成了所有工作。

On Win32, I had a single parent directory for my netbeans projects. 在Win32上,我的netbeans项目只有一个父目录。 I did both dev and testing there. 我在那里做了开发和测试。 (I don't have any production apps as yet.) (我还没有任何生产应用程序。)

Anyhow, on Ubuntu, netbeans wants to store projects in /home/username. 无论如何,在Ubuntu上,netbeans希望将项目存储在/ home / username中。 This is not beneath my web root though, so AFAICS, I won't be able to code and test without a deployment in between. 但是,这不在我的Web根目录下,因此,如果没有它们之间的部署,AFAICS将无法进行编码和测试。

How do other netbeans/linux users go about handling this? 其他netbeans / linux用户如何处理呢? Do you develop in /home/username, then deploy to /var/www/myapp/test to run it in a browser? 您是否使用/ home / username开发,然后部署到/ var / www / myapp / test以在浏览器中运行它? Or do both your dev and test directories live under the web root? 还是开发目录和测试目录都位于网络根目录下? Or do you symlink out of the web root? 还是您从网络根目录进行符号链接? Or ...? 要么 ...?

Thanks! 谢谢!

假设这是您的开发机器,则可以控制您的Web根目录,因此只需为每个项目设置一个虚拟主机,使其指向/home/username/netbeans/projectname/public (或任何Netbeans使用的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM