public_html created by interworx !!!???!!!

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

I was wondering about the same thing :slight_smile:

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

Old accountd don’t have the directory and it needs to be created manually.

" 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.

done, and seems to work fine. :slight_smile:

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.