Foros del Web » Programando para Internet » PHP » CodeIgniter »

[SOLUCIONADO] Problemas al subir mi proyecto al servidor

Estas en el tema de Problemas al subir mi proyecto al servidor en el foro de CodeIgniter en Foros del Web. Hola todos! Agradezco de antemano por ayudar Estoy trabajando un proyecto en codeigniter y todo de maravilla, pero cuando subi el proyecto al servidor de ...
  #1 (permalink)  
Antiguo 24/01/2015, 21:55
 
Fecha de Ingreso: mayo-2011
Mensajes: 3
Antigüedad: 12 años, 10 meses
Puntos: 0
Mensaje Problemas al subir mi proyecto al servidor

Hola todos!
Agradezco de antemano por ayudar
Estoy trabajando un proyecto en codeigniter y todo de maravilla, pero cuando subi el proyecto al servidor de pruebas [URL="http://siget.260mb.net/"]http://siget.260mb.net/[/URL] e intento acceder a cualquier controlador/url que no sea la por defecto me sale el siguiente error:
Código PHP:
Internal Server Error

The server encountered an internal error 
or misconfiguration and was unable to complete your request.

Please contact the server administratorroot@foo.tld and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionallya 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request
Lei en un sitio que podria ser por el sistema de detección configurado (URI PROTOCOL) application/config/config.php:
Código PHP:
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string.  The default setting of 'AUTO' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO'            Default - auto detects
| 'PATH_INFO'        Uses the PATH_INFO
| 'QUERY_STRING'    Uses the QUERY_STRING
| 'REQUEST_URI'        Uses the REQUEST_URI
| 'ORIG_PATH_INFO'    Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol'] = "AUTO"
pero intente con todos los posibles y sigue sin funcionar.

Agradeceria si alguno sepa que otra posible configuración debe modificarse para que funcione.

Gracias!!!
  #2 (permalink)  
Antiguo 27/01/2015, 22:18
 
Fecha de Ingreso: mayo-2011
Mensajes: 3
Antigüedad: 12 años, 10 meses
Puntos: 0
Respuesta: Problemas al subir mi proyecto al servidor

Luego de tantos hallazgos encontre la solución :D
Resulta que el problema radicada en que mi archivo .htaccess
En mi servidor local estaba de esta manera:
Código PHP:
Ver original
  1. <IfModule mod_rewrite.c>
  2.     RewriteEngine On
  3.     RewriteCond %{REQUEST_FILENAME} !-f
  4.     RewriteCond %{REQUEST_FILENAME} !-d
  5.     RewriteRule ^(.*)$ /siget/index.php/$1 [L]
  6. </IfModule>
  7. <IfModule !mod_rewrite.c>
  8.     ErrorDocument 404 /siget/index.php
  9. </IfModule>
Y no me percate de modificarlo cuando subi el proyecto, en el host una vez subido quedaria de la siguiente manera:
Código PHP:
Ver original
  1. <IfModule mod_rewrite.c>
  2.     RewriteEngine On
  3.     RewriteCond %{REQUEST_FILENAME} !-f
  4.     RewriteCond %{REQUEST_FILENAME} !-d
  5.     RewriteRule ^(.*)$ /index.php/$1 [L]
  6. </IfModule>
  7. <IfModule !mod_rewrite.c>
  8.     ErrorDocument 404 /index.php
  9. </IfModule>

Espero que le sirva a alguno :)

Etiquetas: errores, php, servidor
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:50.