system
March 13, 2005, 2:57am
1
Hello,
The interworx-cp API has created a new siteworx account.
In the home directory of this new user there is a new directory : public_html
[root@padawan baseball]# ls -l
total 8
drwx–s–x 3 baseball baseball 4096 Mar 12 23:30 domain.tld
lrwxrwxrwx 1 root iworx 39 Mar 12 23:30 public_html -> /home/account/domain.tld/html
drwxr-x–x 3 iworx iworx 4096 Mar 12 23:30 var
Is it normal ???
Why There is this directory ???
Thanks for your help
pascal
Yes, it’s normal as of version 1.9.0. This allows the url
http://<ipaddress>/~<unixuser>
to work
system
March 13, 2005, 10:34am
3
I was wondering about the same thing
system
March 14, 2005, 6:26am
4
Yes, in the /etc/httpd/conf/httpd.conf the userdir public_html is enabled, but where is set the :
<Directory /home/*/public_html>
Also, as strange it may be, sometimes my new siteworx user account has the public_html symlink created and some time hasn’t
so in this last case I have to create manually the symlink like this
ln -s /home/account/domaine.tld/html public_html
Any idea why ?
Pascal
system
March 14, 2005, 2:10pm
5
Old accountd don’t have the directory and it needs to be created manually.
Justec
March 14, 2005, 4:25pm
6
" sometimes my new siteworx user account "
He did say “new” siteworx accounts, so maybe he mis-typed or it is a bug?
Guess we’ll have to wait and see.
system
March 14, 2005, 5:52pm
7
Justec:
" sometimes my new siteworx user account "
He did say “new” siteworx accounts, so maybe he mis-typed or it is a bug?
Guess we’ll have to wait and see.
It makes sense that only new accounts would have this since older accounts were created with a version of the account creation script that didn’t have the ability to do this.
It’s not just a matter of creating a public_html directory; the symlink ( -s ) needs to be made and the UserDur value needs to be added to the /etc/httpd/conf.d/domain.tld.conf file.
system
March 14, 2005, 5:56pm
8
done, and seems to work fine.
Justec
March 15, 2005, 8:51am
9
I still think he was referring to new siteworx accounts.
You create 5 new accounts today 3 of them have the public_html, and 2 of them don’t. It might be a language thing, but thats what I got out of
If that is what Pascal is saying then that is definately something that needs to be looked at.