- Check whether Screen is installed
which screen
- If Screen is not installed on your system, run the following command:
- If your system uses yum, you can install Screen with the command below
yum install screen
- If your system uses apt, you can install Screen with the command below
apt install screen
- If your system uses yum, you can install Screen with the command below
- To run a Screen session, enter the screen command.
screen
- If your session disconnects for some reason, log back in to your server and run the screen -r command.
screen -r
This will reconnect you to your Screen session.
Move files in the Linux terminal
The mv command moves file(s) from one location to another.
To move a file from one directory to another with mv, remember the syntax below
mv <source> <destination>
For example,
mv example.zip /home
Check whether, it moves example.zip
ls /home
Rename the file as you move it
mv example.zip /home/newexample.zip
Rename a file without moving it to another location
mv example.zip renameexample.zip
Moving a directory
mv exampledir /home
Moving a file safely
mv --interactive example.zip /home
This will ask
mv: overwrite '/home/example.zip'?
If you do not want to manually intervene, use –no-clobber or -n instead.
mv --no-clobber example.zip /home
MariaDB Upgrade to the new version | Plesk – CentOS 7 / RHEL 7
- For CWP and CentOS 7
MariaDB Upgrade to the new version | CWP
By default, CentOS 7 is shipped with MariaDB 5.5. MariaDB 10.x version is a drop-in replacement for MySQL 5.5-5.7.
Automatic method
Note: The script below is applicable only for upgrading default MariaDB 5.5 to the MariaDB 10.5 version, for other cases apply the steps from the Manual Method section. Make sure Obsidian 18.0.30 or later is installed on the server.
- Download the attached script and provide it with executable rights:
wget https://raw.githubusercontent.com/plesk/kb-scripts/master/c7-mariadb-10-5-upgrade/c7-mariadb-10-5-upgrade.sh && chmod +x c7-mariadb-10-5-upgrade.sh
- Execute the script via CLI:
./c7-mariadb-10-5-upgrade.sh
How to Clean the YUM Cache in CentOS
We need to clean the YUM cache to reclaim the disk space used or to fix some errors due to corrupted metadata files.
- Clean all the cached packages from the enabled repository cache directory.
yum clean packages
- Delete package headers.
yum clean headers
- Delete metadata for each enabled repository.
yum clean metadata
-
Clean database cache yum clean dbcache
-
Clean expire cache yum clean expire-cache
- Clean all cached information.
yum clean all
Done!
How to run php file through command line? How do I enable PHP?
For Windows, make sure you have PHP installed and type this into command prompt:
C:\Path\To\php.exe C:\Path\To\Your\script.php
And for Linux/Unix:
php /path/to/script.php
- Go to Tools & Settings > Updates to start the Plesk Installer.
- Click Add/Remove Components, expand the Web hosting section, and
- Then the PHP interpreter versions section.
- PHP from OS vendor (install)
- « Previous Page
- 1
- 2
- 3
- 4
- 5
- …
- 15
- Next Page »