This website was made to assist you in managing your Plesk through CentOS secure shell (ssh)

How to restart Plesk service from CentOS secure shell(ssh)

# /etc/init.d/psa restart



How to stop then start Plesk service from CentOS secure shell (ssh)

# /etc/init.d/psa stop

# /etc/init.d/psa start



How to restart httpd service from CentOS secure shell(ssh)

# /etc/init.d/httpd restart



How to stop then start httpd service from CentOS secure shell (ssh)

# /etc/init.d/httpd stop

# /etc/init.d/httpd start



How to find the location of Plesk website or domain root directory files in CentOS secure shell (ssh)

# /var/www/vhosts/domain.com/httpdocs



How to add a root user with super privledges in CentOS secure shell (ssh)

Create user "test" using the command:

# useradd test

Set password for the user, make sure to make the password at least 8 characters long and it must include a special character, multiple case, and a number. You may generate a strong password using http://strongpasswordgenerator.com/, or "mkpasswd" command

# passwd test

Add super privledges to the "test" user:

# visudo

Using the up/down arrows, navigate to the bottom of the sudoers file that is now displayed in the terminal just under the line that looks like the following:

root ALL=(ALL) ALL

Add the following by pressing "o" without quotes to edit the file:

test ALL=(ALL) ALL

Now type ":x" without quotes and hit enter to save and close the file



How to delete a user in CentOS secure shell (ssh)

Run the following command while logged in as "root" user:

# userdel test



How to upgrade php version to php5.3 in CentOS secure shell (ssh)

Run the following command while logged in as "root" user:

# /usr/local/psa/admin/sbin/autoinstaller --select-release-current --install-component php53



How to make a tarball in CentOS secure shell (ssh)

Run the following command while logged in as "root" user in the directory you want to compress. Note that this is recursive meaning it will back up all files and subdirectories recursively unless you otherwise specify. In this example we will use backup.tar as the filename:

# tar cvf backup.tar *z



How to extract a tarball into the current directory in CentOS secure shell (ssh)

Run the following command while logged in as "root" user to the directory you want to extract the files to:

# tar xvf backup.tar



How to install Migration Manager with Plesk 10 already installed

Run the following command while logged in as "root" user. When in the Components Menu select Plesk migration manager (option 4 for me) when prompted then proceed with the installation and installation of necessary components or updates for existing ones.

# /usr/local/psa/admin/bin/autoinstaller



How to change your default SSH port in CentOS secure shell (ssh)

As root go into the following folder:

# cd /etc/ssh

Edit the sshd configuration file:

# vi sshd_config

Look for the line:

#Port 22

Use "i" to insert, remove the ignore sign (#) and replace the defaul port with your own such as 50101

Port 50101

Hit "ESC" to remove yourself from insert mode and type ":w" to save then ":q" to exit the file

Restart the ssh service from /etc

service sshd restart

Try to connect now with the default 22 port, it should fail, try again with the new port and it should work



How to enable a disabled subscription

Run the following command while logged in as "root" user.

# /usr/local/psa/bin/domain -u domain.com -status enabled



How to enable/disable power user mode from ssh.

Run the following command while logged in as "root" user.

# /usr/local/psa/bin/poweruser --off

# /usr/local/psa/bin/poweruser --on



If site/domain is showing default index page without cause and should show the root directory index run the following command to have plesk re-read the apache configuration file for the proper root paths

Run the following command while logged in as "root" user.

# /usr/local/psa/admin/bin/httpdmng --reconfigure-all



Email any questions or ideas to: admin at centosplesk dot net

Thank you for your Support! - knigmich

Allt om Converse

I do not endorse clicking the above link, it is required for my hit counter!