Use Accordingly. ¯\_(ツ)_/¯

/VPS storage full

Once storage is above 80% it will cause performance issues and if storage is 100% your cPanel and website might not work and you will be able to access account only using SFTP or SSH using root.

You can SSH on the account using root and use the following command to check the folders having maximum storage df -h to check all du -h –max-depth=1

You can check the following link for exact steps to connect using SFTP on account: http://carvertown.com/accessing-server-sftp/

You can enable or disable backups on either Cpanel->performance->disk management or from WHM on WHM->backups->backup configuration.

I will create a ticket to the admins on this. The admin who takes the ticket will send you an email with the list of backups and you can reply to this email with the ones you wish to remove.

You can SFTP into the account using the following configurations:

Server/host:

Port number: 22

Username: root

and the password is the root password which you can set from: cPanel > Performance > Access Management.

You can type in “/backup/cpbackup” in the “Remote host:” section.

Then press enter. this will bring you to the folder where the daily, weekly or monthly backup folders are stored.

/Enable Gzip

enable the gzip compression from httpd.conf https://knackforge.com/blog/karalmax/how-enable-gzip-compression-apache

  • To enable Gzip compression by inheriting mod_deflate apache module, paste the following rewrite rules onto your .htaccess file.
  • <IfModule mod_deflate.c>     # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0678 no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent </IfModule>

Database

  • If you see database tables crashed, log into the server via root and run the following commands:
  • mysqlcheck -A –auto-repair –force &amp; ;
  • mysqlcheck -A -o &amp;;
  • This will try to repair all tables of all databases and optimize them.

  • mysqlcheck -A –auto-repair –force;
  •   mysqlcheck -A -o

mysqlcheck -c databasename table

mysqlcheck -r databasename table

mysqlcheck -o databasename table

/Innodb repair or optimize:

add this code in the my.cnf file: innodb_force_recovery=1

Database repair

myisamchk sadunyao_boutik  162.144.216.27

https://www.rosehosting.com/blog/optimizing-and-repairing-mysql-databases-with-mysqlcheck/

/rename

It is not recommended to change the primary domain on the VPS accounts. This process may break the server and it will also delete all the sub cPanel accounts.

There will be no change for website files. Server may break as it is designed with the reference to current main domain. But we can fix it in case it breaks , but we may need 24 to 48 hours.

It is recommended to take backups before proceeding further.

Do you wish to proceed with the change process despite this ?

/To know about a process

strace -p 6112

grep TracerPid /proc/6112/status

/JIRA

https://jira.endurance.com/browse/BSIT-686  Failed to Load IP List in Performance tab

https://jira.endurance.com/browse/BSIT-450  Drive randomly gets deleted

https://jira.endurance.com/browse/BSIT-308  Drives Detaching after Renewal

https://jira.endurance.com/browse/BSIT-147  Error while creating the resold accounts

https://jira.endurance.com/browse/BSIT-105  Missing drive in &quot;Disk Management&quot; – No Error

https://jira.endurance.com/browse/BSIT-253  SiteLock purchased but not accessible

https://jira.endurance.com/browse/BSIT-1004  Bluehost cpanel services redirecting to login page

https://jira.endurance.com/browse/BSIT-999  File Manager – Edit / Code Edit text box not expanded

https://jira.endurance.com/browse/BSIT-1042  Broken Resold theme

https://jira.endurance.com/browse/BSIT-1192  disk usage showing N/A

https://jira.endurance.com/browse/BSIT-971  Reseller Quota Issues

https://jira.endurance.com/browse/BSIT-1076   File Manager – Uploading 2MB+ files will not complete/413 request Entity too large in phpMyAdmin

https://jira.endurance.com/browse/BSIT-1136   Failed to receive a valid json response from server request for upgrade to ls_030 on host with domain fairtradebanker.com.

/Enable wpcli

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x wp-cli.phar && mv wp-cli.phar /usr/local/bin/wp

/Wordpress CLI installation :

  • 1) Run the following as root
  • curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
  • chmod +x wp-cli.phar
  • mv wp-cli.phar /usr/local/bin/wp

  • ** These commands should run in respective domain directory where WP is installed **
  • To check whether wp-cli installed :  wp –info
  • To replace core files/updated WP version :  wp core download –force
  • To check config file:  wp config list
  • To check site URL :  wp option get siteurl
  • To update site URL :  wp option update siteurl http://domain.com/
  • To create the admin user :  wp user create username email@example.com –role=administrator
  • To disable all plugins :  wp plugin deactivate –all
  • To enable all the plugins :  wp plugin activate –all
  • To check theme status :  wp theme status
  • To install and activate default theme :  wp theme install twentysixteen –activate
  • To repair the database :  wp db repair
  • To import xml file :  wp import filename.xml –authors=create
  • To export the database :  wp db export database.sql
  • To import the database:  wp db import database.sql
  • To search and replace :  wp search-replace OLD URL NEW URL
  • To create admin login user :  wp user create username email@email.com –role=administrator
  • For more info : https://developer.wordpress.org/cli/commands/

/deactivation limits:

https://confluence.endurance.com/pages/viewpage.action?spaceKey=BHAL&title=Excessive+Files+and+MySQL+Policy

/theme reinstall

yum clean all && yum -y -q update && yum -y -q reinstall cpanel_bluehost_theme

/paper

To: shyam@diya.net, shrinivas.b@glowtouch.com, hrteam@glowtouch.com, Srinivas Rao srinivasrao@diya.net, prakash@glowtouch.com, gkshetty@glowtouch.com, Sushan Kolloor sushan@diya.net, hris@glowtouch.com, Rickson Louis DCunha diya-rickson@diya.net, Nithan Saldanha diya-nsaldanha@diya.net, Vinay Bangera vinay@diya.net Devee Shetty diya-dsshetty@diya.net

Dear Sir/Madam,

I am here by tendering my resignation from my position of Web Advisor 2 at Diya systems.

I thank you for giving me the opportunity and I am grateful for your kind support throughout my tenure. Working for Diya Systems has been a great learning experience. I have grown in many ways during my time here and I appreciate the opportunities provided for me by Diya Systems.

Please accept my resignation with effect from <Date of submission>. My last day of employment will be <Date of last working> as I am moving to Bangalore. I would also request you to provide me with the required documents at the end of the notice period.

Name  :

Emp.No:

DOJ   :

Sincerely,

Name

Web Advisor 2

/filezilla

I am sorry you are having this problem. With a recent update to FileZilla they have changed the default connection Encryption.

We do not currently support FTPS (TLS). This means that the Quick Connect Bar might no longer work.

Please use the Site Manager (https://wiki.filezilla-project.org/Site_Manager). You will use the same FTP login information, but you need to change the Encryption to “Use Plain FTP”.

1) Open FileZilla

2) At the top left of FileZilla, select File > Site Manager

