• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Apache problems

HI Experts

I have runing apache in fedora 4 server , we was having an easy way tu publicate website for regular users on the company , it was a folder in the users homes , an wen you put eneything there it get automaticaly in the user website , like :

web.xxx.com/~username


My problem its now after i restart the server its not working any more , can you pleae help me to find out what to od ?

thanks

0
diegomirner
Asked:
diegomirner
  • 3
  • 3
  • 2
1 Solution
 
2266180Commented:
I would guess that either you have to instances of apache on the machine, or the config file was messed up somehow (a restore maybe)?)
do an "updatedb" then a "locate httpd" and check the output to see if indeed you have more instances of apache. in which case, stop the one running and start the correct one.
if you only have one instance, then look for the config file and check for something like the below:
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
    AllowOverride All
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
</Directory>

and make sure it has correct configuration options
0
 
diegomirnerAuthor Commented:
Hi Ciuly

not , i didnt lost the config , i jest realice that it dosent work becouse the PDC its notworking and we point the web sites to the \home\username\www
and for the moment this folders are not reachable.

Can you please provide me a little HowTO set up a simple website were i can store same files in order to share in one web site

thanks


0
 
2266180Commented:
I am not sure I understand what you want.
something like:

on the same machine:
www.domain.tld/site
www.domain.tld/site1
www.domain.tld/site2

and site 1 and site 2 can use files from site?

or
www.domain1.tld/site
www.domain2.tld/othersite

and otehrsite from domain2 can use files from site of domain 1?
(the above is on same machine. if you want on different machines it's trickier but not impossible)
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
diegomirnerAuthor Commented:
NO , sorry , what i need if a Howto do i simple web site .This web site its  to publicate big files in order to be abalible to download from the browser.

Thanks
0
 
2266180Commented:
hm ... there are a lot of howto's out there. this is one: http://www.tldp.org/HOWTO/Apache-Overview-HOWTO.html

but as I look at it, in this question you ask about a problem with user directories and stuff like that. is this latest request related to that or not? if yes, give some more information (you might not even need a howto, just to add a few lines in the config file)
0
 
ahoffmannCommented:
simply point DocumentRoot in httpd.conf to the directory you want to use as your website (it should already be there)
0
 
diegomirnerAuthor Commented:
We had a system wich alow user to publish in their own web site by a simple drag and drop inside of their own folder call ( WWW ) in the home directory of each user.But this folder its not accessible for the moment because the domain its not up .
What I need its add in the config of the apache with its running properly , another web site in order to provide them a momentanian  solution , but I don’t have experience in apache , its possible to add another web site in a easy way ?

Thanks
0
 
ahoffmannCommented:
as already said: ther should be a DocumentRoot defined
simply allow access for your users to that directory.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now