Macos server end of life1/3/2023 However, the log indicates that mod_wsgi/3.3 was loaded. It doesn't seem that the WSGI module is handling the request, but instead, the request may be processed using FCGI. Premature end of script headers: wsgi.py (8)Exec format error: exec of '/Library/Server/Web/Data/WebApps/mysite/mysite/wsgi.py' failed Apache/2.2.22 (Unix) PHP/5.3.13 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 mod_fastcgi/2.4.6 mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 configured - resuming normal operations The logs has the following entries (IP addresses changed to 1.2.3.4 for privacy reasons): Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) I then created a site with the server manager, confirmed my application was in the list of web applications. Both these files are used to run the "standalone" python application successfully when configured through the server manager. The file .plist was adapted from .plist and httpd_nf adapted from httpd_nf. Library/Server/Web/Config/apache2/httpd_nf Library/Server/Web/Data/WebApps/mysite/mysite/wsgi.py I further created a file /Library/Server/Web/Config/apache2/webapps/.plist with the following content: I then created a file /Library/Server/Web/Config/apache2/httpd_nf with the following content: WSGIScriptAlias /mysite /Library/Server/Web/Data/WebApps/mysite/mysite/wsgi.py It is the standard "It worked!" page when you first created a project. It simply confirmed that the application was up and running. I ran the application using the following command. The project was created at /Library/Server/Web/Data/WebApps/mysite/ using the following command django-admin.py startproject mysite My first attempt is to deploy an empty website, and once that succeeds, deploy a real application to be used in production. I have the following OS X Server environment, with the following already installed:ĭjango 1.4.1 was installed using the following command: sudo easy_install django How would one deploy a Django application on OS X Server 2.0 without using homebrew or a different flavor of python than the one shipped with OS X 10.8.1? I'm using the cocoa bindings in a Django application and had trouble getting it to work with homebrew on my desktop machine (running OS X 10.8.1) hence the request to deploy the application on the system installed version of Python.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |