Some Common Issues and the Fix.
(1) rss
Has the server configuration changed at all recently. I have an RSS
script that has failed to work and return this error:
Warning: file_get_contents(): URL file-access is disabled in the server
configuration in /modules/rss_cmps2.php on line 221
Warning: file_get_contents(http://rss.cbc.ca/hockeynews.xml): failed to open
stream: no suitable wrapper could be found in /modules/rss_cmps2.php on
line 221
solution
on
allow_url_fopen = On
(2) securenobody
see securenobody section
(3) dreamweaver
http://www.adobe.com/support/documentation/en/dreamweaver/
http://forums.digitalpoint.com/showthread.php?tu84
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
theme issue
error while taking addpackage of a reseller
/usr/local/cpanel/whostmgr/docroot/themes/Xskin/templates/addpkgform
solution
copy the x xskin from /usr/local/cpanel/base/frontend/ to /usr/local/cpanel/whostmgr/docroot/themes/
and restart iptables
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
logwatch result from messages.
--------------------- Kernel Begin ------------------------
WARNING: Kernel Errors Present
audit(1166271967.311:180): avc: denied { write } for pid=9485 comm="rndc"
name="error_log" dev=hda5 in...: 1 Time(s)
reason
We have checked the error logs and found that the error is due to selinux is being enabled on the server.Security-Enhanced Linux (SELinux) is a version of the Linux kernel and utilities, which contains support for mandatory access controls based on the principle of least privilege. SELinux can cause some incompatabilities with cPanel. So we have disabled it on the server.
disabling selinux
cd /etc/selinux
vi config
put the following changes in it
SELINUX=disabled
:quit
root@#setenforce 0
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Warning: exec() has been disabled for security reasons in /home/brandon/public_html/gallery/platform/fs_unix.php on line 34
Error: Unable to make thumbnail (0)
solution
remove exec in near to disable.. in php.ini
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
neutralweb forum
http://forum.neutralweb.com/showthread.php?t=313
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
cpanel /scripts details
http://www.cpanel.net/docs/whm/Scripts.htm
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
pear module
error
Warning: connect(DB/mysql.php) [function.connect]: failed to open stream: No such file or directory in /usr/local/lib/php/DB.php on line 371
connect: not found
solution
after php compilation pear module is installed. But here it needs a module DB inside the pear module. For installling this.
# pear install DB (this command will install this)
for checking the pear module
# pear list
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
extract option not displaying in cpanel under file manager
solution
change the permission of teh folder consist of the following files to 755
magic
magic.mgc
magic.mime
magic.mime.mgc
commomn folder is /usr/share/file/
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&