<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Patrick&#039;s playground &#187; upgrade plesk</title>
	<atom:link href="http://www.vankouteren.eu/blog/tag/upgrade-plesk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vankouteren.eu/blog</link>
	<description>Random thoughts, problems and solutions</description>
	<lastBuildDate>Sun, 29 Jan 2012 07:53:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Upgrading Plesk &#8211; Useful commands</title>
		<link>http://www.vankouteren.eu/blog/2010/01/upgrading-plesk-useful-commands/</link>
		<comments>http://www.vankouteren.eu/blog/2010/01/upgrading-plesk-useful-commands/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 12:46:33 +0000</pubDate>
		<dc:creator>Patrick van Kouteren</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[upgrade plesk]]></category>

		<guid isPermaLink="false">http://www.vankouteren.eu/blog/?p=180</guid>
		<description><![CDATA[I've been upgrading Plesk today and yesterday. Although Plesk has a nice interface, it's not 100% clear in what happens. After some help on the FreeNode #plesk IRC channel and some cyberciti.biz pages, I've composed some details and commands to execute at the command line which can help when upgrading Plesk. To Start Plesk /etc/init.d/psa [...]]]></description>
			<content:encoded><![CDATA[<p>I've been upgrading Plesk today and yesterday. Although Plesk has a nice interface, it's not 100% clear in what happens. After some help on the FreeNode #plesk IRC channel and some cyberciti.biz pages, I've composed some details and commands to execute at the command line which can help when upgrading Plesk.</p>
<p><span id="more-180"></span><strong>To Start Plesk</strong></p>
<pre>/etc/init.d/psa start</pre>
<p><strong>To Stop Plesk</strong></p>
<pre>/etc/init.d/psa stop</pre>
<p><strong>Upgrade through autoinstaller</strong></p>
<pre>/usr/local/psa/admin/bin/autoinstaller</pre>
<p><strong>Restart apache</strong></p>
<pre>/etc/init.d/httpd restart</pre>
<p><strong>Check the running processes.</strong></p>
<p>The first column represents the owner. The second column contains the process id.</p>
<p><a href="http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/" target="_blank">Source</a></p>
<pre>ps aux | grep autoinstall</pre>
<p>or</p>
<pre>ps u</pre>
<p><strong>Killing a process</strong></p>
<pre>kill -9 [processid]</pre>
<p><strong>Backup an RPM database and rebuild it.</strong></p>
<p><a href="http://www.cyberciti.biz/faq/how-can-i-backup-the-rpm-database/" target="_blank"> source 1</a></p>
<p><a href="http://www.cyberciti.biz/tips/tag/rpm-rebuilddb" target="_blank">source 2</a></p>
<p><em>Remove any stale lock file</em></p>
<pre>/bin/rm -f /var/lib/rpm/__db*</pre>
<p><em>Back up the /var/lib/rpm directory</em></p>
<pre>tar czvf $(hostname).rpmdatabase.tar.gz /var/lib/rpm</pre>
<p>If your hostname is linux-server, it will save backup to a file called linux-server.rpmdatabase.tar.gz<br />
<em>Rebuild the rpm db</em></p>
<pre>rpm --rebuilddb</pre>
<p>Many thanks also go out to 'koor' who helped me at the #plesk IRC channel at FreeNode.</p>
<p><strong>Collision of RPM files (RPM already exists)<br />
</strong></p>
<p>When upgrading I encountered a collision of an RPM file which already existed. Because of that the upgrade could not proceed. A solution to that is presented <a href="http://forums.theplanet.com/index.php?showtopic=85964" target="_blank">here</a> in the last post. It comes down to:</p>
<ul>
<li>Navigating to the folder which holds the rpm file (e.g. cd  /root/psa/PSA_8.1.0/dist-rpm-RedHat-el3-i386/base)</li>
<li>Forcing an update on the RPM. (e.g. rpm -U --force --nodeps psa-8.1.0-rhel3.build81061129.22.i586.rpm)</li>
</ul>
<p>Running the updater after repairing the file will solve the problem.</p>
<p><strong>SSH connection is refused</strong><br />
I had this problem once. After a little search I found <a href="http://coastalweb.ca/system-administration/how-to-start-sshd-on-plesk.html">this</a> post. It's brilliant! From Plesk itself you start a cronjob (run it as root user) which (re)starts (or use restart instead of start) the ssh daemon. After that my problem was solved.</p>
<p><strong>Virtual hosts</strong><br />
By default Plesk has a pre-defined 'behavior' of a domain. This includes some settings for PHP like safe mode and open basedir restrictions. By default these settings are stored in a file called 'httpd.include' in the folder</p>
<pre>/var/www/vhosts/yourdomain.ext/conf/</pre>
<p>You can edit this file to change the behavior of the domain, but changes in this file are just temporary. Once the file is reloaded your changes will be gone.<br />
To permanently make changes you need to create or edit a file called 'vhost.conf' which is located in the same directory. When loading the httpd.include file, the webserver also checks if this vhost.conf file exists and if so, it includes it. How you can create this virtual host file can be found on <a href="http://webhostingneeds.com/Disable_open_basedir_in_plesk">this</a> page.</p>
<p><strong>Apache logs</strong><br />
The apache log files are located at</p>
<pre>/var/log/httpd/</pre>
<p><strong>Webserver config</strong><br />
The webserver (httpd) config is located at</p>
<pre>/etc/httpd/conf/httpd.conf</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vankouteren.eu/blog/2010/01/upgrading-plesk-useful-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

