Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Wyświetlanie kodu zamiast strony
user123
post
Post #1





Grupa: Zarejestrowani
Postów: 231
Pomógł: 2
Dołączył: 2.08.2006
Skąd: Poznań

Ostrzeżenie: (10%)
X----


Witam!

Po uruchomieniu apache i wejsciu na stronę http://127.0.0.1/~login/index.php zamiast wyświetlić mi wynik skryptu ukazuje się kod. Zaś po uruchomieniu 127.0.0.1 pojawia się logo apachce. Wiecie może jak skonfigurować /etc/httpd/conf/httpd.conf, aby pozbyć się tego błędu?

Jeśli chodzi o typy plików to mam tak:

  1. <IfModule dir_module>
  2. <IfModule mod_php5.c>
  3. DirectoryIndex index.php index.html index.php3 index.php4 index.php5
  4. AddType application/x-httpd-php-source .phps
  5. AddType application/x-httpd-php .php .phtml .php3 .php4 .php5
  6. </IfModule>
  7. DirectoryIndex index.html
  8. </IfModule>



Proszę o rady i pomoc

Ten post edytował user123 16.12.2007, 20:27:55
Go to the top of the page
+Quote Post
ayeo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 202
Pomógł: 117
Dołączył: 13.04.2007
Skąd: 127.0.0.1

Ostrzeżenie: (0%)
-----


A masz php zainstalowane?
Go to the top of the page
+Quote Post
user123
post
Post #3





Grupa: Zarejestrowani
Postów: 231
Pomógł: 2
Dołączył: 2.08.2006
Skąd: Poznań

Ostrzeżenie: (10%)
X----


Mam php zainstalowane i nie dziala, a przy uruchomieniu:

httpd -k restart

otrzymuję:
httpd: Could not reliably determine the server's fully qualified domain name, using 10.0.0.2 for ServerName

(IMG:http://forum.php.pl/style_emoticons/default/blinksmiley.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 15:08