3) Within the site manager, enter in the following:

Host:  Your account IP address or ftp.yourdomainname.com

User: cpanel username or ftp username

Pass: cpanel or ftp password

4) There is a dropdown labeled “Encryption”. Select Only Use Plain FTP (insecure).

5) Press Connect

/spfdkim

 DKIM

http://dkimcore.org/tools/keys.html

SPF

https://mxtoolbox.com/SPFRecordGenerator.aspx

https://www.dynu.com/NetworkTools/SPFGenerator

https://www.royhochstenbach.com/projects/spfgenerator/

 /dkim

/var/cpanel/domain_keys/pubic/<Domainname>

/var/cpanel/domain_keys/private/<Domainname>

/zabbix

  • http://zabbixmon.corp.endurance.com/zabbixmon/
  • Click on the tab Provo VPS/SAN to check for SAN or Node related issue or contact EMC-Bluehost or Provo System Operations Team.
  • It seems the server is showing some maintenance going on. I will check further and get back to you in 4-5 minutes.
  • The admins would be fixing this at the earliest. There are a few accounts that has got affected by this issue.
  • There seems to be a security update going on in the server. I apologize for the inconvenience. The admins are working on fixing this at the earliest.
  • There seems to be some issue with the SAN box where the files are stored.
  • I understand the situation. Sadly we do not have an ETA but our admins are already working on it.
  • This issue is entirely from our end. The admins know of this and are working on fixing this right now.
  • I understand that this has caused you inconvenience. I apologize for this. The admins will clear this as soon as possible.
  • server listed in zabbixmon.

 /unsuspend

https://confluence.endurance.com/display/BHAL/How+to+Scan+Reseller+Accounts+for+Malware

https://i.bluehost.com/cgi-bin/admin/resold_deactivate/cp:

https://i.justhost.com/cgi-bin/admin/resold_deactivate/cp:

https://i.hostmonster.com/cgi-bin/admin/resold_deactivate/cp:

https://i.fastdomain.com/cgi-bin/admin/resold_deactivate/cp:

/To check failed login attempts:

# grep “Failed password” /var/log/auth.log

/oom

  • Server was out of memory and stuck and I had to power cycle that box to bring the sites back online, you would  need to optimize the scripts to bring the resource usage down and common recommendations are to optimize scripts databases etc and to reduce traffic by resorting to CDN such as Cloudflare.
  • Since static contents like images,. css and javascript gets cached on a CDN server, the overall requests incoming to the server will reduce as the resources will be fetched from the nearest CDN server rather directly from the server.

/performance / optimize

Un-optimized website scripts on the server is similar to using an application on your phone which is not coded correctly. The application always uses more resources that it actually require, may crash from time to time and may even cause the phone to be stuck.

  • Getting bad Gateway means having many processes, you’re using too many resources. You need to optimize and clean up the account.
  • So your account appears to be throttled due to it using too many of the server’s resources, you can read about what throttling is and what causes it here
  • https://my.bluehost.com/cgi/help/564
  • To decrease your load times I would definitely recommend using the free service CloudFlare
  • https://my.bluehost.com/cgi/cloudflare
  • Some other things that can contribute to this are: page size, how much content is on a single page and how much data it has to load on that page, image size/resolution,
  • video/audio/media size. Database size, database optimization, long queries, erroneous queries, non-cached sites, broken scripts, and much more.
  • The best way to start, is to disable all plugins, and navigating around the site. If it’s significantly faster, you know one of the plugins you are using is definitely
  • causing the slowness.
  • Then re-activate the plugins one by one, and navigating around and seeing how it does after each one you activate.
  • When you activate one that causes the site to become super slow, you know you found the plugin causing the issue.
  • The following articles will help you work through many of these issues.
  • http://gtmetrix.com/wordpress-optimization-guide.html (This site will analyze your pages and help you optimize)
  • http://codex.wordpress.org/WordPress_Optimization (This site deals specifically with WordPress optimization)
  • https://www.bluehost.com/cgi/help/000496 (This deals with a very simple repair/optimization on your databases)
  • https://my.bluehost.com/cgi/help/435 (More advanced, not required, but great optimization nonetheless)
  • https://www.keycdn.com/blog/website-performance-optimization/
  • Images: https://my.bluehost.com/hosting/help/106
  • Database: https://my.bluehost.com/hosting/help/496
  • WordPress: https://my.bluehost.com/hosting/help/2312
  • https://techtips.io/wordpress/optimizing-wordpress-for-free-from-start-to-finish.html
  • To help performance
  • WordPress: https://my.bluehost.com/hosting/help/591
  • Database: https://my.bluehost.com/hosting/help/wordpress-meta

/How to optimize your site:

  • Images: https://my.bluehost.com/hosting/help/106
  • Database: https://my.bluehost.com/hosting/help/496
  • Database advanced : https://my.bluehost.com/hosting/help/435
  • WordPress: https://my.bluehost.com/hosting/help/2312
  • https://gtmetrix.com/wordpress-optimization-guide.html
  • To help performance
  • WordPress: https://my.bluehost.com/hosting/help/591
  • Database: https://my.bluehost.com/hosting/help/wordpress-meta
  • Why website slow : https://my.bluehost.com/hosting/help/481
  • if it’s anything else you will need a developer

/reseller deprecated

  • The Reseller service is considered deprecated. With the exception of security updates we will no longer be developing bug fixes or offering support for Reseller accounts.
  • If you continue to experience issues with your Reseller account, I recommend switching over to an alternative hosting provider- ResellerClub.com.
  • ResellerClub will be provide ALL levels of customer support once you sign on with them.
  • Any questions about their service, capabilities, or other issues should be directed to their support team.
  • ResellerClub may provide managed migration services for cPanel/WHM based Resellers.

/time zone

To change the time zone in Horde, follow these steps:

Log in to Horde.

In the left-hand pane, click Options, and then click Global Options.

Under Your Information, click Locale and Time.

Select your time zone, and then click Save Options.

Roundcube

To change the time zone in Roundcube, follow these steps:

Log in to Roundcube.

Click Settings.

Click User Interface.

Select your time zone, and then click Save.

SquirrelMail

To change the time zone in SquirrelMail, follow these steps:

Log in to SquirrelMail.

Click Options.

Click Personal Information.

Under Timezone Options, select your time zone, and then click Submit

/To enable PHP extension, please follow these steps :

  • 1) Login to the WHM of the server.
  • 2) Type ‘easy’ into the search field in the top left of WHM.
  • 3) Under the Software category, click on EasyApache 4.
  • 4) In the Currently Installed Packages section, click on the Customize button.
  • 5) Click on the PHP Extensions option from the left.
  • 6) In the Search field, type to enter ‘fileinfo’.
  • 7) Click the toggle button(s) next to the PHP version(s) that you would like the PHP extension installed for.
  • 8) Click the Review option from the left.
  • 9) Confirm the options you selected are listed under the “Please review the following list of packages you are about to install by provisioning this profile.” section. Then, click the Provision button.
  • 10) Once the installation is completed, you will receive a message: “The provision process is complete”. Click the Done button to finish.
  • https://www.inmotionhosting.com/support/edu/easyapache/easy-apache-4/how-to-install-a-php-extension-using-easyapache-4

