[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

where is the web server root for python using django

Posted on 2009-04-29
6
Medium Priority
?
454 Views
Last Modified: 2012-05-06
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
0
Comment
Question by:hatem_from_mesr
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:kblack05
ID: 24260335
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.
0
 

Author Comment

by:hatem_from_mesr
ID: 24268349
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
0
 
LVL 11

Expert Comment

by:kblack05
ID: 24270451
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
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:hatem_from_mesr
ID: 24288808
[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 ~]#
0
 
LVL 11

Accepted Solution

by:
kblack05 earned 2000 total points
ID: 24291858
Then look for the documentroot in /etc/httpd/conf.d/nss.conf
0
 

Author Closing Comment

by:hatem_from_mesr
ID: 31575874
thanks for trying to help
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month19 days, 7 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question