<?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>WebSight Design Blog &#187; plesk</title>
	<atom:link href="http://blog.websightdesign.com/tag/plesk/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.websightdesign.com</link>
	<description>The Official Blog of WebSight Design, Inc.</description>
	<lastBuildDate>Thu, 02 Feb 2012 22:40:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>How to add a chrooted FTP account for access to a specific dir on a Linux Plesk server</title>
		<link>http://blog.websightdesign.com/2008/07/21/how-to-add-a-chrooted-ftp-account-for-access-to-a-specific-dir-on-plesk/</link>
		<comments>http://blog.websightdesign.com/2008/07/21/how-to-add-a-chrooted-ftp-account-for-access-to-a-specific-dir-on-plesk/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 20:15:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[Plesk tips]]></category>

		<guid isPermaLink="false">http://blog.websightdesign.com/2008/07/21/how-to-add-a-chrooted-ftp-account-for-access-to-a-specific-dir-on-plesk/</guid>
		<description><![CDATA[To add a chrooted FTP user outside of Plesk properly, you need to: Create the user with the home directory as the root of what they can access Give the user a password Make their primary group psacln Add them to the psaserv group as well # useradd username -d /var/www/html/website/slideshow/ # passwd username Enter [...]<p><a href="http://blog.websightdesign.com/2008/07/21/how-to-add-a-chrooted-ftp-account-for-access-to-a-specific-dir-on-plesk/">How to add a chrooted FTP account for access to a specific dir on a Linux Plesk server</a> is a post from: WebSight Design, Inc. company blog. With headquarters in the San Francisco bay area, WebSight Design, Inc. has been providing world class web engineering, creative design and hosting solutions since 1995. <a href="http://Websightdesign.com">WebSight Design</a></p>
]]></description>
			<content:encoded><![CDATA[<p>To add a chrooted FTP user outside of Plesk properly, you need to:</p>
<p>Create the user with the home directory as the root of what they can access<br />
Give the user a password<br />
Make their primary group psacln<br />
Add them to the psaserv group as well<br />
# useradd username -d /var/www/html/website/slideshow/<br />
# passwd username<br />
Enter new password for username<br />
# usermod -g psacln username<br />
# usermod -G psaserv username<br />
You also need to chmod the directory in question to 775</p>
<p>That&#8217;s it.</p>
<p><a href="http://blog.websightdesign.com/2008/07/21/how-to-add-a-chrooted-ftp-account-for-access-to-a-specific-dir-on-plesk/">How to add a chrooted FTP account for access to a specific dir on a Linux Plesk server</a> is a post from: WebSight Design, Inc. company blog. With headquarters in the San Francisco bay area, WebSight Design, Inc. has been providing world class web engineering, creative design and hosting solutions since 1995. <a href="http://Websightdesign.com">WebSight Design</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websightdesign.com/2008/07/21/how-to-add-a-chrooted-ftp-account-for-access-to-a-specific-dir-on-plesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allowing PHP to write files in a Plesk server environment</title>
		<link>http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/</link>
		<comments>http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 15:36:20 +0000</pubDate>
		<dc:creator>rmudgett</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[Plesk tips]]></category>

		<guid isPermaLink="false">http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/</guid>
		<description><![CDATA[As you may have found out, a web server that houses a bunch of web sites can cause some issues with file permissions when it comes to allowing PHP to write files that a web site needs, whether it is a data file, a document or an image. This is usually not an issue if [...]<p><a href="http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/">Allowing PHP to write files in a Plesk server environment</a> is a post from: WebSight Design, Inc. company blog. With headquarters in the San Francisco bay area, WebSight Design, Inc. has been providing world class web engineering, creative design and hosting solutions since 1995. <a href="http://Websightdesign.com">WebSight Design</a></p>
]]></description>
			<content:encoded><![CDATA[<p>As you may have found out, a web server that houses a bunch of web sites can cause some issues with file permissions when it comes to allowing PHP to write files that a web site needs, whether it is a data file, a document or an image.  This is usually not an issue if PHP is installed as a cgi module because cgi programs are usually setup to run as the user that owns them, but Plesk uses PHP installed as an Apache module, and thus it runs as the same user that Apache runs as, which is usually not the same user that owns the website files.</p>
<p>How to solve this?  It is really easy actually.  There are 2 possible solutions, the first is the easiest, but really shouldn&#8217;t be considered and that is to make the folders that PHP needs to write to 0777, which opens a possible security hole and that is why you shouldn&#8217;t really consider it.</p>
<p>The second is to simply add the user apache uses, which under Plesk is usually &#8220;apache&#8221; to the group &#8220;psacln&#8221;.  You can edit the /etc/group and /etc/group- files if you know what you are doing, or use usermod.</p>
<p>If you want to edit the files directly, locate the line that looks like this:</p>
<p>psacln:x:2524:</p>
<p>and just tack on &#8220;apache&#8221; to the end of it like so&#8230;</p>
<p>psacln:x:2524:apache</p>
<p>Do this for both files and restart apache and you are done.</p>
<p>Or, simpler</p>
<p>/usr/sbin/usermod -a -G psacln apache</p>
<p>Then simply make the folders and/or files that php needs access to 0775, which makes it more secure.</p>
<p>You can do similar with any server enviroment, we just happen to use Plesk here.</p>
<p>Rob</p>
<p><a href="http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/">Allowing PHP to write files in a Plesk server environment</a> is a post from: WebSight Design, Inc. company blog. With headquarters in the San Francisco bay area, WebSight Design, Inc. has been providing world class web engineering, creative design and hosting solutions since 1995. <a href="http://Websightdesign.com">WebSight Design</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

