Thursday, August 13, 2015

Owner root gets "Operation not permitted" on chmod, rm -rf

Bug : rm -rf, chmod as root: permission denied?

Solution :

$ chattr -i dir
$ rm -rf dir

Saturday, June 6, 2015

500 error with suphp configuration

Solution :

Use it in your .htacess

#Use PHP 5.4
# Use PHP54 as default
#AddHandler application/x-httpd-php54 .php
<IfModule mod_suphp.c>
    suPHP_ConfigPath /opt/php54/lib
</IfModule>


Wednesday, May 13, 2015

Reset or Set Default Permissions to Domain for Files and Directories in cPanel

If your permissions are incorrect for files and folders in a webroot domain more than likely you’ll get a server 500 error. Here is how to fix them by resetting, especially using the correct defaults for a cPanel domain or other web server for files and directories.


You can bulk fix these permissions on the command line, with these commands:
cd /home/yourdomain/public_html/
 
Go to your webroot directory

find . -type d -exec chmod 755 {} \;
 
Fix the permissions on directories

find . -type f -exec chmod 644 {} \;
 
Fix the permissions on files

Sunday, May 10, 2015

Symlink find

find /home*/*/public_html -type l >> /root/symlinks.txt

Sunday, April 26, 2015

Cryptolocker Virus Removal


Restart your computer. Before the Windows Interface loads, enter F8 key continuously. Select ‘Safe Mode with Networking’ and hit Enter. Or you can follow the steps below to get rid of the virus manually.
  • Open Windows Task Manager by clicking CTRL+ALT+DELETE or CTRL+SHIFT+ESC. Look for the Cryptolocker processes. Right click to finish them.
  • Go to Start menu and click Control Panel and look for the Folder option. Now click on the View tab and tick Show Hidden Files and Folders and untick Hide Protected Operating System Files. Click OK.
  • Go to Start menu and click Search Programs and Files. Look for the files created by Cryptolocker and delete them.
  • By pressing Windows+R open Registry Editor. In the Run box, type in regedit and hit OK.
  • Reboot your computer and you should find that the Cryptolocker Virus has been removed. 
Source : avstrike.com

Note: More help need, buy my gigs from here

Thursday, April 23, 2015

Find all SSH users besides you

 To find all users beside you , use this command :

grep ssh /var/log/secure|grep Accepted

apache problem


If you have any apache problem with lynx , just run this script and it will fix all.

/scripts/upcp --force