• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

HOW-TO: Fix Chevereto Install Issues with 000webhost! (Maybe others!)

cralor

Chevereto Noob
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
Code:
$PATH_SERVER = $_SERVER['DOCUMENT_ROOT'];
to
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';
to
Code:
$PATH_SERVER = '/public_html/images';
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
Code:
if(!file_exists($PATH_SERVER.'/.htaccess')) {
to
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')) {
 
Back
Top