Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 889739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:36:55+00:00 2026-05-15T13:36:55+00:00

I need to deploy a Django project on a shared server which I have

  • 0

I need to deploy a Django project on a shared server which I have no root access for, and no administration capabilities whatsoever.

Each user on the server has a dedicated directory from which Apache serves that users files (public URL would be /~username/).

Problem is, Apache on this server has no CGI capabilities, no mod_python, no mod_wsgi. I can work with PHP, however.

What hacks do I have to deploy a Django project on this server, maybe employing PHP somehow?

This is in no way a production scenario, and any hack you can think of which will work would be great. Ignore any performance or scalability factors – this is only a POC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:36:56+00:00Added an answer on May 15, 2026 at 1:36 pm

    Without mod_python, mod_wsgi, or fastCGI, you won’t be able to do it directly.

    I’m thinking what you might have to do is run the django app as standalone, listening on another port, then basically use PHP to proxy requests to it.

    So you do your

      python manage.py runserver 9999
    

    maybe starting it with a nohup instead to keep it running when you logout:

      nohup python manage.py runserver 9999 &
    

    Then, in ~username, you make a proxy.php script that takes any additional PATH_INFO and makes a request to localhost:9999, passing along HTTP headers, collects the response, and sends it back to the browser.

    So, eg, the browser requests http://example.com/~username/proxy.php/some/path/ and the PHP script requests http://localhost:9999/some/path/ and sends along the results.

    I’m not a PHP programmer so I can’t exactly show you how to write that, but I’m sure someone out there must have implemented an HTTP proxy in PHP.

    If you have .htaccess support in that directory and apache has mod_proxy_http enabled, you could just have apache directly proxy the request. The documentation is pretty easy to follow. But if they don’t have CGI enabled, they probably don’t have that set up either.

    Of course, the easiest thing would be if you could just get away with django running and listening on a public facing port and access it directly. Ie,

       python manage.py runserver example.com:9999
    

    and access it directly as http://example.com:9999/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 469k
  • Answers 469k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I used to put links as parameters. Most of the… May 16, 2026 at 2:47 am
  • Editorial Team
    Editorial Team added an answer [-A-Z0-9+&@#\/%?=~_|!:,.;]* appears to be slurping up most of the url,… May 16, 2026 at 2:47 am
  • Editorial Team
    Editorial Team added an answer I don't think Motorola has an emulator for it, and… May 16, 2026 at 2:47 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.