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

Subdomain installation error, like others....

Nawid

Chevereto Noob
I want to use this nice script in my subdomain. But I'm getting an error, just like other people.

And I know, I should use the right path of my server. I've read all topics here, but still, don't know why this won't work...

I want to use it on http://upload.schoollife.nl/

I've edited the

Code:
$DOM_SCRIPT
Code:
$PATH_SERVER

still won't work...

Currently, I've uploaded all the files in my own site:

/subdomains/upload/httpdocs/

or better

/var/www/vhosts/schoollife.nl/subdomains/upload/httpdocs/

I've tryed all possible edits with these. What am I doing wrong?

Code:
$DOM_SCRIPT = $_SERVER['Could you help me please?']; // --> mysite.com
$PATH_SERVER = $_SERVER['Could you help me please?']; // --> /public_html (pssst.. NO ENDING SLASH!)
 
Now I changed it to another dir with these in my config

Code:
$DOM_SCRIPT = $_SERVER['http://upload.schoollife.nl/up']; // --> mysite.com
$PATH_SERVER = $_SERVER['/var/www/vhosts/schoollife.nl/subdomains/upload/httpdocs/up']; // --> /public_html (pssst.. NO ENDING SLASH!)

still not working...
 
when you open config.php it says something like this:
PHP:
///////////////////////////////////////////////////////////////////
///// DO NOT EDIT BELOW THIS - (do it if the script can't run) ////
///////////////////////////////////////////////////////////////////

// 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 = $_SERVER['DOCUMENT_ROOT']; // --> /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;

Look in the example...
Does it says "edit the $_SERVER[''] value"?

$_SERVER['http://upload.schoollife.nl/up'] is ridiculus and has no sense. $_SERVER is an array that contains information about the server. Please read http://php.net/manual/en/reserved.variables.server.php

So pretty please... Read the instructions carefully. I have seen this error a lot of times... You are too lazy to get this.
 
you're totally right, sorry....

I changed the dir again and still it's not working, I've read the whole config...

it looks like this at the moment
PHP:
///////////////////////////////////////////////////////////////////
///// DO NOT EDIT BELOW THIS - (do it if the script can't run) ////
///////////////////////////////////////////////////////////////////

// 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 = 'upload.schoollife.nl'; // --> mysite.com
$PATH_SERVER = '/var/www/vhosts/schoollife.nl/subdomains/upload/httpdocs'; // --> /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 ([url]http://php.net/ftp[/url]). 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 = '[url=ftp://ftp.mysite.com]ftp.mysite.com[/url]';
$ftp_user = ''; // valid username.
$ftp_pass = ''; // Valid password.
// NOTICE: FTP user must have access to the script folder.


///////////////////////////////
/// DO NOT TOUCH BELOW THIS ///
///////////////////////////////

// PATH //
/* Uhhh.. Can't touch this!. */
$path = dirname($_SERVER['PHP_SELF']);
if (strlen($path)>1) { 
    define('PATH_SCRIPT', $path.'/');
} else {
    define('PATH_SCRIPT', $path);
}

// URL //
/* Uhhh... Uhhh.. Can't touch this!. */
define('URL_SCRIPT', 'http://'.$DOM_SCRIPT.PATH_SCRIPT);

?>
 
Back
Top