New build system (BETA)

I noticed that the system doesn't work properly on my server. Maybe I forgot something, but here are the problems.

1. The virtualhosts are located in a separated file. Is it safe ?
2. The comment before virtualhosts is "# Deflate module settings". I don't think this is right.
3. When I delete an user, Apache stop working, because the line Include for the VirtualHost is not deleted in (conf/extra/directadmin-vhosts.conf).
4. New users Include are included at the bottom of my httpd.conf and not in (conf/extra/directadmin-vhosts.conf).

Any idea ?
 
I'm using it on a production server, so far no fatal problem.

I didn't had any problem so far, but I did not delete any account before today.

May I ask you, if you have tried to create an account, make sure it was added to the separated file (/etc/httpd/conf/extra/directadmin-vhosts.conf) as it should be and try to delete it and check if everything is still working ?
 
Then contact DirectAdmin support with that information.

but is this script coming to default installation script to DA on 3rd party script ?

And if you are making this script, why you not contact to DA support ? you have server information and change to test/debug this problem to out.

You know much better what we are talked and explain to john ...
 
ALso more problems, when add users, and try restart httpd got more problems:

/
etc/init.d/httpd restart
Stopping httpd:
Starting httpd: Syntax error on line 31 of /usr/local/directadmin/data/users/plaah/httpd.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration
 
ALso more problems, when add users, and try restart httpd got more problems:
/

After all, I find it normal that this script is buggy at this time, it does so many things. Isn't it ?

I suggest some changes :

- include all directadmin virtualhost directly inside httpd.conf at the bottom
- overwrite the current virtualhost template (depending on the options -> http://help.directadmin.com/item.php?id=2)
 
but is this script coming to default installation script to DA on 3rd party script ?

And if you are making this script, why you not contact to DA support ? you have server information and change to test/debug this problem to out.

You know much better what we are talked and explain to john ...

It's not a 3rd party script.
 
ALso more problems, when add users, and try restart httpd got more problems:

/


I said ~3 times in this thread, that if you want to run PHP4&PHP5 as CGI - you should wait for a new release of DirectAdmin, because only in 1.295 version of it the new templates are included.
 
No need to owerwite them. As as I said (4th time now), new templates are made and they are included in the new version of DirectAdmin, which is not released yet (1.295).

Thank you for your answer, and for the answer to my PM.

It is not that much important to rewrite the apache templates, but at least in the current httpd.conf (standard file) change this :

# Deflate module settings
Include conf/extra/directadmin-vhosts.conf

to :

# Directadmin virtualhosts
Include conf/extra/directadmin-vhosts.conf

And why to use and external page to include for those virtualhost ? What is the goal ? The current DA system is able to write in when you ADD a new user, but is not able to remove from this file when you remove an user since it will look inside httpd.conf and not in the include file (for a strange reason)...

Thank you.
 
No need to owerwite them. As as I said (4th time now), new templates are made and they are included in the new version of DirectAdmin, which is not released yet (1.295).

Okey, thx info and very sorry !

I waiting when new release released.
 
Thank you for your answer, and for the answer to my PM.

It is not that much important to rewrite the apache templates, but at least in the current httpd.conf (standard file) change this :



to :



And why to use and external page to include for those virtualhost ? What is the goal ? The current DA system is able to write in when you ADD a new user, but is not able to remove from this file when you remove an user since it will look inside httpd.conf and not in the include file (for a strange reason)...

Thank you.


What's the goal? Firstly, if you don't want to use any virtualhosts - you can just use "echo > /etc/httpd/conf/extra/directadmin-vhosts.conf". Secondly, if you want to rewrite all the virtualhosts, you don't need to manually remove all the "Include" lines from httpd.conf and then use http://help.directadmin.com/item.php?id=121. Moreover, httpd.conf file is much smaller without these include lines and from apache 2.2 virtualhosts are included by default into the separate file (not httpd.conf).
 
What's the goal? Firstly, if you don't want to use any virtualhosts - you can just use "echo > /etc/httpd/conf/extra/directadmin-vhosts.conf". Secondly, if you want to rewrite all the virtualhosts, you don't need to manually remove all the "Include" lines from httpd.conf and then use http://help.directadmin.com/item.php?id=121. Moreover, httpd.conf file is much smaller without these include lines and from apache 2.2 virtualhosts are included by default into the separate file (not httpd.conf).

Mh, I guess you missunderstood.

When you add a new user, the include line to the precise httpd.conf is duplicated.

1. Add a user
2. Check httpd.conf and directadmin-vhosts.conf BOTH contain it.
3. Check apache statut
4. Delete the user.
5. Check httpd.conf and directadmin-vhosts.conf only ONE got it deleted.
6. Check apache statut.

Why to include this in a separated file if it is anyway duplicated ?
 
Mh, I guess you missunderstood.

When you add a new user, the include line to the precise httpd.conf is duplicated.

1. Add a user
2. Check httpd.conf and directadmin-vhosts.conf BOTH contain it.
3. Check apache statut
4. Delete the user.
5. Check httpd.conf and directadmin-vhosts.conf only ONE got it deleted.
6. Check apache statut.

Why to include this in a separated file if it is anyway duplicated ?

It shouldn't be in the main file (httpd.conf), please write about this issue to support[at]directadmin.com. Thank you.
 
Yes, I did thanks.

What about to change this :

# Deflate module settings
Include conf/extra/directadmin-vhosts.conf

to something like :

# Directadmin virtualhosts
Include conf/extra/directadmin-vhosts.conf

It is probably a little detail you forgot :)
 
Thank you for the report, Maniak. I'm going to "fix" the comment soon :) About the problem you've sent to the DirectAdmin support - you can post an aswer here for the community (if you want).
 
Back
Top