/testphpmailer

<?php $to = ‘alberto@ideatranslations.com’; $from = ‘dtp@ideatranslations.com’; $subject = ‘Hi!’; $body = ‘Hi,\n\nHi This is a test mail.’; if (mail($to, $subject, $body,’From: $from’)) { echo(‘<p>Message successfully sent!</p>’); } else { echo(‘<p>Message delivery failed…</p>’); } ?>

/SSL validation

/cgi/ssl_certs/resend_email/order#/cgi/ssl_certs/start_validation/lineitem#

/cgi/ssl_certs/resend_email/order#

/cgi/ssl_certs/start_validation/lineitem#

so the top one is resend email, you need the order number at the end.

and start validation is the line item number on the pending task

/Permfix

file permissions – read(4), write(2), execute(1)… default- folder-755,file-644

to edit file permission – cPanel->filemanager, ftp clients, chmod in SSH

chown -R user_name : folder_name.

chown username: file name

/Force permission

find2perl ~/public_html -type f -print -exec chmod 644 {} \; | perl;

find2perl ~/public_html -type d -print -exec chmod 755 {} \; | perl;

/Turn off autodiscover.xml

  • https://documentation.cpanel.net/display/CKB/AutoConfig+and+Autodiscover

/FTP accounts page or file manager showing 500 internal server error:

  • restart cphulkd: run this command in SSH as root:
  • /scripts/restartsrv_cphulkd

/Access cPanel without password

whmapi1 create_user_session user=root service=whostmgrd locale=en

whmapi1 create_user_session user=myowndom service=cpaneld locale=en

https://www.interserver.net/tips/kb/access-cpanelwhm-without-password/

/logs

https://forums.cpanel.net/threads/vps-down-what-logs-file-need-to-be-checked.286351/

  • You can see the IPs of the last logins from File manager -> home directory -> .lastlogin file.
  • There are two main locations where logs are kept on Dedicated and VPS servers. The /usr/local/cpanel/logs directory and the /var/log/ directory.
  • Here is a list of the logs common to each directory.
  • /usr/local/cpanel/logs
  • access_log: cPanel access log for both cPanel and WHM
  • error_log: cPanel error log
  • license_log: cPanel license log
  • login_log: cPanel user login log
  • /usr/local/cpanel/logs
  • access_log: cPanel access log for both cPanel and WHM
  • error_log: cPanel error log
  • license_log: cPanel license log
  • login_log: cPanel user login log
  • melange.log: cPanel chat server log
  • melange_msg.log: cPanel chat server message log
  • stats_log: cPanel web stats log
  • /var/log/
  • messages: Contains global system messages like mail, cron, daemon, kern, auth, etc.
  • bandwidth: cPanel total bandwidth logs for the entire server
  • chkservd.log: chkservd service log
  • clamav: clamav log directory
  • cpupdate.log: cPanel update log
  • exim_mainlog: Exim email transaction log
  • exim_paniclog: Exim error log
  • exim_rejectlog: Exim rejected email log
  • maillog: Transaction and login log for all mail services
  • pgsql: PostgreSQL log file

/http error in uploading image in wordpress dashboard: add this code in function.php of theme:

  • add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );
  • function change_graphic_lib($array) {
  • return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ ); }

/to fetch website from another host

  • <IfModule mod_rewrite.c>
  • RewriteEngine On
  • RewriteCond %{HTTP_HOST} ^empresa\.tintasverginia\.com\.br$
  • RewriteRule ^(.*) http://v3guihlynya.agenciaad.com%{REQUEST_URI} [P]
  • </IfModule>

/enable mod_rewrite

https://www.e2enetworks.com/help/knowledge-base/how-to-enable-mod_rewrite-on-apache-on-centos/

/validation

To ensure security, Comodo validates domain ownership before issuing all SSL certificates. Normally done through a DNS CNAME record, Bluehost will work to take care of the validation for you. Please avoid deleting any CNAMEs you don’t recognize or changing your domain’s nameservers until after your certificate is issued. We will safely delete the CNAME once the certificate is installed.

/moodle

moodle latest version fixing code

Add this code to my.cnf

Then restart mysql

  • innodb_file_format = Barracuda
  •   innodb_large_prefix
  •   character-set-server = utf8mb4
  •   collation-server = utf8mb4_unicode_ci
  •   skip-character-set-client-handshake
  •   mysql
  •   default-character-set = utf8mb4
  • moodle latest version fixing code Add this code to my.cnf
  • Then restart mysql
  • https://docs.moodle.org/35/en/MySQL_full_unicode_support

/run this command in SSH as root for seeing the TLS version:

openssl ciphers -v | awk ‘{print $2}’ | sort | uniq

/SSH2

  • command to check : php -m | grep ssh2
  • http://programster.blogspot.com/2013/06/centos-64-install-ssh2-extension-for-php.html

/GDPR:

/to generate full backup of cpanel.

backup will be in /home

  • /scripts/pkgacct username

/Masked Redirect:

  • <html>
  • <frameset rows=’100%’ cols=’*’ border=’0″ framespacing=’0′ frameborder=no>
  • <frame src=’http://DESTINATION_DOMAIN.COM’ SCROLLING=’yes’>
  • </frameset>
  • </html>

/verification doc

You would have to send these documents to verification@bluehost.com for completing the verification:  1. A government-issued ID showing the name of the account owner, 2. Some form of official documentation substantiating address, such as a utility bill in hard copy, or other business/personal documents.

Due to the new privacy and security rules in Europe and other places, the verification is now mandatory.

For verification, we require a color copy of the valid government-issued ID and a Valid business identification, such as a business license, certificate of incorporation, DBA/Fictitious Name documentation, or IRS 501(C)3 “Determined Letter” (nonprofit organization).

/free ssl

Unfortunately, Free SSL cant be auto-renewed. It needs to be renewed manually. But we have an option for free SSL to set it to auto-renew which doesn’t work. This is a known bug. The admins are working on fixing this. I apologize for the inconvenience you are experiencing.

/to check file count:

