Link to home
Start Free TrialLog in
Avatar of hatem_from_mesr
hatem_from_mesrFlag for Egypt

asked on

where is the web server root for python using django

hi all,
I have installed python 3.x and tried to install django but the metho using setup.py failed so I used the manual method which is copying the django directory to the python 2.4/lib/site-packages
now I don't know where is my web server root directory? please tell me
best regards
hatem gamal
Avatar of Kelly Black
Kelly Black
Flag of United States of America image

Neither Python nor Django is a webserver. The document root is a function of your webserver. You must either be using Apache, or Tomcat, or Lighthttpd for this.
Avatar of hatem_from_mesr

ASKER

hi kblack05,
lets say it's apache  can you please guide what to do or send me a book name that explain in details if it's tutorial it would be perfect

best regards
hatem gamal
Hi there Hatem,

If it were apache, often times the document root is /var/www/html. This will be controlled by httpd.conf if it is in fact apache.

If it is in fact apache, and you have root access to the system, try this command:

httpd -S
[hatem@localhost ~]$ su -
Password:
[root@localhost ~]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:8443         localhost.localdomain (/etc/httpd/conf.d/nss.conf:73)
_default_:443          localhost.localdomain (/etc/httpd/conf.d/ssl.conf:81)
Syntax OK
[root@localhost ~]#
ASKER CERTIFIED SOLUTION
Avatar of Kelly Black
Kelly Black
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks for trying to help