<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>vpsBible Forums &#187; Topic: WP Stackscript - install to sub directory?</title>
		<link>http://vpsbible.com/forums/topic/wp-stackscript-install-to-sub-directory</link>
		<description>Setup Unmanaged VPS for Linux Noobs!</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 04:18:50 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://vpsbible.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://vpsbible.com/forums/rss/topic/wp-stackscript-install-to-sub-directory" rel="self" type="application/rss+xml" />

		<item>
			<title>the_guv on "WP Stackscript - install to sub directory?"</title>
			<link>http://vpsbible.com/forums/topic/wp-stackscript-install-to-sub-directory#post-1345</link>
			<pubDate>Tue, 10 Aug 2010 21:05:07 +0000</pubDate>
			<dc:creator>the_guv</dc:creator>
			<guid isPermaLink="false">1345@http://vpsbible.com/forums/</guid>
			<description>&#60;p&#62;Hi Barnaby .. apologies for delay .. you knocked the nail on teh head ..&#60;/p&#62;
&#60;p&#62;#inc_scriptWPSvn&#60;br /&#62;
cd /home/$USER/public_html/$DOMAIN/public&#60;br /&#62;
mv index.php indexBACKUP.php&#60;br /&#62;
svn co &#60;a href=&#34;http://svn.automattic.com/wordpress/tags/$WPVER&#34; rel=&#34;nofollow&#34;&#62;http://svn.automattic.com/wordpress/tags/$WPVER&#60;/a&#62; .&#60;/p&#62;
&#60;p&#62;You'll have to use the manual method, the script equivalent, else tweak the script but manual will be faster.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Barnaby on "WP Stackscript - install to sub directory?"</title>
			<link>http://vpsbible.com/forums/topic/wp-stackscript-install-to-sub-directory#post-1308</link>
			<pubDate>Tue, 03 Aug 2010 21:59:07 +0000</pubDate>
			<dc:creator>Barnaby</dc:creator>
			<guid isPermaLink="false">1308@http://vpsbible.com/forums/</guid>
			<description>&#60;p&#62;There was a problem when I tried to install WP into a sub directory.&#60;/p&#62;
&#60;p&#62;I changed:&#60;/p&#62;
&#60;p&#62;export DOMAIN=”blog.com” to&#60;br /&#62;
export DOMAIN=”blog.com/subdir”&#60;/p&#62;
&#60;p&#62;but WP wasn't available at the URL blog.com/subdir. &#60;/p&#62;
&#60;p&#62;I looked at the directory structure and found the script had installed WP into public_html/blog.com, i.e. the same level as the public directory. I wanted it installed into public_html/blog.com/public/subdir.&#60;/p&#62;
&#60;p&#62;Thinking the domain name variable might actually be the path, I tried adding /public/subdir but that didn't work either.&#60;/p&#62;
&#60;p&#62;I noticed this section in the script:&#60;/p&#62;
&#60;p&#62;#inc_scriptWPSvn&#60;br /&#62;
cd /home/$USER/public_html/$DOMAIN/public&#60;br /&#62;
mv index.php indexBACKUP.php&#60;br /&#62;
svn co &#60;a href=&#34;http://svn.automattic.com/wordpress/tags/$WPVER&#34; rel=&#34;nofollow&#34;&#62;http://svn.automattic.com/wordpress/tags/$WPVER&#60;/a&#62; .&#60;/p&#62;
&#60;p&#62;Now, if my variable is set to:&#60;/p&#62;
&#60;p&#62;export DOMAIN=&#34;blog.com/subdir&#34; &#60;/p&#62;
&#60;p&#62;the location becomes:&#60;/p&#62;
&#60;p&#62;/home/$USER/public_html/blog.com/subdir/public&#60;/p&#62;
&#60;p&#62;It should be:&#60;/p&#62;
&#60;p&#62;/home/$USER/public_html/blog.com/public/subdir&#60;/p&#62;
&#60;p&#62;Not sure if this is possible but, could the variable DOMAIN be changed to ROOT-DOMAIN and a variable of SUB-DIR be added so the command would read:&#60;/p&#62;
&#60;p&#62;cd /home/$USER/public_html/$ROOT-DOMAIN/public/$SUB-DIR&#60;/p&#62;
&#60;p&#62;If WP is to be installed in the root directory, the SUB-DIR variable could be commented out.&#60;/p&#62;
&#60;p&#62;I guess you'd also need an if statement to either append $SUB-DIR to the path or not.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>the_guv on "WP Stackscript - install to sub directory?"</title>
			<link>http://vpsbible.com/forums/topic/wp-stackscript-install-to-sub-directory#post-1300</link>
			<pubDate>Mon, 02 Aug 2010 21:26:42 +0000</pubDate>
			<dc:creator>the_guv</dc:creator>
			<guid isPermaLink="false">1300@http://vpsbible.com/forums/</guid>
			<description>&#60;p&#62;copy/replace for sure, just be aware that there is no variable used when  the vhost is first made .. sed replacement commands are used afterwards instead &#60;/p&#62;