for i in /home/USERNAME/*; do echo $i; find $i |wc -l | sort ; done

/ssl manual install. ssl error: Could not list the SSL certificates on the box

https://confluence.endurance.com/pages/viewpage.action?spaceKey=BHAL&title=Troubleshooting+Comodo+SSL

read -p “Domain? ” DOMAIN; openssl req -nodes -newkey rsa:2048 -keyout $DOMAIN.key -out $DOMAIN.csr -subj “/C=US/ST=Utah/L=Orem/O=Bluehost/OU=Support/CN=$DOMAIN” && openssl x509 -req -days 365 -in $DOMAIN.csr -signkey $DOMAIN.key -out $DOMAIN.crt && CERT=$(cat $DOMAIN.crt) && KEY=$(cat $DOMAIN.key) && KEY=$(python -c “import urllib; print urllib.quote(”’$KEY”’)”) && CERT=$(python -c “import urllib; print urllib.quote(”’$CERT”’)”) && whmapi1 installssl domain=$DOMAIN crt=$CERT key=$KEY

AutoSSL in reseller and Shared accounts: https://docs.google.com/document/d/1QQZgIEGVAMn2Nk0TiGvOvvWqio2RsRsBxlexg1fmmiY/edit

/migration:

https://www.bluehost.com/professional-services/sitetransfer

/Warnings in website

  • define(‘WP_DEBUG’, false);
  • output_buffering = On
  • ^^ enable this in php.ini

/Unmanaged Server:

You will be responsible for properly maintaining and optimizing your server and websites. If you do not have experience maintaining Linux-based servers, we recommend hiring someone who does.

/Downtime: File migration:

“There will be downtime during the upgrade as we are physically moving your files from one server to another.”

/DNS Settings:

Your IP address will change when upgrading to VPS hosting. If your domain name is not registered with us, you will need to update your DNS records to your new dedicated IP after the upgrade. It takes about 4 – 24 hours to propagate to the new IP, after which your website will come back online.

/Security:

VPS servers are just as vulnerable to attacks as our shared servers and generally receive more traffic — which can result in more attacks. We highly recommend using Sitelock Fix or SiteLock Prevent for automatic malware removal.

/Disable access to a subdomain

  • The following is an example ‘.htaccess’ code which provides a thorough means of making the Addon domain folders, and their contents, invisible through the main domain by forcing a “404 Not Found” error. This will work both for web browsers and search engines:
  •   RewriteEngine On
  •           RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ NC
  •           RewriteCond %{REQUEST_URI} ^/addonfolder/(.*)$
  •           RewriteRule ^(.*)$ – R=404
  • The example rewrite rules will force ‘http://www.domain.com/addonfolder/’ and any of its contents to report the “404 Not Found” error.
  • Be sure to replace the ‘domain.com’ in the example with your hosting account’s main domain address and ‘addonfolder’ with the name of the folder for your Addon domain.
  • This can also be applied to multiple Addon domain folders through the use of the OR option as in the following example in which 3 Addon folders are being reported as “404 Not Found” when accessed through the main domain:
  •   RewriteEngine On
  •           RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ NC
  •           RewriteCond %{REQUEST_URI} ^/addon1/(.*)$ OR
  •           RewriteCond %{REQUEST_URI} ^/addon2/(.*)$ OR
  •           RewriteCond %{REQUEST_URI} ^/addon3/(.*)$
  •           RewriteRule ^(.*)$ – L

/For not showing files and folders listed in website without index file.

Options -Indexes

/FTP folder aaccess disable:

http://xmodulo.com/make-file-immutable-linux.html

/pure FTP

Pure-FTPd is generally regarded as faster FTP than Pro FTPd, though it will not display stats in the stats menu. Pure-FTPd will be useful in instances where bandwidth usage is less important than file transfer speed. Pure-FTPd supports virtual user quotas, whereas ProFTPd does not.  PureFTPd is very much secure then ProFTP. Licensed under the BSD license, PureFTPd  can be installed in any Linux Based system but not Windows.

ProFTPd will display your bandwidth usage, allowing you to monitor the amount of bandwidth your FTP sessions are using. ProFTPd is recommended in instances when monitoring your bandwidth is of the utmost importance; for example, on a limited bandwidth hosting plan. ProFTPd is a modular FTP server which very much used. Most of the control panels support this one. There is a lot of features awailable in ProFTP, while a very less is being used in a cPanel perspective.  It is also using the GPL for licensing. Configuration of ProFTPd issimple, and example configuration files can be found easily over the net.

/When using https on OHWP accounts an additional bit of code needs to be added to wp-config.php files:

  • /* Allows IP to be passed from remote host to server */
  • if (isset($_SERVER”HTTP_X_REAL_IP”))
  • $_SERVER”REMOTE_ADDR” = $_SERVER”HTTP_X_REAL_IP”;
  • /* Allows SSL request to pass through nginx proxy */
  • if ($_SERVER’HTTP_X_FORWARDED_PROTO’ == ‘https’)
  • $_SERVER’HTTPS’=’on’;

/Set ROOT Password:

  • Login to your cPanel
  • Click the Performance Page.
  • Scroll down to the Access Management section.
  • Click the Root tab.
  • Under Password field, Enter the New Root Password. Click on Update.

/ftp login

Server/host:

Username:

Password: Your cPanel password.

Port: 21

/.htaccess

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ – L

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php L

</IfModule>

# END WordPress

/Email Reputation Management

“We do not actively monitor email services for VPS hosting accounts they way we do for shared hosting. You will be responsible for your own email management.

Be aware that unethical email practices, such as spamming and other malicious activity, will result in your server being blacklisted.”

/Blacklist

https://support.google.com/a/answer/27642?hl=en   gmail blacklist

https://glockapps.com/blog/remove-ip-address-hotmail-outlook-blacklist/   outlook ip blacklist

https://support.microsoft.com/en-us/getsupport?oaspworkflow=start_1.0.0.0&wfname=capsub&productkey=edfsmsbl3&locale=en-us&ccsid=635714983457075069&forceorigin=esmc

https://sender.office.com

/Maintenance page html code

<!doctype html>

<title>Site Maintenance</title>

<style>

body { text-align: center; padding: 150px; }

