Article View: pl.comp.lang.php
Article #230422Re: kod źródłowy zamiast wyniku .php
From: ww
Date: Thu, 15 May 2014 11:43
Date: Thu, 15 May 2014 11:43
23 lines
2260 bytes
2260 bytes
Użytkownik wrote: > Na komputerze z Ubuntu 12.04 LTS mam następujący problem z php5: > - przy otwarciu w przeglądarce localhost/~user/phpinfo.php mam pustą > stronę, a gdy sprawdzam źródło strony to widzę: <?php phpinfo(); ?>, > tzn. kod źródłowy > - przy otwarciu w przeglądarce localhost/~user/test.html mam poprawną > stronę. Ale to strona statyczna ? Ta na górze jest puste bo tego co jest między < a > z założenia przeglądarka nie wyświetla. > Instalowałem i konfigurowałem PHP5 już wielokrotnie na różnych > komputerach i tego problemu nie miałem. Proszę o pomoc. Tu jest jakaś instrukcja: http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-12.04-lts-lamp U mnie na jakiejś dystrybucji też apache nie chciał przetwarzać php. Brakowało mu modułu mod-php5. Chociaż nie wiem czy wpisy w twoich konfigach nie wskazują jednak na jego obecność. Ja bym w każdym sprawie spróbował tego apt-get install libapache2-mod-php5 i potem restart apacha
Technical Details
Message-ID:
<ll299d$eg6$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!newsfeed.pionier.net.pl!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<d3b8f3bc-fda6-493e-853a-599b97ecfab4@googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!newsfeed.pionier.net.pl!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "ww" <ww@o2.pl> Newsgroups: pl.comp.lang.php Subject: Re: kod źródłowy zamiast wyniku .php Date: Thu, 15 May 2014 13:43:37 +0200 Organization: A noiseless patient Spider Lines: 24 Message-ID: <ll299d$eg6$1@dont-email.me> References: <d3b8f3bc-fda6-493e-853a-599b97ecfab4@googlegroups.com> Mime-Version: 1.0 Injection-Date: Thu, 15 May 2014 11:43:41 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="79da0216cafa04b507ff2c39029b3bea"; logging-data="14854"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yLzY7zkYzCoRC2/FTLs+A" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-EsetScannerBuild: 18268 X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 Cancel-Lock: sha1:2GvcaWJuSPgeM9G07IRu2kLlTVU= X-Priority: 3 X-MSMail-Priority: Normal Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit