Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [laravel 5.2] Przeniesienie na serwer dedykowany- błąd 500
Forum PHP.pl > Forum > PHP
miccom
Cześć
Proszę o pomoc.
Do tej pory zawsze przenosiłem katalog główny, bazę danych, zmieniałem dane dostępowe i wszystko działało.

Teraz przeniosłem cały katalog ze starego serwera, wgrałem bazę danych, zmieniłem dane dostępowe... ale pokazał się błąd 500

No i zapomniałbym o najważniejszym...

Laravel stał na php 5.5.9 a teraz na dedyku mam 7.0

Czy jeśli zainstaluję composer to on mi zaktualizuje wszystko co potrzeba?

  1. {
  2. "name": "laravel/laravel",
  3. "description": "The Laravel Framework.",
  4. "keywords": ["framework", "laravel"],
  5. "license": "MIT",
  6. "type": "project",
  7. "require": {
  8. "php": ">=5.5.9",
  9. "laravel/framework": "5.2.*",
  10. "laravelcollective/html": "5.2.*",
  11. "barryvdh/laravel-dompdf": "0.6.*"
  12. },

Jak sprawdzić, co nie działa?
Będę wdzięczny za pomoc.
Pyton_000
Sprawdź w logach apache/nginx
miccom
ok, mam kilkanaście linijek,a le jeden błąd

[Wed Apr 04 21:06:52.071158 2018] [core:alert] /sciezka_do_katalogu/public_html/.htaccess: Invalid command 'ExpiresActive', perhaps misspelled or defined by a module not included in the server configuration, referer: http://moj_adres/

[Wed Apr 04 21:06:51.993982 2018] [core:alert]/sciezka_do_katalogu/public_html/.htaccess: Invalid command 'ExpiresActive', perhaps misspelled or defined by a module not included in the server configuration, referer: http://www.moj_adres/

Pyton_000
No widzisz... Jak mniemam rozwiązałeś już swój problem.
miccom
NO expires uruchomiłem, ale powstał kolejny:)

/public_html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration, referer:


Wywaliłem Expires i header z htaccess

I otrzymuję komunikat

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

Please contact the server administrator to inform them of the time this error occurred, and the actions you performed just before this error.

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

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Pyton_000
A Rewrite masz odpalony? I co dalej mówi log?
miccom
Ech...
Noc nie przyniosła zmian na stronie smile.gif

Wróciłem do serwera na którym kiedyś ( jedną zmianę serwera wcześniej wink.gif ) wgrałem pliki, i nadal mam błąd 500.

Zakładka w cPanel Logi Błędów nie pokazuje błędów


W pliku server.php ( piętro wyżej niż public_html ) mam taki wpis:

  1. $uri = urldecode(
  2. parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
  3. );
  4.  
  5. // This file allows us to emulate Apache's "mod_rewrite" functionality from the
  6. // built-in PHP web server. This provides a convenient way to test a Laravel
  7. // application without having installed a "real" web server software here.
  8. if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
  9. return false;
  10. }
  11.  
  12. require_once __DIR__.'/public/index.php';


Powinienem zmienić na public_html czy w ogóle usunąć to przekierowanie?

Dzień dobry.
Konsola błędów mówi teraz że:

  1. [autoindex:error]: Cannot serve directory /moj_adres/: No matching DirectoryIndex (INDEX.html.var,INDEX.htm,INDEX.html,INDEX.shtml,INDEX.xhtml,INDEX.wml,INDEX.perl,INDEX.pl,INDEX.plx,INDEX.ppl,INDEX.cgi,INDEX.jsp,INDEX.js,INDEX.jp,INDEX.php4,INDEX.php3,INDEX.php,INDEX.phtml,DEFAULT.htm,DEFAULT.html,home.htm,INDEX.php5,DEFAULT.html,DEFAULT.htm,home.html) found, AND server-generated directory INDEX forbidden BY Options directive


Ok, wszystko się ładnie poukładało.
Namieszałem w .htaccess smile.gif

Dziękuję za pomoc
Pozdrawiam.
MM
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2024 Invision Power Services, Inc.