server是学校的cpanel空间,并且有一个域名绑定在这个空间,现在通过编译源文件已经安装好python 2.7, virtualenv
server上有apache,但是没有权限更改httpd.conf。我所有的权限只限定在/home/user/下,对于这个directory之外的dir我就没有任何权限。
我google了相关的很多办法,并尝试了https://docs.djangoproject.com/en/1.4/howto/deployment/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache
这个方法,按照上面的步骤修改了.htaccess 和 mysite.fcgi
然后在terminal里尝试 ./mysite.fcgi返回给我了
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
Status: 200 OK
Content-Type: text/html; charset=
这里status200 我想应该是有响应的吧。可是在浏览器里试的话就404了。。。不知道这是什么原因造成的呢
希望有类似部署经验的人来给我出出主意,我这是第一次部署,过程中一定也有很多纰漏
除此之外,我这种情况还有没有其他部署方案?
server上有apache,但是没有权限更改httpd.conf。我所有的权限只限定在/home/user/下,对于这个directory之外的dir我就没有任何权限。
我google了相关的很多办法,并尝试了https://docs.djangoproject.com/en/1.4/howto/deployment/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache
这个方法,按照上面的步骤修改了.htaccess 和 mysite.fcgi
然后在terminal里尝试 ./mysite.fcgi返回给我了
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
Status: 200 OK
Content-Type: text/html; charset=
这里status200 我想应该是有响应的吧。可是在浏览器里试的话就404了。。。不知道这是什么原因造成的呢
希望有类似部署经验的人来给我出出主意,我这是第一次部署,过程中一定也有很多纰漏
除此之外,我这种情况还有没有其他部署方案?
