Dosn't work Suspend an account in Da

NaSRi

Verified User
Joined
Aug 16, 2014
Messages
82
I think this is new problem in directadmin , i tried to suspend an account but it doesn't take effect and the account did not suspend

Could you please help me about this matter ?
 
Compiled on CentOS 6.0 64-Bit
Compile Date Oct 24 2014, 20:35:39
Server Version 1.46.3
Current Available Version 1.463000
Last Updated Sat Jan 3 05:55:36 2015
Last Restart Sat Jan 3 07:17:30 2015
Update DirectAdmin

=======

I tried in directadmin control panel , I have an account that status is suspended with red color but the site still available via browser .
 
I've suspended the account


All selected Users have been suspended

Details

View previous sort

The Users display cache will be updated momentarily.


but it opens in browser .
 
Domain bolurbaran.com is pointed to my IP and also its my customer problem .
 
A site with the domain under the question is powered by Phusion Passenger 4.0.29. That's why you can't suspend it as usual I'd guess.

Admin Level in Directadmin -> Custom HTTPD Configurations -> Find your domain -> Click on it -> Post here Contents of the httpd.conf file for the domain.
 
I get this error when restart apach

Starting httpd: Warning: DocumentRoot [/home/raushco/domains/raush.net/private_h tml/'SUB'] does not exist


======================
# Auto generated apache config file by DirectAdmin version 1.46.3
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3


<VirtualHost 5.9.248.113:80 >
ServerName www.bolurbaran.com
ServerAlias www.bolurbaran.com bolurbaran.com
ServerAdmin [email protected]
DocumentRoot /home/blorbaran/domains/bolurbaran.com/public_html/blur_baran/public
ScriptAlias /cgi-bin/ /home/blorbaran/domains/bolurbaran.com/public_html/blur_baran/public/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup admin admin
</IfModule>
CustomLog /var/log/httpd/domains/bolurbaran.com.bytes bytes
CustomLog /var/log/httpd/domains/bolurbaran.com.log combined
ErrorLog /var/log/httpd/domains/bolurbaran.com.error.log
<IfModule mod_env.c>
SetEnv reason other
</IfModule>
<Directory /home/blorbaran/domains/bolurbaran.com/public_html/blur_baran/public>
php_admin_flag safe_mode OFF
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/admin/.php/php-mail.log
php_admin_value open_basedir /home/admin/:/tmp:/var/tmp:/usr/local/lib/php/
</Directory>
</VirtualHost>

<VirtualHost 5.9.248.113:443 >
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
ServerName www.bolurbaran.com
ServerAlias www.bolurbaran.com bolurbaran.com
ServerAdmin [email protected]
DocumentRoot /home/blorbaran/domains/bolurbaran.com/public_html/blur_baran/public
ScriptAlias /cgi-bin/ /home/admin/domains/bolurbaran.com/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup admin admin
</IfModule>
CustomLog /var/log/httpd/domains/bolurbaran.com.bytes bytes
CustomLog /var/log/httpd/domains/bolurbaran.com.log combined
ErrorLog /var/log/httpd/domains/bolurbaran.com.error.log
<IfModule mod_env.c>
SetEnv reason other
</IfModule>
<Directory /home/blorbaran/domains/bolurbaran.com/public_html/blur_baran/public>
php_admin_flag safe_mode OFF
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/admin/.php/php-mail.log
php_admin_value open_basedir /home/admin/:/tmp:/var/tmp:/usr/local/lib/php/
</Directory>
</VirtualHost>
 
You've got a custom defined DocumentRoot. What do you see in textarea entitled as "Httpd.conf Customization for bolurbaran.com"?
To suspend the site you probably need to remove custom definition of DocumentRoot.

Starting httpd: Warning

That's not an error, that's warning! since that you may ignore that!
 
BUMP this for sure. I just suspended an account on our server and the site is still live.

What gives? This is the latest DA.

It was suspended because the reseller keeps creating the account on the server and the site gets tons of incoming spam attemts to it. Its not even an established site.

Iv informed the reseller that we don't want the domain on the server yet he keeps recreating it.

IV HAD ENOUGH. I suspended it and moved it to the admin account so he cant recreate it but that has not solved the issue of suspension.

It not suspended at all.

1) When can this bug be fixed?
2) When will there be an option added to PREVENT the reseller from deleting, recreating a domain I don't want hosted on our servers?

Surely 2) is something that would be useful for everyone. I cant see why there is no option to prevent a reseller from un suspending a site the admin suspended.
 
Hello,

If you don't want your users to add any domain in your server you may:

1. copy /usr/local/directadmin/data/templates/forbidden_domains.list to /usr/local/directadmin/data/templates/custom/
2. add any domain into /usr/local/directadmin/data/templates/custom/forbidden_domains.list
 
And if you don't want your user to be able to unsuspend a suspended site you can chattr the user-level httpd.conf file after you've suspended it.
Code:
chattr +i /usr/local/directadmin/data/users/USERNAME/httpd.conf
Of course you'll need to reverse the process before you try to unsuspend or delete the domain or user.
Code:
chattr -i /usr/local/directadmin/data/users/USERNAME/httpd.conf
Jerr
 
I just learned something. :)

Thank you.

I was thinking that it was cache.. Or maybe the user went to another host and it was still displaying.. Love the forbidden domain list and chattr methods though.
 
Back
Top