Hello,
I am using 1.91, the latest available, and I am getting an invalid $PATH_SERVER error as well as a $DOM_SCRIPT error.
I have fixed the $DOM_SCRIPT error and tried to fix the $PATH_SERVER error by following my phpinfo() information.
Please help me fix this problem; I understand that it is due to a badly setup server, but I have no way to change that since I am using shared hosting.
Following are my config.php and my phpinfo()
http://www.itsuptoyoub.ro/phpinfo.php
http://www.itsuptoyoub.ro/config.php
I am using 1.91, the latest available, and I am getting an invalid $PATH_SERVER error as well as a $DOM_SCRIPT error.
I have fixed the $DOM_SCRIPT error and tried to fix the $PATH_SERVER error by following my phpinfo() information.
Please help me fix this problem; I understand that it is due to a badly setup server, but I have no way to change that since I am using shared hosting.
Following are my config.php and my phpinfo()
http://www.itsuptoyoub.ro/phpinfo.php
Code:
Environment
Variable Value
DOCUMENT_ROOT /home/content/d/i/l/dillodort/html
PATH /bin:/usr/bin:/usr/local/bin
PHPRC /home/content/d/i/l/dillodort/html
PHP_FCGI_CHILDREN 3
PHP_FCGI_MAX_REQUESTS 500
REDIRECT_STATUS 200
SPI TRUE
PHP Variables
Variable Value
_SERVER["DOCUMENT_ROOT"] /var/chroot/home/content/d/i/l/dillodort/html
_SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin
_SERVER["PHPRC"] /home/content/d/i/l/dillodort/html
_SERVER["PHP_FCGI_CHILDREN"] 3
_SERVER["PHP_FCGI_MAX_REQUESTS"] 500
_SERVER["REDIRECT_STATUS"] 200
_SERVER["SPI"] TRUE
_SERVER["FCGI_ROLE"] RESPONDER
_SERVER["HTTP_ACCEPT"] image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/x-silverlight, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_HOST"] [url=http://www.itsuptoyoub.ro]www.itsuptoyoub.ro[/url]
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
_SERVER["PATH_INFO"] /phpinfo.php
_SERVER["RAILS_ENV"] production
_SERVER["REMOTE_ADDR"] 206.47.10.100
_SERVER["REMOTE_PORT"] 53014
_SERVER["SCRIPT_FILENAME"] /var/chroot/home/content/d/i/l/dillodort/html/itsuptoyoubro/phpinfo.php
_SERVER["SERVER_ADDR"] 72.167.232.224
_SERVER["SERVER_ADMIN"] support@supportwebsite.com
_SERVER["SERVER_NAME"] [url=http://www.itsuptoyoub.ro]www.itsuptoyoub.ro[/url]
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.33 Server at [url=http://www.itsuptoyoub.ro]www.itsuptoyoub.ro[/url] Port 80</ADDRESS>
_SERVER["SERVER_SOFTWARE"] Apache
_SERVER["SUBDOMAIN_DOCUMENT_ROOT"] /var/chroot/home/content/d/i/l/dillodort/html/itsuptoyoubro
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /phpinfo.php
_SERVER["SCRIPT_NAME"] /phpinfo.php
_SERVER["PHP_SELF"] /phpinfo.php
_SERVER["REQUEST_TIME"] 1298317860
http://www.itsuptoyoub.ro/config.php
Code:
<?
/* -----------------------------------------
Chevereto - Script de hosting de imagenes
Nightly Build 1.9 (11/04/2010)
[url]http://www.chevereto.com/[/url]
Released under the GPL 2.0
Copyright (C) 2008 by Rodolfo Berrios
<inbox at rodolfoberrios dot com>
----------------------------------------- */
// Language
define('LANG', 'en'); // en - English | es - Español | fa - Farsi | fr - Français | nl - Dutch | cn - ZH-CN (Chinese)
// App
define('APP_NAME', 'hey bro,'); // Your image hosting name
define('TAG_LINE', 'its up to you bro'); // Your tagline (for doctitles and logo)
define('DESCRIPTION', 'i am just saying my opinion. i only have this opinion from reading.'); // For meta description
define('KEYWORDS', 'images, photos, image hosting, photo hosting, ytmnsfw, nsfw, tim abreau, barrypothead'); // For meta keywords
// Folders
/* If you change this, you also must change the folders name. */
define('DIR_UP','up/');
define('DIR_IM','images/'); // Change this to have something like /X/filename.jpg - where "X/" is the folder name.
define('DIR_WORKING',DIR_UP.'working/');
define('DIR_TEMP',DIR_UP.'temp/');
define('DIR_TH','thumbs/');
// Min-Max values -> php.ini rules the nation...
$max_mb = '8'; // Max. image size (Mbytes)
$max_by = $max_mb*1048576; // (bytes)
$max_name = '20'; // Max. file name lenght.
// Thumbs
$mini_ancho = '150'; // Thumb width (pixels)
$mini_alto = '150'; // Thumb height (pixels)
// Resize
$lowres = '16'; // Min. resize value (pixels)
$higres = '1280'; // Max. resize value (pixels)
// Options
$lim_act = false; // true: Allows uploading just for your domain - false: Allows upload from anywhere (post from another website)
$debug_mode = false; // false: Debug OFF - true: Debug ON.
$cut_url = true; // true: Short URLs (TinyURL tr.im etc.) - false: normal url ([url]http://mysite.com/images/image.jpg[/url]).
$cut_url_service = 'tinyurl'; // tinyurl
$cut_url_user = true; // If $cut_url = true -> true: Allows your users to cut their urls (preference) - false: Users can't choose to cut or not.
$allow_over_resize = false; // true: Allows over resize images - false: Don't allow over resize.
///////////////////////////////////////////////////////////////////
///// DO NOT EDIT BELOW THIS - (do it if the script can't run) ////
///////////////////////////////////////////////////////////////////
/* We get this value with $_SERVER. If your server doesn't resolve this value, the script will not work.
If the script doesn't work, you must manually set this value. (look the example) */
$DOM_SCRIPT = 'itsuptoyoub.ro'; // --> EXAMPLE: $DOM_SCRIPT = 'mysite.com';
///////////////////////////////
/// DO NOT TOUCH BELOW THIS ///
///////////////////////////////
// PATH
/* Uhhh.. Can't touch this!. */
$path = '/var/chroot/home/content/d/i/l/dillodort/html/itsuptoyoubro';
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);
?>