Results 1 to 5 of 5

Thread: Apache server would not load Python script

  1. #1
    Join Date
    Jul 2005
    Location
    Lebanon
    Beans
    226
    Distro
    Ubuntu

    Apache server would not load Python script

    Hello,

    I installed Apache server, php and mysql on my Ubuntu 12.04 x86
    if you goto http://37.139.4.232 it says 'it Works' and PHP works as well http://37.139.4.232/phpinfo.php
    Which is fine.

    I then installed Reddit script which uses Python and Postgres in /var/www/maghnatis

    Now whenever I navigate to http://37.139.4.232/maghnatis
    I get a directory list. It would not load the site.

    What should I do?
    Why did the chicken cross the road?
    Plato: For the greater good.

  2. #2
    Join Date
    Jan 2005
    Location
    Illinois USA
    Beans
    1,045

    Re: Apache server would not load Python script

    If the root directory for the script is /var/www/maghnatis, than localhost/maghnatis will look for /var/www/maghnatis/maghnatis

    You've given no indication of an issue aside from you saying it doesn't load. What is the error message, what do your logs say? What version of Python and what module are you using?
    CloudRck.com - Host on CloudRck
    I sponsor open source projects and support users of such technologies. PM for details

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,527
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Apache server would not load Python script

    If there is no "index" file in /var/www/maghnatis, like an index.php or index.html, then you will get a directory listing (depending on the Options specified in the configuration file for the site). Apparently whatever installation script you ran put the index file in some other location.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  4. #4
    Join Date
    Jul 2005
    Location
    Lebanon
    Beans
    226
    Distro
    Ubuntu

    Re: Apache server would not load Python script

    I checked the installation script and I can't seem to find an index anywhere.
    https://github.com/reddit/reddit
    Why did the chicken cross the road?
    Plato: For the greater good.

  5. #5
    Join Date
    Jan 2005
    Location
    Illinois USA
    Beans
    1,045

    Re: Apache server would not load Python script

    There is no index file necessarily when using Python.

    Post your httpd.conf
    CloudRck.com - Host on CloudRck
    I sponsor open source projects and support users of such technologies. PM for details

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •