Error al instalar File_Hosting_Script_v5

  • Autor Autor Henry00jj95
  • Fecha de inicio Fecha de inicio
Henry00jj95

Henry00jj95

Zeta
Verificado
Verificación en dos pasos activada
Verificado por Whatsapp
¡Ha verificado su Paypal!
Verificado por Binance
Tengo los archivos del script pero al momento de instalarlo me da un error y quisiera saber si alguien sabe por qué me da dicho error, File_Hosting_Script_v5
 

Adjuntos

  • 7d73f53b-de55-4c17-ab35-f0d27f912dfc.webp
    7d73f53b-de55-4c17-ab35-f0d27f912dfc.webp
    7,4 KB · Visitas: 58
Última edición:
Configura bien el Composer y las rutas
 
Según yo, los configuré bien

Hace unos años lo instalé y no tuve problemas, por problemas con el Hosting me tocó eliminarle
 
Quizá la versión de php
 
Quizá la versión de php
segun yo tengo la version compatible, al momento de instalarlo en el hosting, se queda asi.

1715734573717.webp


navegue a donde navegue, me sigue saliendo la misma vista del home
 
Me pasó algo parecido, y era la versión de PHP. Prueba con varias versiones 7.4, 7.3, 8.0, 8.1...
 
Eso es por el rewrite, tienes el .htaccess (apache/litespeed) correcto o el rewrite por nginx?
segun yo lo tengo en htaccess

el siguiente codigo.

Insertar CODE, HTML o PHP:
# for testing
order allow,deny
allow from all

# override max php upload settings. Might not work on all servers
#php_value upload_max_filesize 4000M
#php_value post_max_size 4000M

# setup xsendfile if the module is enabled
<IfModule mod_xsendfile.c>
  <Files *.php>
    XSendFile On
    SetEnv MOD_X_SENDFILE_ENABLED 1
  </Files>
</IfModule>

# disable mod security for admin area
<IfModule mod_security.c>
    <If "%{REQUEST_URI} =~ m#/admin/#">
        SecFilterEngine Off
        SecFilterScanPOST Off
    </If>
</IfModule>

# disable mod security
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

RewriteEngine On

# redirect www to non-www
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

# force https
#RewriteCond %{HTTPS} !=on
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#RewriteRule . - [E=no-gzip:1]
RewriteBase /

# route everything via index.php if it doesn't exist as a file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?_page_url=$1 [QSA,B]
 
segun yo lo tengo en htaccess

el siguiente codigo.

Insertar CODE, HTML o PHP:
# for testing
order allow,deny
allow from all

# override max php upload settings. Might not work on all servers
#php_value upload_max_filesize 4000M
#php_value post_max_size 4000M

# setup xsendfile if the module is enabled
<IfModule mod_xsendfile.c>
  <Files *.php>
    XSendFile On
    SetEnv MOD_X_SENDFILE_ENABLED 1
  </Files>
</IfModule>

# disable mod security for admin area
<IfModule mod_security.c>
    <If "%{REQUEST_URI} =~ m#/admin/#">
        SecFilterEngine Off
        SecFilterScanPOST Off
    </If>
</IfModule>

# disable mod security
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

RewriteEngine On

# redirect www to non-www
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

# force https
#RewriteCond %{HTTPS} !=on
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#RewriteRule . - [E=no-gzip:1]
RewriteBase /

# route everything via index.php if it doesn't exist as a file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?_page_url=$1 [QSA,B]
A mi me sucedía igual con un script casi igual, lo que hice fue poner apache ya que tenia litespeed, simplemente cambie el vos a apache y muchas cosas me comenzaron a funcionar de maravilla
 
Lo más probable es que sea la versión de php que no es compatible.
 
A mi me sucedía igual con un script casi igual, lo que hice fue poner apache ya que tenia litespeed, simplemente cambie el vos a apache y muchas cosas me comenzaron a funcionar de maravilla
es un VPS, la verdad que no tengo idea como cambiarlo hahaha
Lo más probable es que sea la versión de php que no es compatible.
esta con la versión 8.2 según vi en en la documentación funciona desde la 7.2 para adelante
 
