Setting your PHP handler to SuPHP, which will cause PHP scripts to run as the user instead of “nobody”. Note that it has stricter permissions requirements than the other handlers–files must be 644, directories 755
Entries Tagged as 'Linux Tricks'
PHP handler SuPHP
November 9th, 2009 by EZ linux · 1 Comment
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts · Linux Tricks
How to find a spammer using nobody on a cpanel server
November 5th, 2009 by EZ linux · No Comments
There is two ways I know to accomplish this, the first seems to be better but I am still testing it out. The first way is another great script from Script Mantra called Sendmail Logger. Once installed and php has Mail Headers compiled with it then you can see easily whats being sent through nobody [...]
Tags: Cpanel and WHM · Linux Tricks
Creating a info.php page
October 27th, 2009 by EZ linux · No Comments
Simple create a file called info.php in your public_html folder then add this codd to the page and save: <html> <head> <title>PHP Test</title> </head> <body> <?php phpinfo(); ?> </body> </html>
Tags: Linux Software / Scripts · Linux Tricks
301 redirect
October 12th, 2009 by EZ linux · No Comments
Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^dwhs.com [nc] rewriterule ^(.*)$ http://www.dwhs.com/$1 [r=301,nc] This will redirect dwhs.com to www.dwhs.com (change dwhs.com to your domain name) Step by step for DWHS Customers: log into your cpanel: www.your-main-domain.com/cpanel/ Click file manager and click the option to see hidden files Make sure your in the folder public_html or www [...]
Tags: Cheat Sheets · Linux Tricks
Apache error log settings
September 29th, 2009 by EZ linux · No Comments
This directive adjusts the verbosity of the messages recorded in the server’s error logs (see the ErrorLog directive). The following levels are available, in order of decreasing significance: emerg (emergencies: system is unusable); alert (action must be taken immediately); crit (critical conditions); error (error conditions); warn (warning conditions); notice (normal but significant condition); info (informational [...]
Tags: Cheat Sheets · Linux Software / Scripts · Linux Tricks
Linux rescue CD
September 23rd, 2009 by EZ linux · No Comments
SystemRescueCd is a Linux system rescue disk available as a bootable CD-ROM or USB stick for administrating or repairing your system and data after a crash. It aims to provide an easy way to carry out admin tasks on your computer, such as creating and editing the partitions of the hard disk. It comes with [...]
Tags: Linux Back Up · Linux Software / Scripts · Linux Tricks
Apache httpd failed ( apache error checking command )
September 8th, 2009 by EZ linux · No Comments
If apache ( httpd ) fails and says something like: httpd has failed, please contact the sysadmin. Or just that is can’t work, the first step is to run the Linux command: service httpd configtest This should show any errors. If you still get a error then you need to monitor the error_log file while [...]
Tags: Linux Commands · Linux Software / Scripts · Linux Tricks
Install ffmpeg and ffmpeg-php
August 17th, 2009 by EZ linux · 2 Comments
There is a great auto installer available thanks to Script Mantra, but first you need to install Dialog: yum -y install dialog Then your ready to download and install the ffmpeg installer: cd /usr/src wget http://scriptmantra.info/scripts/AAST_ffmpeg_installer_5.0.6b chmod +x AAST_ffmpeg_installer_5.0.6b ./AAST_ffmpeg_installer_5.0.6b What the script delivers: *libogg *libvorbis *libvorbisenc *libvorbisfile *libamrnb *libamrwb *libgsm *libtheora *Lame *libschroedinger *twolame [...]
Tags: Linux Commands · Linux Software / Scripts · Linux Tricks
Adding a Symlink
August 16th, 2009 by EZ linux · No Comments
ln -s linktext linkname linktext is the location of the actual file. linkname is the redirect path ln -s /backup/logs /var/logs ln -s /home/cpanel /var/cpanel
Tags: Linux Commands · Linux Tricks
Check disk space in Linux
August 15th, 2009 by EZ linux · No Comments
There are plenty of tools with which you can check your disk space. However, Linux already has a built in function to show you just what you need to know. Open a terminal window or push (ctrl+alt+F1 to go to console) and type: # df You will see something like this(your output may be different, [...]
Tags: Linux Tricks