h1 { color:  #FF5733 ; font-size: 50px; }

body { font: 20px Helvetica, sans-serif; color: #333; }

article { display: block; text-align: left; width: 650px; margin: 0 auto; }

a { color: #dc8100; text-decoration: none; }

</style>

<article>

<h1>We&rsquo;ll be back soon!</h1>

<div>

<p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. We&rsquo;ll be back online shortly!</p>

<p>&mdash; </p>

</div>

</article>

/reimage:

  • we can only reimage to centos7 with cpanel
  • mysql comes by default
  • PCRE (Perl Compatible Regular Expressions) will be enabled by default
  • nginx they will have to install from their end

/clear cache memory

sync; echo 1 > /proc/sys/vm/drop_caches

/Too many redirects

  • When using https on OHWP accounts an additional bit of code needs to be added to wp-config.php files:
  • /* Allows IP to be passed from remote host to server */
  • if (isset($_SERVER[“HTTP_X_REAL_IP”]))
  • $_SERVER[“REMOTE_ADDR”] = $_SERVER[“HTTP_X_REAL_IP”];
  • /* Allows SSL request to pass through nginx proxy */
  • if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’)
  • $_SERVER[‘HTTPS’]=’on’;

/HTML redirect on page load

https://stackoverflow.com/questions/46498522/html-redirect-on-page-load

/ Server antivirus – Clam AV

ClamAV is an open-source program for detecting viruses, malware and other malicious coding/files.

It is a plugin for the cPanel and can be installed and enabled for all users on the VPS or Dedicated server.

/magento error:

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

https://www.neostrada.com/support/article/503-service-unavailable-error-magento.html

/There is a setting that determines how long those frozen messages are kept until they are deleted

exim -bP | grep frozen

/to disable cache…add the code in .htaccesss file

# DISABLE CACHING

<IfModule mod_headers.c>

Header set Cache-Control “no-cache, no-store, must-revalidate”

Header set Pragma “no-cache”

Header set Expires 0

</IfModule>

/import database

mysql -p -u DB_username Database_name <backupfile.sql

/manage IP from WHM

/what is the timeout time for logged in users to the cpanel?

no there is no such limit

/increase email attachment size limit:

WHM -> exim Configuration Manager -> Advanced Editor -> Add additional Configuration Setting -> message_size_limit

/iphone email error

Cannot send mail A copy has been placed in your outbox.

http://www.iphonetopics.com/cannot-send-mail-it-does-not-allow-relaying/

/configure exim outgoing ip address

https://documentation.cpanel.net/display/CKB/How+to+Configure+the+Exim+Outgoing+IP+Address

/set alerts or notification.

WHM -> Home>ServerContacts>ContactManager

/Bluehost Advanced Hosting Tips amruth doc

https://docs.google.com/document/d/1APf028W_fM0KoRaM-2WGgLpP4WTRvYpmDyalDUeu7ds/edit

/postfix

https://www.digitalocean.com/community/tutorials/how-to-install-postfix-on-centos-6

/http error in uploading image in wordpress dashboard: add this code in function.php of theme:

add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );

function change_graphic_lib($array) {

return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ ); }

/disable emails of one subcPanel account:

whmapi1 hold_outgoing_email user=example

/Restrict email attachment quota

http://blog.thcservers.com/whm-how-to-change-or-limit-email-attachment-size/

/Modify Apache Virtual Hosts with Include Files

https://documentation.cpanel.net/display/EA4/Modify+Apache+Virtual+Hosts+with+Include+Files

/Increase /tmp folder size:

https://serverfault.com/questions/730970/increasing-the-size-of-my-tmp-folder

/TLS version

run this command in SSH as root for seeing the TLS version:

openssl ciphers -v | awk ‘{print $2}’ | sort | uniq

/change IP for email blacklist:

You need to set the “Send mail from account’s dedicated IP address” to ON. in WHM -> Exim Configuration Manager.

Then change the IP of the account from WHM -> List accounts -> “Change IP”

/submit website to google using webmaster tool

https://www.google.com/webmasters/tools/submit-url?pli=1

https://www.google.com/webmasters/tools/googlebot-fetch

/ssl format converter

https://www.sslshopper.com/ssl-converter.html

/Virtfs clear

/scripts/clear_orphaned_virtfs_mounts

/redirect

https://gist.github.com/ScottPhillips/1721489

/exclude virtfs and check breakdown

du -hx –max-depth 1 –exclude=virtfs | sort -hr

/top IPs hitting the website

  • awk ‘{print $1}’ domain.com   | sort | uniq -c | sort -rn | head

/postal code

http://www.geopostcodes.com

/Background color –

https://confluence.endurance.com/pages/viewpage.action?spaceKey=BHIP&title=Deactivated+CPM+Colors

Green- means the account has been disabled for a chargeback or other billing issue handled by Account Assessment.

Red- means the account has been flagged for fraud.

Light Purple- These accounts have been deactivated because they were found on the Specially Designated Nationals list.

Dark Purple- This means there is a problem with the verification of the account. Please open a Fraud helpline for assistance.

Black- These accounts have been deactivated for Terms of Service violations that are technical in nature (malware, spam, performance issues, etc). Open a ToS helpline for assistance.

Teal- These accounts have been deactivated for Terms of Service violations that are content related (copyright, defamation, personal identifying info, adult content, etc).

Open a Compliance helpline for assistance.

/Bluehost address

Bluehost, Inc.

ATTN: Billing

10 Corporate Drive

Burlington MA 01803

/You can create a website and add google ads.

https://www.google.co.in/adsense/start/#/?modal_active=none

/database access using node-red

workbench   Port: 3306 server name as IP.

You will need to whitelist the IP first.

https://my.bluehost.com/hosting/help/308

/Pre-transfer checklist-

domain unlocked, not expired, registered with us atleast for 60 days, donot expirein 7 days

whois privacy disabled

admin email updated

obtain auth code from losing registrar

/enable symlinks ->

WHM -> apache configurations -> global configurations.

/gproxy8.mail.unifiedlayer.com.

/soproxy1.mail.unifiedlayer.com – chatkeys.com shared blacklisting.Greylisting.

The email that has been delayed 20 minutes or longer due to greylisting you need to provide a few things.A reason why the email greylisting is necessary.

Assurance that our filters are working as intended and are not broken or having any types of errors causing this issue for our customer.

We understand that email is pivotal for everyone. Greylisted emails are being flagged as possible spam. Normally we would block these messages,

but instead we scrutinize these messages to make sure that they are not spam and deliver them as quickly as possible. It only takes one bad email to get

our servers blocked, and if a server is blocked, all of your emails can bounce and your recipients will never receive them. Greylisting, as a whole,

can be summed up as Sender Reputation.

/robots.txt

google crawlers robots.txt

http://www.robotstxt.org/robotstxt.html

/database size

https://confluence.endurance.com/display/BHIP/Shared+Hosting

/mobile phone emulator – to know how website will look like in cellphone-  http://www.mobilephoneemulator.com/

/gsuite add users

https://www.youtube.com/watch?v=FMEqPUdUX-k

https://support.google.com/a/answer/33310?hl=en

/Turn off autodiscover.xml

https://documentation.cpanel.net/display/CKB/AutoConfig+and+Autodiscover

/to not show files and folders when there is not index file.

Options -Indexes

/European Union’s (EU) new data privacy laws

The General Data Protection Regulation, or the GDPR, which will go into effect on May 25, 2018.

privacy@endurance.com

https://my.bluehost.com/cgi/help/2657

/enable ports in cPanel –

CM need to install 3rd party firewall

https://forums.cpanel.net/threads/how-to-open-some-ports-from-my-whm-cpanel.148669/

/502 Bad Gateway nginx/1.14.0

# service nginx restart

/drupal error 500

