• 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.

Installation not grabbing Stylesheet or Images

Status
Not open for further replies.

kestabillo

Chevereto Noob
The Chevereto Installation isn't grabbing the Stylesheet or any of the images. I think the Path is set wrong in the config.php

I've installed chevereto in the public html folder .. according to the testing_tool, it should work on my server.

Could anyone help me please?

--------------------------------------------------------------------------------------------------------------------------------

edit, quoted from the config.php (this is what's currently set):

/**
* Sets the Paths and Base URL for the script
* If you find weird issues this may be caused by your server who doesn't
* handle the $_SERVER vars properly, so you must enter this paths manually.
*/
define('__ROOT_DIR__', str_replace('\\','/',dirname(dirname(__FILE__))).'/'); // str_replace('\\','/',dirname(__FILE__))
define('__RELATIVE_ROOT__', str_ireplace($_SERVER['DOCUMENT_ROOT'], '', __ROOT_DIR__));
define('__BASE_URL__', SERVER_PROTOCOL.HTTP_HOST.__RELATIVE_ROOT__);
 
Try this:

Code:
define('__ROOT_DIR__', 'YOUR_ABSOLUTE_ROOT_DIR'); // like /home/myuser/myhtml/
define('__RELATIVE_ROOT__', '/'); // if you are on the root public folder.

I haven't place your paths for your convenience.
 
Rodolfo said:
Try this:

Code:
define('__ROOT_DIR__', 'YOUR_ABSOLUTE_ROOT_DIR'); // like /home/myuser/myhtml/
define('__RELATIVE_ROOT__', '/'); // if you are on the root public folder.

I haven't place your paths for your convenience.

Just tried the above, and I might be getting the ROOT DIR wrong.

The furthest folder i can go back to is:

toplevel: /
2nd level: domains
3rd level: hidden
4th level: html

and in that html folder, that's where all the chevereto files reside.

for some reason I'm getting "Can't find language file. Please check your lang in the config.php file." so I guess it's still not grabbing the right paths :(

thank you very much for your fast response btw! :)

-------------------------------------------------

edit. this is how it looks like right now:

define('__ROOT_DIR__', '/example/site/html/'); // like /home/myuser/myhtml/
define('__RELATIVE_ROOT__', '/'); // if you are on the root public folder.
define('__BASE_URL__', SERVER_PROTOCOL.HTTP_HOST.__RELATIVE_ROOT__);
 
Add this at the end of config.php (before ?>):
PHP:
echo '<pre>'; print_r($_SERVER); echo '</pre>';

Then, you will see the full paths and a lot more info. Once you get the real root dir ([DOCUMENT_ROOT]) you place it on __ROOT_DIR__ and then remove the added code.

Also, edit your post when you fix this, so no one can knows your full path (security reasons)
 
Status
Not open for further replies.
Back
Top