/scripts/fixquotas
will say something like;
edquota: Quota write failed (id 526): Invalid argument
so to fix it;
/sbin/quotacheck -vguma
then
/scripts/fixquotas
Linux Hosting Tips & Tricks
/scripts/fixquotas
will say something like;
edquota: Quota write failed (id 526): Invalid argument
so to fix it;
/sbin/quotacheck -vguma
then
/scripts/fixquotas
The file that actually handles WHM > DNS Functions > Nameserver IPs area is at /var/cpanel/nameserverips.yaml location. If you want this to be changed, you’d want to make a backup of that file, then modify it:
Code:
cd /var/cpanel
cp nameserverips.yaml nameserverips.yaml.bak110711
vi nameserverips.yaml
Windows 8, Windows 7, and Windows Vista use User Account Control (UAC), so Notepad must be run as Administrator.
sudo nano /etc/hosts
machines
.-DHCP-
, broadcasthost
, and localhost
in the third column.localhost
.localhost copy
appears, and its properties are shown below the browser view.ip_address
property and enter the IP address of the other computer.name
property and enter the hostname you want for the other computer.serves
property and select Delete from the Edit menu.sudo nano /private/etc/hosts
#
symbol), and some default hostname mappings (for example, 127.0.0.1 – local host). Add your new mappings after the default mappings.dscacheutil -flushcache
The new mappings should now take effect.
stop processes
ipcs -s | grep apache | perl -e ‘while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’
Remove httpd lock file:
cd /var/lock/subsys
rm httpd
Restart httpd:
/etc/init.d/httpd restart
##########################
apache config for low ram usage
vi /etc/httpd/conf/httpd.conf
##########################
Timeout 300
TraceEnable On
ServerSignature Off
ServerTokens Full
FileETag All
StartServers 1
<IfModule prefork.c>
MinSpareServers 2
MaxSpareServers 3
</IfModule>
<IfModule itk.c>
MinSpareServers 2
MaxSpareServers 3
</IfModule>
ServerLimit 256
MaxClients 150
MaxRequestsPerChild 4000
KeepAlive Off
KeepAliveTimeout 5
MaxKeepAliveRequests 100
##########################################
Mysql config for low ram usage
vi /etc/my.cnf
##########################################
[mysqld]
default-storage-engine=MyISAM
innodb_file_per_table=1
max_allowed_packet=268435456
open_files_limit=10000
query_cache_size=16M
http://YourServerIP:7080/config
Web Admin Console => Server => External App =>lsphp5 => Edit
Now under Environment add the below line and click Save
PHPRC=$VH_ROOT
/etc/init.d/lsws restart