Home >Backend Development >PHP Tutorial >我用TP做了一个项目,求教项目如何发布到Linux服务器上,放到哪个文件夹下,要注意哪些地方?

我用TP做了一个项目,求教项目如何发布到Linux服务器上,放到哪个文件夹下,要注意哪些地方?

WBOY
WBOYOriginal
2016-06-20 12:50:501926browse

放到var/www/html/下访问什么也没有,也没报错,放在他们安卓项目目录下也不行,他们也是Apache的,难道是服务器还没配置好PHP项目?


回复讨论(解决方案)

现有web服务的根目录下就可以了(根目录要你自己配置,也有默认),并且要确认你的web服务器加载了php模块,如你的apache,就要加载php模块

/etc/apache2/httpd.conf  可能是这个目录,去看看 里面配置的www根目录在哪

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn