# yum reinstall serverbackup-agent
# cd /lib/modules/r1soft
# wget http://beta.r1soft.com/modules/Centos_7.4/hcpdriver-cki-3.10.0-693.2.2.el7.x86_64.ko
# insmod hcpdriver-cki-3.10.0-693.2.2.el7.x86_64.ko
# /etc/init.d/cdp-agent restart
Linux, Windows, Software Tips, Articles and Hacks
# yum reinstall serverbackup-agent
# cd /lib/modules/r1soft
# wget http://beta.r1soft.com/modules/Centos_7.4/hcpdriver-cki-3.10.0-693.2.2.el7.x86_64.ko
# insmod hcpdriver-cki-3.10.0-693.2.2.el7.x86_64.ko
# /etc/init.d/cdp-agent restart
Stop apache if running:
# systemctl stop httpd
Install epel if not installed:
# yum install epel-release
# yum install nginx
# systemctl enable nginx
# systemctl start nginx
How to find and Start/Stop VM on ESXI.
SSH to the ESXI server.
# esxcli vm process list
# esxcli vm process list WebHost World ID: 35689 Process ID: 0 VMX Cartel ID: 35686 UUID: 56 4d 72 7c da 4c 82 f1-9f 10 9c e3 d6 7d a4 9d Display Name: WebHost Config File: /vmfs/volumes/54c1dfef-00e03f4b-784e-6805ca0a3085/WebHost/WebHost.vmx Windows World ID: 4150543 Process ID: 0 VMX Cartel ID: 4150542 UUID: 56 4d 49 5f 12 7e 26 96-d8 31 37 05 21 64 5d 46 Display Name: Windows Config File: /vmfs/volumes/54c1dfef-00e03f4b-784e-6805ca0a3085/Windows/Windows.vmx Monitor World ID: 2487010 Process ID: 0 VMX Cartel ID: 2487009 UUID: 56 4d 99 de b0 13 a1 76-bd 2d 95 8a be 25 35 39 Display Name: Monitor Config File: /vmfs/volumes/54c1dfef-00e03f4b-784e-6805ca0a3085/Monitor/Monitor.vmx Mail World ID: 2487029 Process ID: 0 VMX Cartel ID: 2487028 UUID: 56 4d 4f 88 c8 bf a6 37-b5 5b 96 6f b4 23 c5 fb Display Name: Mail Config File: /vmfs/volumes/54c1dfef-00e03f4b-784e-6805ca0a3085/Mail/Mail.vmx
Stop a VM:
# esxcli vm process kill -t soft --world-id 4150543
Review to verify the VM is off:
# esxcli vm process list WebHost World ID: 35689 Process ID: 0 VMX Cartel ID: 35686 UUID: 56 4d 72 7c da 4c 82 f1-9f 10 9c e3 d6 7d a4 9d Display Name: WebHost Config File: /vmfs/volumes/54c1dfef-00e03f4b-784e-6805ca0a3085/WebHost/WebHost.vmx Monitor World ID: 2487010 Process ID: 0 VMX Cartel ID: 2487009 UUID: 56 4d 99 de b0 13 a1 76-bd 2d 95 8a be 25 35 39 Display Name: Monitor Config File: /vmfs/volumes/54c1dfef-00e03f4b-784e-6805ca0a3085/Monitor/Monitor.vmx Mail World ID: 2487029 Process ID: 0 VMX Cartel ID: 2487028 UUID: 56 4d 4f 88 c8 bf a6 37-b5 5b 96 6f b4 23 c5 fb Display Name: Mail Config File: /vmfs/volumes/54c1dfef-00e03f4b-784e-6805ca0a3085/Mail/Mail.vmx
How to start a Guest VM from Command line:
Get a list of VMs on a host using the command:
# vim-cmd vmsvc/getallvms Vmid Name File Guest OS Version Annotation 32 Monitor [datastore1] Monitor/Monitor.vmx centos64Guest vmx-08 44 Mail [datastore1] Mail/Mail.vmx ubuntu64Guest vmx-08 58 WebHost [datastore1] WebHost/WebHost.vmx centos64Guest vmx-08 61 Plesk [datastore1] Plesk/Plesk.vmx centos64Guest vmx-08 62 Windows [datastore1] Windows/Windows.vmx windows8Server64Guest vmx-08
NOTE: The important fields will be the the VMID of your desired VM
Double check the power state of the VM:
vim-cmd vmsvc/power.getstate <vmid>
# vim-cmd vmsvc/power.getstate 62 Retrieved runtime info Powered off
Start
vim-cmd vmsvc/power.on <vmid>
# vim-cmd vmsvc/power.on 62 Powering on VM:
Good article here:
https://magento.stackexchange.com/questions/37302/magento-redirects-to-old-website-regardless-of-what-changes-are-made
Some tips:
1. Delete the cache
2. Check the database connection info
3. Check base URL
Using a text editor, create a file in which to store your private key. This example uses the file private_key.txt.
To edit the file in nano, type the following command
# nano deployment_key.txt
Paste the private key into the file. Be sure to include the BEGIN and END lines.
-----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAx9ODcgSZFhPnZmW/VGWy/bXLKFBhOoTP9k4dhcJq17ZuG9KB ... -----END RSA PRIVATE KEY-----
Run the following command to change the file permissions to 600 to secure the key. You can also set them to 400. This step is required:
# chmod 600 deployment_key.txt
Use the key to log in to the SSH client as shown in the following example, which loads the key in file private_key.txt, and logs in as user demo,to IP 192.237.248.66:
# ssh -i deployment_key.txt demo@192.237.248.66
When the prompt to confirm the connection request is displayed, type yes and then press Enter.
If your SSH key requires a password, enter it when prompted to complete the connection.
Given a web based console of 430px height to manage a server. The web based console does not show full window preventing from seeing prompts or what commands typed in.
You can change the iframe window of the console from 430px, using google developer tools, to have a height of 800px making the window very usable.
When conned to a Window server you get the following error:
Open the task manager and end the RDP Clipboard Monitor task. Then right click on start > run > rpdclip.exe. I was able to find a way that you can script this to make it easier on you moving forward. Please see the link below to see how to make the bat file.
https://techtalk.gfi.com/copy-paste-working-remote-desktop-connection-whats-wrong/
Let’s install cPanel
Let’s use screen to install. To start off, go ahead and install screen and wget:
yum install wget screen -y
Once screen is installed, start a new session running:
screen
After opening screen, you can proceed to install cPanel. Use this this command to install cPanel with WHM:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Then close out of screen. The script will continue running while in the background—even if you close out the of server.
In order to detach screen type:
Cntrl-a-d
To reattach to your screen you can use the command:
screen -r
Once cPanel finally installs, you can access the login by going to http://ipaddress:2087 (eg. https://12.34.45.678:2087) or domain (example.com:2087)
The Plesk self-repair functionality enables you to automatically diagnose and resolve issues with Plesk and Plesk services. If you encounter an issue with one of the Plesk services (for example, if mail is not being sent or delivered, or a website fails to open, and so on), or with Plesk itself (for example, if error messages are being displayed in the Plesk interface, or if Plesk pages fail to load), you can use the Plesk repair utility to attempt to resolve it. The utility can be used to check and repair individual aspects of Plesk (such as the mail service, or the Plesk database), or all the aspects at once.
More at https://docs.plesk.com/en-US/12.5/administrator-guide/plesk-administration/plesk-repair-utility.74649/
You are checking your stats and see low traffic:
How to recalculate AWStats statistics from logs for previous months. Follow this link for a plesk article:
Plesk Administration: https://docs.plesk.com/en-US/onyx/advanced-administration-guide-linux/statistics-and-logs/calculating-statistics.68650/
Another issue had to do with a bug in plesk.
Check your Plesk Web Statistics at the bottom of the page:
The most frequent HTTP Status code is “301 – Moved permanently (redirect)” at https://domain.com/plesk-stat/webstat/. It takes 49.5%.
In addition, “Permanent SEO-safe 301 redirect from HTTP to HTTPS” is checked under Domains > domain.com > Hosting Settings > Security section.
In this way the SSL traffic is not shown under Domains > domain.com > Web Statistics.
This issue was caused by a product defect. A bug has been already created: PPPM-548: SSL traffic is not shown in webstat.
More information here:
https://docs.plesk.com/release-notes/onyx/change-log/
To view the statistics:
Access SSL traffic statistics using the link below:
https://domain.com/plesk-stat/webstat-ssl/
Please, see the following article in order to get more information on the issue:
https://support.plesk.com/hc/en-us/articles/213951505