&#60;p&#62;and be aware when you're root when you use ~/ ..!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Barnaby on "WP Stackscript - install to sub directory?"</title>
			<link>http://vpsbible.com/forums/topic/wp-stackscript-install-to-sub-directory#post-1291</link>
			<pubDate>Mon, 02 Aug 2010 16:59:06 +0000</pubDate>
			<dc:creator>Barnaby</dc:creator>
			<guid isPermaLink="false">1291@http://vpsbible.com/forums/</guid>
			<description>&#60;p&#62;Thanks.&#60;/p&#62;
&#60;p&#62;Instead of replacing USER with the actual username I guess I could use the variable $USER or, even easier, just use ~/ to replace home/USER/
&#60;/p&#62;</description>
		</item>
		<item>
			<title>the_guv on "WP Stackscript - install to sub directory?"</title>
			<link>http://vpsbible.com/forums/topic/wp-stackscript-install-to-sub-directory#post-1280</link>
			<pubDate>Sun, 01 Aug 2010 17:56:34 +0000</pubDate>
			<dc:creator>the_guv</dc:creator>
			<guid isPermaLink="false">1280@http://vpsbible.com/forums/</guid>
			<description>&#60;p&#62;&#34;What changes have to be made to the WP Stackscript to achieve this?&#34;&#60;/p&#62;
&#60;p&#62;change the domain and the db details&#60;/p&#62;
&#60;p&#62;&#34;Also, once I've finished testing a blog, how do I remove it and it's database? &#34;&#60;/p&#62;
&#60;p&#62;bin a few folders and files:-&#60;/p&#62;
&#60;p&#62;- web files&#60;br /&#62;
sudo rm -R /home/USER/public_html/somesite.com&#60;br /&#62;
- virtual host&#60;br /&#62;
sudo rm /usr/local/nginx/sites-available/somesite.com&#60;/p&#62;
&#60;p&#62;for the db, pop into mysql:-&#60;/p&#62;
&#60;p&#62;mysql -u root -p&#60;br /&#62;
.. then ..&#60;br /&#62;
drop DATABASEname;&#60;/p&#62;
&#60;p&#62;.. get the db right .. :P .. and don't drop the semi-colon
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Barnaby on "WP Stackscript - install to sub directory?"</title>
			<link>http://vpsbible.com/forums/topic/wp-stackscript-install-to-sub-directory#post-1260</link>
			<pubDate>Thu, 29 Jul 2010 20:28:22 +0000</pubDate>
			<dc:creator>Barnaby</dc:creator>
			<guid isPermaLink="false">1260@http://vpsbible.com/forums/</guid>
			<description>&#60;p&#62;I've run the Top Cat script so I have an initial domain and directory structure.&#60;/p&#62;
&#60;p&#62;For testing purposes, I want several WP installations, each in different sub directories.&#60;/p&#62;
&#60;p&#62;What changes have to be made to the WP Stackscript to achieve this?&#60;/p&#62;
&#60;p&#62;Is it as simple as changing:&#60;br /&#62;
export DOMAIN=”yourblog.com” to&#60;br /&#62;
export DOMAIN=”yourblog.com/subdirectory” ?&#60;/p&#62;
&#60;p&#62;Also, once I've finished testing a blog, how do I remove it and it's database?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