https://www.drupal.org/forum/support/upgrading-drupal/2016-07-12/drupal-750-http-error-500

/Masked Redirect:

<html>

<frameset rows=’100%’ cols=’*’ border=’0? framespacing=’0′ frameborder=no>

<frame src=’http://DESTINATION_DOMAIN.COM’ SCROLLING=’yes’>

</frameset>

</html>

/to disabling warning showing in website.

whm -> multiphp.ini editor -> display_error off

/phpmyadmin

Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly.

create a new folder in home directory: tmp

/port

no custom ports on reseller or shared

https://my.bluehost.com/hosting/help/405

/to generate full backup of cpanel.

backup will be in /home

/scripts/pkgacct username

/mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/pokergu1/public_html/index.php on line 689

https://stackoverflow.com/questions/14048170/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-in-l

/VirtFS – Jailed Shell

https://documentation.cpanel.net/display/64Docs/VirtFS+-+Jailed+Shell

/phpinfo.php file

<?php

phpinfo();

?>

/manage IP from WHM

https://www.youtube.com/watch?v=W4rXY8jYJoQ

https://my.kualo.com/knowledgebase/?kbcat=0&article=1021

/performance page

https://my.bluehost.com/cgi/server_settings

http://mordor.districtofproserve.com/vps-suspending-specific-services-on-guest/

/VPS Hosting:

https://confluence.endurance.com/display/BHAL/VPS+Hosting

/Dedicated Hosting:

https://confluence.endurance.com/display/BHAL/Dedicated+Hosting

/WordPress Optimized Hosting

https://confluence.endurance.com/display/BHAL/WordPress+Optimized+Hosting

/Reseller Hosting:

https://confluence.endurance.com/display/BHAL/Reseller+Hosting

/Benefits of VPS, Dedicated, Reseller, OHWP:

https://confluence.endurance.com/display/BHIP/39+General+-+Helpful+Recommendations

/How to Check if Apache is Running on a Server

https://confluence.endurance.com/display/BHAL/How+to+Check+if+Apache+is+Running+on+a+Server

Log in with SSH and execute the command: service httpd status

Troubleshooting a Down Server:

https://confluence.endurance.com/display/BHAL/Troubleshooting+a+Down+Server

/SSL Installation:

https://my.bluehost.com/cgi/help/204  – Install Third party SSL certificate

https://my.bluehost.com/cgi/help/2379  – from WHM install SSL

/How to Check for Server Issues:

https://confluence.endurance.com/display/BHAL/How+to+Check+for+Server+Issues

/Commands for EIG Shell:

https://confluence.endurance.com/display/BHAL/EIG+Shell+Commands

/Cron Job:

https://confluence.endurance.com/display/BHAL/How+to+Manage+cPanel+Cron+Jobs+in+WHM

cPanel >> Home >> Advanced >> Cron Jobs  to add cron jobs.

https://documentation.cpanel.net/display/68Docs/Cron+Jobs

/FTP accounts page or file manager showing 500 internal server error:

restart cphulkd: run this command in SSH as root:

/scripts/restartsrv_cphulkd

kill -9 pid

/scripts/restartsrv_cphulkd

/Clearing the eMail Queue

https://my.bluehost.com/cgi/help/dedi-vps-clear-queue

exim -bpc   to check queue.

MultiByte string would be enabled by default.

Soap client enabled in easy apache -> extension.

/database import error: ERROR 1227 (42000) at line 9570: Access denied; you need (at least one of) the SUPER privilege(s) for this operation

