Na eddig arra jutottam, hogy a php-ban a display_errors off -ra van állítva. így csak az error.log-ba menti el a hibát. Még megkeresem, hogy kell on-ra állítani. Nos siker. Azért leírom hátha valaki más is belefut ebbe. 1. A php.ini file ban a display_errors és a display_startup_errors Off -ra volt állítva. Ezeket állítottam on-ra. 2. Ubuntu alatt nem férünk hozzá minden fájlhoz ezért jogosultságot kell adnom magamnak az adott könyvtárra. azaz
cd /etc/php5/ sudo chown -R felhasznaloneved apache2a felhasznaloneved helyére írd be a felhasználó neved. 3.Ez után már jogod van szerkeszteni a php.ini fájlt. Én sima jegyzettömböt használtam. Keresés display_errors. Ebben a környezetben:
; This directive controls whether or not and where PHP will output errors, ; notices and warnings too. Error output is very useful during development, but ; it could be very dangerous in production environments. Depending on the code ; which is triggering the error, sensitive information could potentially leak ; out of your application such as database usernames and passwords or worse. ; It's recommended that errors be logged on production servers rather than ; having the errors sent to STDOUT. ; Possible Values: ; Off = Do not display any errors ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) ; On or stdout = Display errors to STDOUT ; Default Value: On ; Development Value: On ; Production Value: Off ; http://php.net/display-errors display_errors = On Ezt állítottam On-ra ; The display of errors which occur during PHP's startup sequence are handled ; separately from display_errors. PHP's default behavior is to suppress those ; errors from clients. Turning the display of startup errors on can be useful in ; debugging configuration problems. But, it's strongly recommended that you ; leave this setting off on production servers. ; Default Value: Off ; Development Value: On ; Production Value: Off ; http://php.net/display-startup-errors display_startup_errors = On Meg ezt is On-ra állítottam4. Mentés. BEZÁRÁS- amíg nem zárod be nem fut. - 5.Apache újraindítása
sudo /etc/init.d/apache2 restart6.És már látható a hiba a localhost-on. Mehet a kódolás . Remélem másnak is segítettem mert fél napig ezt kerestem.