You can disable the mod_security for that account by adding code in its .htaccess file.
SecFilterEngine Off
SecFilterScanPOST Off
Linux System Admin Blog….
You can disable the mod_security for that account by adding code in its .htaccess file.
SecFilterEngine Off
SecFilterScanPOST Off
From: http://www.cpanel.net/docs/whm/FAQ.htm
Q: I’m having server problems but the problem is not listed below. What should I do?
A: There are two options:
Q: How do I login to Cpanel from a non-GUI?
A: Do the following:
Q: I just got another server, what do I do?
A: If you would like to make your two servers work together, you will need to establish a trust relationship with your primary nameserver – refer to Establishing a trust relationship for more information. You can also transfer your old server’s files to your new server – refer to Transfers for more information.
Q: Proftp will not start it says, ‘unable to determine the ip address of mydomainhere.com’. What do I do?
A: You need to change your hostname to a FQDN (Fully Qualified Domain Name ). A FQDN has a host name, and a domain name which includes a top-level domain, e.g. www.sub.domain.com.
Q: I have a CPanel license but when I login it says ‘Invalid Lisc File’. What’s wrong?
A: There are a couple of possibilities. The date on your server could be improperly synced, your main IP could have changed, or your files could have been corrupted.
#rdate -s rdate.darkorb.net
#/usr/local/cpanel/cpkeyclt
Q: My install keeps saying “waiting for updated to finish”. What should I do?
A: Do the following:
#rsync -av rsync://ftp.cpanel.net/scripts /scripts
Q: What types of traffic does the Bandwidth monitor show?
A: The bandwidth monitor watches http, ftp, and pop traffic.
Q: I’ve added accounts in WebHost Manager that aren’t showing up. What’s wrong?
A: Your domain database has not been updated, you need to run:
#/scripts/updateuserdomains
Q: What does Initial Nameserver Setup do?
A: This starts the name and adds it to the list of daemons to be checked.
Q: What should I do about partitioning my drive? What sizes do I need?
A: Refer to Installation for more information.
Q: How do I upgrade using buildapache.sea?
A: Do the following:
#rm -Rf buildapache/
#rm buildapache.sea
Q: How can I use Cpanel in a non-graphical environment?
A: Do the following:
Q: Neomail keeps returning no MD5.so in @INC. What do I do?
A: #/scripts/cleanmd5
Q: How can I fix problems with mail that result from incorrect permissions?
A: #/scripts/mailperm
Q: I’m trying to add FrontPage extensions, or a new account, and I get sd(8,10) write failure, user limit block reached. What do I do?
A: #/scripts/fixquotas
Q: What can fix many common problems?
A: #/scripts/fixcommonproblems
Q: I keep getting a 500 error when trying to use Mailman. What is wrong?
A: Your hostname is not being sent with your e-mail. Do the following:
#/scripts/fixmailmanwithsuexec
#pico /usr/local/apache/conf/httpd.conf – move the last vhost to the first vhost in the file.
Q: What do I do when Mailman wants UID 99 but is getting -1?
A: #/scripts/upcp
Q: My subdomain logs are not being processed. What do I do?
A: Do the following:
Q: How do I enable FrontPage on port 443 with ssl?
A: Do the following:
Q: Neomail complains of no MD5.so in @INC – what do I do?
A: Do the following:
Q: When adding FrontPage, I get sd(8,10) write failure, user limit block reached. What do I do?
A: Run /scripts/fixquotas
Q: How do I fix general mail problems related to permissions?
A: /scripts/mailperm
Q: How do I fix the most common problems?
A: /scripts/fixcommonproblems
Q: How do I fix cgi scripts that are returning a 500 error because of permissions?
A: Do the following:
Q: What do I do when Mailman wants UID 99 when getting -1?
A: Do the following:
/scripts/upcp should now detect this and fix it for you automatically.
Q: How do I troubleshoot Perl scripts?
A: Do the following:
Q: What do I do if subdomain logs are not getting processed?
A: Do the following:
Q: How do I stop a crontab?
A: Add – >/dev/null 2>&1 – after the entry in the crontab.
Q: What do I do when MySQL gives error of access denied for root@localhost?
A: Make sure root pass is in /root/.my.cnf, this is usually the first root password the box was given when CPanel was installed.
Q: How do I set the /etc/my.cnf file for sites with vbb forums that don’t close connections, thus spawning 500 mysqld’s and hogging all the RAM?
A: Do the following to mysqld:
Q: What do I do if SpamAssassin is taking up a lot of memory and CPU?
A: The chances are the dbm database has gotten corrupted. Try this:
Q: What do I do if buildapache.sea bombs out with a lot of nasty looking errors?
A: Do the following:
Q: What do I do when a Guestbook is not showing anything, I get a blank page when trying to view, and no errors when submitting?
A: Do the following:
chown nobody /home/username/.guestbook
Make sure ‘nobody’ can write to it.
Q: What do I do when all the Perl/CGI scripts that are not running as root (including Interchange) get the error “getgrgid: invalid groupid XXXXX”? From Apache’s error_log …
[Tue Mar 26 09:13:16 2002] [error] [client x.x.x.x] (2)No such file or directory: getgrgid: invalid groupid 32015
[Tue Mar 26 09:13:16 2002] [error] (2)No such file or directory: exec of /home/username/public_html/utility.cgi failed
[Tue Mar 26 09:13:16 2002] [error] [client x.x.x.x] Premature end of script headers: /home/username/public_html/script.cgi
A: Do the following:
chmod 644 /etc/group
If that doesn’t fix it, check permissions on the passwd file and shadow file as well just for good measure.
Q: What are the default locations for Mailman, exim config, exim log, or the exim reject log?
A: The locations are:
Q: What do I do when setting up a trust relationship and I get errors about possible security threats and stuff about SSH/known_hosts?
A: Most likely the master server has changed it’s ssl info. The easiest way to remedy this is:
Then try setting up the trust relationship again.
You can fix this by running the script /scripts/fixquotas
is this doesn’t work and you are using Virtuozzo or OpenVZ you will need to set the QUOTAUGIDLIMIT perimeter – this allows the system to allocate user IDs (UID)
e.g (openvz)
vzctl set 101 –quotaugidlimit 1000 –save
then run the scrip “/scripts/fixquotas”
and it should all work.
Troubleshooting
If you’ve done the above and it still doesn’t work (or the value still says 0MB) this may be due to cPanel caching the disk usage results. to disable this:
Select the following in your WHM.
WHM >> Tweak Settings >> System >> “Disable Disk Quota display caching (WHM will cache disk usage which may result in the display of disk quotas being up to 15 minutes behind the actual disk usage. Disabling this may result in a large performance degradation.)”
# vi /etc/modprobe.conf
add to the bottom of file:
alias ipv6 off alias net-pf-10 off
# reboot
or before you reboot, also check out:
# grep hosts /etc/nsswitch.conf
#hosts: db files nisplus nis dns hosts: files dns
Your /etc/nsswitch.conf should look similar to this:
# # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # nisplus or nis+ Use NIS+ (NIS version 3) # nis or yp Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # [NOTFOUND=return] Stop searching if not found so far # # To use db, put the "db" in front of "files" for entries you want to be # looked up first in the databases # # Example: #passwd: db files nisplus nis #shadow: db files nisplus nis #group: db files nisplus nis passwd: files shadow: files group: files #hosts: db files nisplus nis dns hosts: files dns # Example - obey only what nisplus tells us... #services: nisplus [NOTFOUND=return] files #networks: nisplus [NOTFOUND=return] files #protocols: nisplus [NOTFOUND=return] files #rpc: nisplus [NOTFOUND=return] files #ethers: nisplus [NOTFOUND=return] files #netmasks: nisplus [NOTFOUND=return] files bootparams: nisplus [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files rpc: files services: files netgroup: files publickey: nisplus automount: files aliases: files nisplus
vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php*
Plesk will overwrite any httpd.conf settings unless you include them in…
/home/httpd/vhosts/DOMAIN/conf/vhost.conf
basically, the instruction everywhere on the web on how to modify the open_basedir for plesk, so it won’t overwrite it, were all wrong…
here’s the instruction from the Plesk website:
http://kb.parallels.com/en/432
<Directory /home/httpd/vhosts/DOMAIN/httpdocs>
php_admin_value open_basedir “/home/httpd/vhosts/DOMAIN/httpdocs:/tmp:/usr/bin:/usr/local/bin”
</Directory>
this didn’t work because the the plesk httpd.include (which gets overwritten each time) used the “IfModule sapi_apache2.c” call, which MUST ALSO be used in the vhost.conf (which overrides)…
here is the correct way of inputing the vhost.conf:
<Directory /home/httpd/vhosts/DOMAIN/httpdocs>
<IfModule sapi_apache2.c>
php_admin_value open_basedir “/home/httpd/vhosts/DOMAIN/httpdocs:/tmp:/usr/bin:/usr/local/bin”
</IfModule>
</Directory>
If you want to add any extra modules to apache, they’ll need to be compiled in. Any module that needs to be compiled in will have a –with-module type flag which will need to be used. To add this flag, run the following:
cd /usr/local/directadmin/customapache
vi configure.apache_ssl
#add your –with-module line to the end of the file,
# and make sure the character exists at the end of all lines except the last one.
./build clean
./build apache_mod_ssl
Then restart apache:
RedHat:
/sbin/service httpd restart
FreeBSD:
/usr/local/etc/rc.d/httpd restart
If you run into problems, you may also need to recompile php as well:
./build php
Then restart apache again.
Easy::Apache v3.2.0 Build 4310
!! Warning (VZ): You are only only guaranteed 224 Megabytes of ram! 512 Megabytes is recommended. !!
If you get above memory error on VPS while running easy apache, You can fix by using following steps. Login in to main VPS and edit the variable OOMGUARPAGES accordingly.
OR
OpenVZ Users :
You can also modify the OOMGUARPAGES values from shell as required. :
vzctl set 101 –OOMGUARPAGES 561120:2147483647 –save
Need Assistance with nominal fee contact [email protected]
How to install Zend Optimizer with the (IonCube) Loader?
Thats all you are done.
=======================
Reference ::
http://kb.swsoft.com/en/631
Need Assistance with nominal fee contact [email protected]
Any operation on a VE gives me “Cannot lock VE“.
VE is locked when some operation (backup, migration, start / stop, etc.) with this VE is in progress. You can determine which process is holding VE #111 using the following command on the hardware node:
# cat /vz/lock/111.lck
16824
backing-upYou can kill that process if needed. Make sure that the process is really killed. If there is no process with that PID on the node, just remove the lockfile.
# kill 16824
# vzctl start 111