El problema es que la estructura ha cambiado demasiado, intenta con la 7.4 haber como te va.
 
El problema es que la estructura ha cambiado demasiado, intenta con la 7.4 haber como te va.
he probado en un hosting compartido va super bien, pero al instalarlo en el VPS me da ese problema.



EDITO, solucionado


en el VPS toca agregarle las reglas en el /etc/nginx/nginx.conf

el siguiente codigo:

Insertar CODE, HTML o PHP:
#######################################################################
# START NGINX RULES
#######################################################################
    # increase the timeout for uploads
    location /ajax/file_upload_handler {
       proxy_read_timeout 1800;
       proxy_connect_timeout 1800;
       proxy_send_timeout 1800;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
    }

    location / {
        if (!-e $request_filename) {
                rewrite ^/(.*) /index.php?_page_url=$1 last;
        }
    }

    location /files/ {
        internal;
    }

    # these locations would be hidden by .htaccess normally
    location /logs/ {
        deny all;
    }
#######################################################################
# END NGINX RULES
#######################################################################


#######################################################################
# Full /etc/nginx/sites-available/default file example below:
#######################################################################
server {
    listen       80;
    server_name  localhost; # change this for your server
    root /usr/share/nginx/html;
    index index.php;
    client_max_body_size 5G;

    # increase the timeout for uploads
    location /ajax/file_upload_handler {
       proxy_read_timeout 1800;
       proxy_connect_timeout 1800;
       proxy_send_timeout 1800;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

    location / {
        if (!-e $request_filename) {
                rewrite ^/(.*) /index.php?_page_url=$1 last;
        }
    }

    location /files/ {
        internal;
    }

    # these locations would be hidden by .htaccess normally
    location /logs/ {
        deny all;
    }

    location ~* "/\.(htaccess|htpasswd)$" {
        deny    all;
        return  404;
    }
}

con esto el VPS trabaja de maravilla, ahora me toca ponerlo a prueba a ver hasta donde llega y ver si vale la pena.
 
Última edición:
he probado en un hosting compartido va super bien, pero al instalarlo en el VPS me da ese problema.



EDITO, solucionado


en el VPS toca agregarle las reglas en el /etc/nginx/nginx.conf

el siguiente codigo:

Insertar CODE, HTML o PHP:
#######################################################################
# START NGINX RULES
#######################################################################
    # increase the timeout for uploads
    location /ajax/file_upload_handler {
       proxy_read_timeout 1800;
       proxy_connect_timeout 1800;
       proxy_send_timeout 1800;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
    }

    location / {
        if (!-e $request_filename) {
                rewrite ^/(.*) /index.php?_page_url=$1 last;
        }
    }

    location /files/ {
        internal;
    }

    # these locations would be hidden by .htaccess normally
    location /logs/ {
        deny all;
    }
#######################################################################
# END NGINX RULES
#######################################################################


#######################################################################
# Full /etc/nginx/sites-available/default file example below:
#######################################################################
server {
    listen       80;
    server_name  localhost; # change this for your server
    root /usr/share/nginx/html;
    index index.php;
    client_max_body_size 5G;

    # increase the timeout for uploads
    location /ajax/file_upload_handler {
       proxy_read_timeout 1800;
       proxy_connect_timeout 1800;
       proxy_send_timeout 1800;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

    location / {
        if (!-e $request_filename) {
                rewrite ^/(.*) /index.php?_page_url=$1 last;
        }
    }

    location /files/ {
        internal;
    }

    # these locations would be hidden by .htaccess normally
    location /logs/ {
        deny all;
    }

    location ~* "/\.(htaccess|htpasswd)$" {
        deny    all;
        return  404;
    }
}

con esto el VPS trabaja de maravilla, ahora me toca ponerlo a prueba a ver hasta donde llega y ver si vale la pena.

Entonces el programa estaba pensado para Apache/Litespeed.
Has re-escrito las reglas del htaccess en .conf de nginx
 

Temas similares

M
Respuestas
2
Visitas
737
mcloud
M
Atrás
Arriba