<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Chevereto Forums - HOW-TO: Fix Chevereto Install Issues with 000webhost! (Maybe others!)]]></title>
		<link>http://chevereto.com/forums/topic483-howto-fix-chevereto-install-issues-with-000webhost-maybe-others.html</link>
		<description><![CDATA[The most recent posts in HOW-TO: Fix Chevereto Install Issues with 000webhost! (Maybe others!).]]></description>
		<lastBuildDate>Wed, 10 Mar 2010 22:10:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[HOW-TO: Fix Chevereto Install Issues with 000webhost! (Maybe others!)]]></title>
			<link>http://chevereto.com/forums/post2356.html#p2356</link>
			<description><![CDATA[<p>I will teach you how to fix the issues you have been getting on Chevereto with 000webhost (and maybe others)</p><p>First, I&#039;d like to thank <a href="http://www.elakiri.com/forum/showthread.php?t=254800&amp;page=2">http://www.elakiri.com/forum/showthread … amp;page=2</a> for the information!!!</p><p><strong>1) Download Chevereto from chevereto.com<br />2) Open and connect to your site through FTP<br />3) Upload all the Chevereto files you downloaded to the place you want<br />4) Go to the &quot;config.php&quot; and open/edit it.<br />5) Change</strong> </p><div class="codebox"><pre><code>$PATH_SERVER = $_SERVER[&#039;DOCUMENT_ROOT&#039;];</code></pre></div><p><strong> to</strong> </p><div class="codebox"><pre><code>$PATH_SERVER = &#039;/public_html&#039;;</code></pre></div><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>NOTICE: If you are using a subdomain (even a subdomain of a subdomain), you MUST change this from the above!!<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Example: If I have the free site hello.000webhost.com and I want to make images.hello.000webhost.com for Chevereto, I must change </em></p><div class="codebox"><pre><code>$PATH_SERVER = &#039;/public_html&#039;;</code></pre></div><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<em> to</em> </p><div class="codebox"><pre><code>$PATH_SERVER = &#039;/public_html/images&#039;;</code></pre></div><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; In other words: put PATH_SERVER to your Chevereto ROOT.<strong><br />6) Save, exit, and upload &quot;config.php&quot; back to your server<br />7) Go to the &quot;engine.php&quot; and open/edit it.<br />8) Change </strong></p><div class="codebox"><pre><code>if(!file_exists($PATH_SERVER.&#039;/.htaccess&#039;)) {</code></pre></div><p> <strong>to</strong> </p><div class="codebox"><pre><code>if(!file_exists(&#039;/home/*USERNAME HERE*/public_html/.htaccess&#039;)) {</code></pre></div><p><em><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AGAIN: You must put the CORRECT path. The above code is assuming you are uploading Chevereto to ROOT. See above for more details.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ALSO: Change *USERNAME HERE* to your 000webhost username. Example: a24789320</em></p><p><strong>9) Save, exit, and upload &quot;engine.php&quot; back to your server.<br />10) Access your Chevereto and have fun!!!</strong></p><p>Easy as that!! No FTP mode!! Only change PATH_SERVER and engine.php!!!</p><p>Good luck!!!</p><br /><br /><br /><br /><br /><br /><br /><p>----------------------------------</p><p>Still confused? See my script below:</p><p>I host my Chevereto on <strong>host.<em>NAME</em>.comoj.com</strong> (so keep that in mind when reading my code)</p><p><strong>CONFIG.PHP (THE SIGNIFICANT STUFF)</strong><br /></p><div class="codebox"><pre><code>// SERVER ///
/* We get this values with $_SERVER. If your server doesn&#039;t resolve this values The script will not work.
   If the script doesn&#039;t work, you must change this values to be like values in the comments (see the exaple below) */

$DOM_SCRIPT = $_SERVER[&#039;SERVER_NAME&#039;]; // --&gt; mysite.com
$PATH_SERVER = &#039;/public_html/host&#039;; // --&gt; /public_html (pssst.. NO ENDING SLASH!)

    // example:
    #$DOM_SCRIPT = &#039;mysite.com&#039;;
    #$PATH_SERVER = &#039;/public_html&#039;; 
    /* Btw, you can check this values by uncommenting this: */
    #echo &#039;DOM: &#039;.$DOM_SCRIPT.&#039; - PATH: &#039;.$PATH_SERVER;

// FTP MODE //
/* Use this if you want to upload the files through ftp php (http://php.net/ftp). This is handly when your server config don&#039;t
   allow to upload files without CHMOD 777, like almost all the cPanel. Using this, you can forget the CHMOD ;) */
$use_ftp = false; // true: Uses ftp to upload files - false: Upload without ftp.
$ftp_host = $DOM_SCRIPT; // Change this if your ftp host is not the same as your mysite.com -- example: $ftp_host = &#039;ftp.mysite.com&#039;;
$ftp_user = &#039;&#039;; // valid username.
$ftp_pass = &#039;&#039;; // Valid password.
// NOTICE: FTP user must have access to the script folder.</code></pre></div><br /><p><strong>ENGINE.PHP (THE SIGNIFICANT STUFF)</strong><br /></p><div class="codebox"><pre><code>if(!file_exists(&#039;/home/a1726402/public_html/host/.htaccess&#039;)) {</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (cralor)]]></author>
			<pubDate>Wed, 10 Mar 2010 22:10:14 +0000</pubDate>
			<guid>http://chevereto.com/forums/post2356.html#p2356</guid>
		</item>
	</channel>
</rss>