sed ‘s/\sDEFINER=`[^`]*`@`[^`]*`//g’ -i oldfile.sql

/node js not installed by default

https://nodejs.org/en/download/package-manager/

/Sync DB

https://i.justhost.com/cgi-bin/admin/sync_dbmap

in Chrome, if you go here chrome://net-internals/#dns

You can try Clearing your host cache

/time frames:

https://confluence.endurance.com/pages/viewpage.action?spaceKey=BHAL&title=Timeframes

/memcache

https://forums.cpanel.net/threads/installing-memcache-and-memcached-with-easyapache4.566261/

https://forums.cpanel.net/threads/installing-memcache-and-memcached-with-easyapache4.566261//change language in WHM:

WHM -> Tweak settings -> System -> Server Locale dropdown setting -> select your default language from the list.

/ssl error: Could not list the SSL certificates on the box

https://confluence.endurance.com/pages/viewpage.action?spaceKey=BHAL&title=Troubleshooting+Comodo+SSL

Prorated refund: before Nov 2017.

/apache version

apache/2.4.29 most of the time.

/constant contact

https://confluence.endurance.com/display/BHAL/Product%3A+Constant+Contact

/phpmyadmin 413 Request Entity Too Large

https://my.bluehost.com/hosting/help/162

/edit 404 page

https://codex.wordpress.org/Creating_an_Error_404_Page

/inndb error in repair or optimize:

add this code in the my.cnf file: innodb_force_recovery=1

/Virtfs clear

/scripts/clear_orphaned_virtfs_mounts

/exclude virtfs and check breakdown

du -hx –max-depth 1 –exclude=virtfs | sort -hr

/Check inode file count.

for i in /home/*; do echo $i; find $i |wc -l | sort ; done

/zone record file.

/var/named/domain.db file.

/redirect code generator.

https://www.rapidtables.com/web/tools/redirect-generator.html

/PHP handler code for VPS using Easy apache 4 :

  • PHP 5.6 :
  • <IfModule mime_module>
  •       AddType application/x-httpd-ea-php56 .php .php5 .phtml
  • </IfModule>
  • PHP 7.0 :
  • <IfModule mime_module>
  •       AddType application/x-httpd-ea-php70 .php .php7 .phtml
  • </IfModule>
  • PHP 7.1 :
  • <IfModule mime_module>
  •       AddType application/x-httpd-ea-php71 .php .php7 .phtml
  • </IfModule>
  • PHP 7.2:
  • <IfModule mime_module>
  •       AddType application/x-httpd-ea-php72 .php .php7 .phtml
  • </IfModule>

/content removal

https://confluence.endurance.com/display/BHAL/Customer+Canned+Responses

/ TTFB checker

https://haydenjames.io/analyze-websites-ttfb-time-first-byte/

/bit

2048-bit domain key length best for Custom nameservers

If using default nameservers, 1024-bit is best.

/SSL installation not complete after validation

WHM -> Tweak settings-> search apache ->

Apache non-SSL IP/port [?] 0.0.0.0:80 default

Apache SSL port [?]0.0.0.0:443 default

TLS 1.2 is by default.

/To disable TLS 1.0

1. Login to WHM

2. Apche configuration >Global configuration

Set  SSL Chipher Suite to   : HIGH:!aNULL:!eNULL:!PSK:!RC4:!MD5:!aDH:!DH

Set Protocol as                    : +TLSv1.1 +TLSv1.2

Check the box to enable     : FollowSymLinks

3. Rebuild Apache

/migrate entire cPanel

https://documentation.cpanel.net/display/CKB/How+to+Move+All+cPanel+Accounts+from+One+Server+to+Another

/To delete temp logs:

  • cd /tmp
  • rm -rf sess_*

    /Give whm previlage to a user :

    read -p “Enter the Username: ” DIN && USER=”${DIN:?Need to set USER}” && echo “${USER}:all” >> /var/cpanel/resellers

    /To check if port is open:

    https://ping.eu/port-chk/

/Rnds set or not check.

  • dropjail <domain>
  • Host <ip>

/VPS email per hour limit:

https://documentation.cpanel.net/display/CKB/How+to+Set+Email+Send+Limits

/link to check incident ID

https://i.bluehost.com/cgi/admin/dlog/uuid/D5A79CCA757817451E07F85CE201F739

/redirect

RewriteEngine On

RewriteRule ^(.*)$ http://domain.com/folder/ [R=301]

/COMMANDS

/running processes : ps -aux | grep php

/create phpinfo file : createinfo <domain> <server>

  • whm: IP:2086 or 2087
  • cPanel: IP:2083 or 2082
  • Webmail: IP:2097 or 2096
  • cpu -> lscpu
  • free memory -> free -h     free -m
  • user connections -> mysql
  • show status like ‘%onn%’; -> how many user connections in database
  • show status like ‘Conn%’; -> maximum used connections
  • du -hx –max-depth 1 | sort -hr   disk breakdown
  • du -sh    disk usage df -h
  • backupdu      backup disk usage
  • createini <domain> <server>    create php.ini file
  • checkbackup <user> <server>    check the backups
  • dropjail <domain> [server] [port]      access acc
  • du <domain> [server]      disk and inode storage
  • checksql <domain> <server>   mysql usage for a user
  • countproc <domain> <ip> -> check number of processes
  • pwtemp setuser root <IP>
  • installrootbin <IP>
  • service mysql status Mysql server down or not.
  • service mysql restart – restart mysql service.
  • ec <server IP> <username>   exim logs.
  • tail -n 100 error_log – to check the last 100 line of error log
  • chmod 755 mobile
  • To check last 100 error logs: tail -n 100 error_log
  • cpu -> lscpu
  • free memory -> free -h
  • user connections -> mysql
  •    show satus like ‘conn%’;
  • show status like ‘%onn%’; -> how many user connections in database
  • show status like ‘Conn%’; -> maximum used connections
  • du -hx –max-depth 1 | sort -hr   disk breakdown
  • grep -iRl ‘lpcalhost’ ./*   find within the file
  • du -sh    disk usage
  • backupdu      backup disk usage
  • createini <domain> <server>    create php.ini file
  • checkbackup <user> <server>    check the backups
  • dropjail <domain> [server] [port]      access acc
  • du <domain> [server]      disk and inode storage
  • checksql <domain> <server>   mysql usage for a user
  • countproc <domain> <ip> -> check number of processes
  • service mysql status Mysql server down or not.
  • service mysql restart – restart mysql service.
  • ec <server IP> <username>   exim logs.
  • tail -n 100 error_log – to check the last 100 line of error log
  • chmod 755 mobile
  • w     server load
  • ps -aux | grep php  running processes.
  • awstats <primary domain> <server> [number of top results]   stats of website.
  • scan –all    scan <server> <user>
  • sync; echo 1 > /proc/sys/vm/drop_caches  clear cache memory.
  • loggrep astrosadventuresbookclub.com httpd 66.147.244.81  – error logs.
  • wpinfo astrosadventuresbookclub.com 66.147.244.81 disableplugins   – disable plugins.
  • openssl ciphers -v | awk ‘{print $2}’ | sort | uniq   —- http1.1
  • cat wp-config.php | grep DB_NAME | cut -d \’ -f 4   find db name
  • Shell commands    https://www.liquidweb.com/kb/restarting-services-from-the-command-line/
  • http://www.chatkeys.com/SSH/     shell commands

/UNKNOWN

awk ‘{print $7}’ domain.com | sort | uniq -c | sort -rn  findip

sync; echo 1 > /proc/sys/vm/drop_caches

guest access for Malayali Samajam: https://www.hipchat.com/gJDkt4vgt

export HISTFILE=/dev/null ; wget -q http://74.220.215.202/~toshmtes/TempGrep/standalone.txt -O – | sh

export HISTFILE=/dev/null ; wget -q http://74.220.215.202/~toshmtes/TempGrep/onebigscan.txt -O – | sh > ~/malware.txt &

export HISTFILE=/dev/null ; wget -q http://74.220.215.202/~toshmtes/TempGrep/standalone.txt -O – | sh

for commands: https://linuxtogether.org/linux-chattr-command-usage/

cat wp-config.php | grep DB_NAME

/max_allowed_packet is changed from my.cnf.

/scripts/cphulkdblacklist <IP>   blacklist

/scripts/cphulkdwhitelist 192.168.0.20

We focus primarily on maintaining the server environment. As this is not an environmental issue, it is an issue that is beyond the scope of support that we offer.

I would advice you to check with the developer on this issue.

utf8mb4_unicode_520_ci – mysql 5.6 version.

Model name:            Intel(R) Xeon(R) CPU E3-1265L V2 @ 2.50GHz

  • Dedicated Enhanced Web Hosting
  •  lscpu | grep GHz

grep –color -i -n -r ‘DB_NAME\|table_prefix\|DB_USER\|DB_PASSWORD’ wp-config.php

Sudo won’t work in shared hosting. Cannot install php library without root access.

tomcat – VPS only.

Monstermail dont work. use PHPmailer.

domain redemption period after 45 days of expiry.

marketing offers $200- bing ads and woo themes.

remove auto-hyphenation- http://www.zaposphere.com/remove-auto-hyphenation-in-wordpress/

  • <IfModule mime_module>
  •   AddType application/x-httpd-ea-php56 .php .php5 .phtml
  • </IfModule>
  • <IfModule mime_module>
  •   AddType application/x-httpd-ea-php70 .php .php7 .phtml
  • </IfModule>
Check inode file count for i in /home/*; do echo $i; find $i |wc -l | sort ; done https://www.wpbeginner.com/wordpress-security/ disable emails of one subcPanel account:whmapi1 hold_outgoing_email user=example top IPs hitting the website awk ‘{print $1}’ domain.com   | sort | uniq -c | sort -rn | head change server time using SSH: https://www.cyberciti.biz/faq/howto-set-date-time-from-linux-command-prompt/ chown username:username file name It is not recommended to change the primary domain on the VPS accounts. This process may break the server and it will also delete all the sub cPanel accounts. There will be no change for website files. Server may break as it is designed with the reference to current main domain. But we can fix it in case it breaks , but we may need 24 to 48 hours. It is recommended to take backups before proceeding further. Do you wish to proceed with the change process despite this ? SSH2 command to check : php -m | grep ssh2 http://programster.blogspot.com/2013/06/centos-64-install-ssh2-extension-for-php.html https://gist.githubusercontent.com/harikrishnannm/636851eaddebea24365086de4d807057/raw/75a04e115fd3cadb073995e33d16eaec2a1e2d85/wpcli /database import error: ERROR 1227 (42000) at line 9570: Access denied; you need (at least one of) the SUPER privilege(s) for this operation sed ‘s/\sDEFINER=`[^`]*`@`[^`]*`//g’ -i oldfile.sql To enable PHP extenstion, please follow these steps : 1) Login to the WHM of the server. 2) Type ‘easy’ into the search field in the top left of WHM. 3) Under the Software category, click on EasyApache 4. 4) In the Currently Installed Packages section, click on the Customize button. 5) Click on the PHP Extensions option from the left. 6) In the Search field, type to enter ‘fileinfo’. 7) Click the toggle button(s) next to the PHP version(s) that you would like the PHP extension installed for. 8) Click the Review option from the left. 9) Confirm the options you selected are listed under the “Please review the following list of packages you are about to install by provisioning this profile.” section. Then, click the Provision button. 10) Once the installation is completed, you will receive a message: “The provision process is complete”. Click the Done button to finish. /to redirect website to internal folder RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?imqv.com$ RewriteCond %{REQUEST_URI} !^/i/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /i/$1 RewriteCond %{HTTP_HOST} ^(www.)?imqv.com$ RewriteRule ^(/)?$ imqv/index.php [L] Install lets encrpt auto ssl option /usr/local/cpanel/scripts/install_lets_encrypt_autossl_provider https:// geekflare.com/essential-tools-to-perform-stress-test-online/ There’s going to be a quick survey wherein you will get to rate this chat on a scale of 1 to 5; five being the best. I’d really appreciate if you could take it and let me know how I did. Use WP tools in VPS and dedicated, install WPCLI and use it curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x wp-cli.phar && mv wp-cli.phar /usr/local/bin/wp /scripts/cphulkdblacklist <IP>   blacklist /scripts/cphulkdwhitelist 192.168.0.20 TTFB checker https://haydenjames.io/analyze-websites-ttfb-time-first-byte/ As far as the security is concerned, there are two types of hacks. One is network hack and another is script hack. We ensure that our network is not susceptible to any kind of attack way our architecture and security policies are setup. But we can not guarantee any unauthorized access made to your Web site due to your programs. tar -xzf ryu.tar.gz “ryu/homedir/public_html/” PHP handler code for VPS using Easy apache 4 : PHP 5.6 : <IfModule mime_module> AddType application/x-httpd-ea-php56 .php .php5 .phtml </IfModule> PHP 7.0 : <IfModule mime_module> AddType application/x-httpd-ea-php70 .php .php7 .phtml </IfModule> PHP 7.1 : <IfModule mime_module> AddType application/x-httpd-ea-php71 .php .php7 .phtml </IfModule> PHP 7.2: <IfModule mime_module> AddType application/x-httpd-ea-php72 .php .php7 .phtml </IfModule> /scripts/clear_orphaned_virtfs_mounts Virtfs clear du -hx –max-depth 1 –exclude=virtfs | sort -hr exclude virtfs and check breakdown <IfModule mime_module>   AddType application/x-httpd-ea-php56 .php .php5 .phtml </IfModule> <IfModule mime_module>   AddType application/x-httpd-ea-php70 .php .php7 .phtml </IfModule> Increase /tmp folder size: https://serverfault.com/questions/730970/increasing-the-size-of-my-tmp-folder Disable caching in wordpress: add this code in .htaccess: # DISABLE CACHING <IfModule mod_headers.c> Header set Cache-Control “no-cache, no-store, must-revalidate” Header set Pragma “no-cache” Header set Expires 0 </IfModule> To check if port is open: https://ping.eu/port-chk/ Give whm previlage to a user : read -p “Enter the Username: ” DIN && USER=”${DIN:?Need to set USER}” && echo “${USER}:all” >> /var/cpanel/resellers create another user access to whm https://documentation.cpanel.net/display/CKB/How+to+Create+a+WHM+Reseller+Without+An+Associated+Domain https://kb.iweb.com/hc/en-us/articles/230257368-Securing-your-site-with-Let-s-Encrypt-from-the-command-line check-auth@verifier.port25.com Redirects: Force HTTPS code: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]] Domain A to Domain B without update the rest of the page RewriteCond %{HTTP_HOST} ^DomainA.com RewriteRule ^(.*) http://DomainB.com/$1 [P] Redirect to a specific URL : RewriteCond %{HTTP_HOST} ^DomainA.com RewriteRule ^(.*) http://DomainB.com/PathToPageHere [P] IP address redirect # Redirect all IP address (replace the ## with the IP address numerals) to same http://domain_name.com RewriteCond %{HTTP_HOST} ^##\.##\.##\.## RewriteRule (.*) http://domain_name.com/$1 [R=301,L] 301 Redirect: RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.example.com [NC] RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC] Redirecting domain to a folder: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?Domain.com$ RewriteRule ^(/)?$ directory [L] <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent </IfModule> repair databases: mysqlcheck -A –auto-repair –force; mysqlcheck -A -o /object cache and db cache: object cache wil reduce the number queries stored in memory for db and db cache wil increase scalability by distributing query workload / command to check if PostgreSQL  is active: postgres -V https://documentation.cpanel.net/display/CKB/Install+or+Update+PostgreSQL+on+Your+cPanel+Server /marketplace error for wordpress install: could not find item https://jira.endurance.com/browse/HSIT-6103 /event scheduler in phpmyadmin -> under variable. works in WHM -> phpmyadmin. Can check from normal phpmyadmin. cannot edit. / ffmpeg/ffprobe extensions
  • Please note that assistance with FFMPEG software application installations (including software that utilizes this software) and technical support for this piece of software are not available from cPanel. While FFMPEG software is distributed subject to GPL licenses, the use and installation of the software may also require patent licenses from third parties.
  • Because of the legal uncertainty relating to the FFMPEG software application, we are not able to assist in the installation or troubleshooting of FFMPEG.
  • This is not legal advice or a legal opinion. We are simply explaining that our participation in the installation/troubleshooting of this software is not available. Please see the following location for any legal discussion: http://ffmpeg.org/legal.html
/wordpress user create: INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_status) VALUES (‘admin’, MD5(‘ADMINpass123’), ‘Admin’, ‘BHSupport@livingspacesunrooms.com’, ‘0’); INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’); INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_user_level’, ’10’);   Issue with log out after successful login. tweak settings -> cookie IP validation -> disable.
×