PHP uploaded files will generally get uploaded with the user nobody when using mod_php. This is the apache module for PHP which means the file will be uploaded with the apache user. In order to work around this you can modify your code to chown the file to the appropriate ftp user. The best option is to use PHP in FCGI mode or install SuPHP. This will ensure the files will always upload using the folder owner id.
Using cpanel this can be installed using the easyapache tool.
error:
Can’t locate loadable object for module Template::Stash::XS in @INC (@INC contains: /usr/local/cpanel /scripts /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.8.8/i686-linux/DynaLoader.pm l
===========solution =====
Delete source file of perl module “XS.pm”located at /usr/lib/perl5/site_perl/5.8.8/Template/Stash/
Absolute path should be /usr/lib/perl5/site_perl/5.8.8/Template/Stash/XS.pm
Then install perl module by cPanel script /scripts/perlinstaller
/scripts/perlinstaller Template::Stash:XS.pm. It can also install from the WHM
Once it install just update cPanel by using command /scripts/upcp –force
Issues found after upgrading cpanel/php to version 5.3
-Zend optimizer is not currently supported * Sucks
-The mysql Script
/usr/bin/mysql_fix_privilege_tables need to be ran
-modec can not access the database anymore
error:
etc/cron.hourly/modsecparse.pl:
DBI connect(‘modsec:localhost’,'modsec’,…) failed: Access denied for user ‘modsec’@'localhost’ (using password: YES) at /etc/cron.hourly/modsecparse.pl line 19
fix:
nano /etc/cron.hourly/modsecparse.pl
phpMyAdmin click Privileges > M > and edit the user Modsec. Change the password to whatever the password was in the aforementioned modsecparse.pl.
error: Invalid zero length lock file /home/emailne/etc/email.net/user/.boxtrapper/loopprotect.lock detected. at /usr/local/cpanel/Cpanel/SafeFile.pm line 162
Solution: Disable the boxtrapper for the user and make sure the user has enough storage available. Then renable the user.
We have seen this mostly on cpanel servers.
/etc/mailips
domain2.tld: #.#.#.2
sub.domain2.tld: #.#.#.2
addondomain.tld: #.#.#.2
other.domain3.tld: #.#.#.3
*: #.#.#.1