I will teach you how to fix the issues you have been getting on Chevereto with 000webhost (and maybe others)
First, I'd like to thank http://www.elakiri.com/forum/showthread.php?t=254800&page=2 for the information!!!
1) Download Chevereto from chevereto.com
2) Open and connect to your site through FTP
3) Upload all the Chevereto files you downloaded to the place you want
4) Go to the "config.php" and open/edit it.
5) Change
to
NOTICE: If you are using a subdomain (even a subdomain of a subdomain), you MUST change this from the above!!
Example: If I have the free site hello.000webhost.com and I want to make images.hello.000webhost.com for Chevereto, I must change
to
In other words: put PATH_SERVER to your Chevereto ROOT.
6) Save, exit, and upload "config.php" back to your server
7) Go to the "engine.php" and open/edit it.
8) Change
to
AGAIN: You must put the CORRECT path. The above code is assuming you are uploading Chevereto to ROOT. See above for more details.
ALSO: Change *USERNAME HERE* to your 000webhost username. Example: a24789320
9) Save, exit, and upload "engine.php" back to your server.
10) Access your Chevereto and have fun!!!
Easy as that!! No FTP mode!! Only change PATH_SERVER and engine.php!!!
Good luck!!!
----------------------------------
Still confused? See my script below:
I host my Chevereto on host.NAME.comoj.com (so keep that in mind when reading my code)
CONFIG.PHP (THE SIGNIFICANT STUFF)
ENGINE.PHP (THE SIGNIFICANT STUFF)
First, I'd like to thank http://www.elakiri.com/forum/showthread.php?t=254800&page=2 for the information!!!
1) Download Chevereto from chevereto.com
2) Open and connect to your site through FTP
3) Upload all the Chevereto files you downloaded to the place you want
4) Go to the "config.php" and open/edit it.
5) Change
Code:
$PATH_SERVER = $_SERVER['DOCUMENT_ROOT'];
Code:
$PATH_SERVER = '/public_html';
NOTICE: If you are using a subdomain (even a subdomain of a subdomain), you MUST change this from the above!!
Example: If I have the free site hello.000webhost.com and I want to make images.hello.000webhost.com for Chevereto, I must change
Code:
$PATH_SERVER = '/public_html';
Code:
$PATH_SERVER = '/public_html/images';
6) Save, exit, and upload "config.php" back to your server
7) Go to the "engine.php" and open/edit it.
8) Change
Code:
if(!file_exists($PATH_SERVER.'/.htaccess')) {
Code:
if(!file_exists('/home/*USERNAME HERE*/public_html/.htaccess')) {
AGAIN: You must put the CORRECT path. The above code is assuming you are uploading Chevereto to ROOT. See above for more details.
ALSO: Change *USERNAME HERE* to your 000webhost username. Example: a24789320
9) Save, exit, and upload "engine.php" back to your server.
10) Access your Chevereto and have fun!!!
Easy as that!! No FTP mode!! Only change PATH_SERVER and engine.php!!!
Good luck!!!
----------------------------------
Still confused? See my script below:
I host my Chevereto on host.NAME.comoj.com (so keep that in mind when reading my code)
CONFIG.PHP (THE SIGNIFICANT STUFF)
Code:
// SERVER ///
/* We get this values with $_SERVER. If your server doesn't resolve this values The script will not work.
If the script doesn't work, you must change this values to be like values in the comments (see the exaple below) */
$DOM_SCRIPT = $_SERVER['SERVER_NAME']; // --> mysite.com
$PATH_SERVER = '/public_html/host'; // --> /public_html (pssst.. NO ENDING SLASH!)
// example:
#$DOM_SCRIPT = 'mysite.com';
#$PATH_SERVER = '/public_html';
/* Btw, you can check this values by uncommenting this: */
#echo 'DOM: '.$DOM_SCRIPT.' - PATH: '.$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'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 = 'ftp.mysite.com';
$ftp_user = ''; // valid username.
$ftp_pass = ''; // Valid password.
// NOTICE: FTP user must have access to the script folder.
ENGINE.PHP (THE SIGNIFICANT STUFF)
Code:
if(!file_exists('/home/a1726402/public_html/host/.htaccess')) {