Topic: Error instalacion

Bueno a ver si me aclaro un poco,

he subido el contenido del de la carpeta upload a la raiz del hostin, odificado el CHMOD de las carpetas up, thumbs e images.

el config lo tengo asi

<?

/* -----------------------------------------

  Chevereto - Script de hosting de imagenes
  Nightly Build 1.9 (11/04/2010)
  http://www.chevereto.com/

  Released under the GPL 2.0
  Copyright (C) 2008 by Rodolfo Berrios
  <inbox at rodolfoberrios dot com>

  ----------------------------------------- */

// Language
define('LANG', 'es'); // en - English | es - Español | fa - Farsi | fr - Français | nl - Dutch | cn - ZH-CN (Chinese)

// App
define('APP_NAME', 'Imagenes de Cowboysdelared'); // Your image hosting name
define('TAG_LINE', 'Image Hosting'); // Your tagline (for doctitles and logo)
define('DESCRIPTION', 'Demo Chevereto is a free image hosting service powered by Chevereto'); // For meta description
define('KEYWORDS', 'images, photos, image hosting, photo hosting, free image hosting'); // 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 = '2'; // Max. image size (Mbytes)
$max_by = $max_mb*1048576; // (bytes)
$max_name = '10'; // 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 = true; // true: Allows uploading just for your domain - false: Allows upload from anywhere (post from another website)
$debug_mode = true; // false: Debug OFF - true: Debug ON.
$cut_url = true; // true: Short URLs (TinyURL tr.im etc.) - false: normal url (http://mysite.com/images/image.jpg).
$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 = $_SERVER['imagenes.cowboysdelared.net']; // --> EXAMPLE: $DOM_SCRIPT = 'mysite.com';

///////////////////////////////
/// 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);

?>

Thumbs up

Re: Error instalacion

Y cual es el problema?

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Error instalacion

esto es lo que me pasa, no veo ningun error

http://img210.imageshack.us/img210/5105/14914341.jpg

Thumbs up

Re: Error instalacion

Necesitas PHP en tu servidor... Lo tienes habilitado?

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Error instalacion

Rodolfo wrote:

Necesitas PHP en tu servidor... Lo tienes habilitado?


si hay corriendo 5 webs

eDITO no lo tenia activao en el subdomino sad

Last edited by ide (2010-11-07 17:58:50)

Thumbs up

Re: Error instalacion

buenos quedo bien o eso creo
http://imagenes.cowboysdelared.net/

¿como tendria que poner el hotlink para que solo fuera valido en www.cowboysdelared.net la vision de las imagenes? por mas que lo intento me bloquea ese dominio tambien.
Gracias y un saludo

Thumbs up

Re: Error instalacion

Leíste la documentación?

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Error instalacion

si mas o menos con estos archivos me manejo pero est se me va un pcoo.

<Files ~ "^\.ht">
order allow,deny
deny from all
</files>

Options -Indexes

ErrorDocument 400 /index.php?p=400
ErrorDocument 401 /index.php?p=401
ErrorDocument 403 /index.php?p=403
ErrorDocument 404 /index.php?p=404
ErrorDocument 500 /index.php?p=500
ErrorDocument 503 /index.php?p=503

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?cowboysdelared.net[NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?foro.cowboysdelared.net[NC]
# denegar acceso a todas las imagenes
RewriteRule  /.*\.(jpg|png|bmp|gif)$  http://imagenes.cowboysdelared.net/no.jpe [NC,R,L]

asi esta la cosa puesta y este es el resultado

http://img826.imageshack.us/img826/4340/sinttulofw.jpg

Thumbs up

Re: Error instalacion

si es mas de un dominio tienes que poner [NC, OR] en las lineas que vienen antes del ultimo dominio...

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?cowboysdelared.net[NC,OR]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?foro.cowboysdelared.net[NC]
rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

10

Re: Error instalacion

me tira un error 500 internal server

Thumbs up

Re: Error instalacion

http://www.htaccesstools.com/hotlink-protection/
http://www.htmlbasix.com/disablehotlinking.shtml

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

12

Re: Error instalacion

me siguen saliendo, me sale el sigueiente codigo
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?cowboysdelared.net(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?foro.cowboysdelared.net(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?imagenes.cowboysdelared.net(/)?.*$     [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://imagenes.cowboysdelared.net/no.jpe [R,NC]

Thumbs up

Re: Error instalacion

htaccess es muy sensible, fijate que no hay otro error en otras lineas.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!