Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [mysql] Początek początków.... instalacja APACHE i błąd
-taniestruny.pl-
post 6.04.2008, 09:12:03
Post #1





Goście







Witam

Dowiedziałem się że aby móc na swoim komputerze oglądać efekt stworzonych przeze mnie operacji w PHP muszę posiadać zainstalowany serwer Apache oraz PHP. Niestety na samym początku drogi poległem.

Zainstalowałem sobie: apache_2.2.8-win32-x86-no_ssl

Katalog docelowy: C:/WebSerwer
Podczas instalacji wpisałem w odpowiednich miejscach: localhost; localhost; root@localhost (tak jak sugerował jeden z pomocnych opisów znaleziony w internecie).

Niestety... Pomimo tego, że pokazuje mi, że instalacja została zakończona sukcesem pokazuje mi:

httpd.exe: Could not reliably determine the server's fully qualified domain name
, using 169.254.209.149 for ServerName
(OS 10048)Tylko jedno u┐ycie ka┐dego adresu gniazda (protokˇ│/adres sieciowy/por
t) jest normalnie dozwolone. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the <ESC> key to exit. 17...

Jeśli zaś wejdę do Apache Monitor i kliknę start pokazuje mi się komunikat
"The reqest operation has filed"

System pod jakim pracuje to Windows XP Malcolm.
Czy ktoś wie co może być przyczyną tego stanu rzeczy?
Go to the top of the page
+Quote Post
l0ud
post 6.04.2008, 09:14:46
Post #2





Grupa: Zarejestrowani
Postów: 1 387
Pomógł: 273
Dołączył: 18.02.2008

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


Umieść gdzieś zawartość pliku /conf/httpd.conf znajdującego się w katalogu apache.


--------------------
XMPP: l0ud@chrome.pl
Go to the top of the page
+Quote Post
jareeny
post 6.04.2008, 09:15:31
Post #3





Grupa: Zarejestrowani
Postów: 226
Pomógł: 23
Dołączył: 2.10.2007
Skąd: Słupsk

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


Jak na początek proponuje gotowy pakiet serwerowy taki jak np. WebServ.

sciągnąć można z www.webserv.pl


--------------------
banan wszyscy.
Go to the top of the page
+Quote Post
wert1
post 6.04.2008, 09:36:45
Post #4





Grupa: Zarejestrowani
Postów: 175
Pomógł: 2
Dołączył: 22.03.2007
Skąd: localhost

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


jak uruchamiasz serwer to wylancz skype (ewentualnnie inne programy z dostepem do sieci)


--------------------
"Homo sum, humani nihil a me alienum puto."
"Necessitas ultimum et maximum telum est."
"Ventem seminabunt et turbinem metent."
"Gallia est omnis divisa in partes tres..."
Go to the top of the page
+Quote Post
mike
post 6.04.2008, 09:38:11
Post #5





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Jakaś inna aplikacja blokuje Ci port 80.
Na 99% obstawiam Skype'a. Masz go może?
Go to the top of the page
+Quote Post
-taniestruny.pl-
post 6.04.2008, 10:04:24
Post #6





Goście







Hehe... kto by pomyślał. Skype był problemem.

Mam nadzieje, że dalej już pójdzie gładko.

Dziękuje.
Go to the top of the page
+Quote Post
-taniestruny.pl-
post 6.04.2008, 20:04:49
Post #7





Goście







Zainstalowałem WebServ... po małych problemach system wystartował i nawet pokazuje mi nawet strony przykładowe z programu. Pokazuje również:

Host: localhost
Port: 80

Serwer HTTP: Apache/2.2.6 (Win32) PHP/4.4.7
Protokół serwera: HTTP/1.1
System operacyjny: Windows_NT

Administrator: twoj@email

Aktualna data: 06-04-2008, 21:02:49

Widzę również:
Apache & PHP
Informacje na temat konfiguracji serwera Apache oraz PHP ( phpinfo() ).

Jak wchodzę do: http://localhost/~przykladowe_konto/ pokazuje mi stronę i wyświetla PHP.

Niestety nie interpretuje mi php w stronach odpalanych z dysku twardego... co z tym zrobić?
Go to the top of the page
+Quote Post
Cysiaczek
post 6.04.2008, 20:09:14
Post #8





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Jak nie interpretuje? Wpisz:

  1. <?php
  2. print "Hello World!";
  3. ?>


i pokaż screen z wynikiem (całe okno)


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
-taniestruny.pl-
post 6.04.2008, 20:15:02
Post #9





Goście







Nie wiem czy dobrze zrobiłem...

stworzyłem plik
test.php i umieściłem go na pulpicie.

Uruchomiłem i nie pokazało mi zupełnie nic... dlatego też nie robie screenu.
Go to the top of the page
+Quote Post
Cysiaczek
post 6.04.2008, 21:14:46
Post #10





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Umieść go w katalogu dostępnym przez htp://localhost/katalog/nazwa_pliku.php
Najczęściej jest to katalog o nazwie httpd, albo www w katalogu Apacha.
Tylko przez w/w adres php będzie interpretowane.

Pozdrawiam.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
jareeny
post 6.04.2008, 22:07:51
Post #11





Grupa: Zarejestrowani
Postów: 226
Pomógł: 23
Dołączył: 2.10.2007
Skąd: Słupsk

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


Pliki PHP umieszczaj w foldrze httpd. Ścieżka do niego:

X:/Webserv/httpd/

Gdzie X to partycja, na której zainstalowałeś WebServa

Przykładowo jeżeli do tego folderu wrzuciłeś plik 'index.php' o treśći [haha.gif]:

  1. <?php
  2. echo "No heej";
  3. ?>


To żeby go wyświetlić, w przeglądarce otwierasz adres:
http://localhost/
lub
http://127.0.0.1/

Jeżeli chcesz, aby plik 'index.php' był w innym folderze, w folderze 'httpd' utwórz nowy i nazwij go np. 'test'. Wrzuć tam plik 'index.php' i żeby go zobaczyć, otwierasz adres:

http://localhost/test/
lub
http://127.0.0.1/test/

Krócej: folder 'httpd' jest głównym folderem Twojego serwera, i to tam umieszczasz wszystkie pliki Twoich stron. Mam nadzieje, że pomogłem, mimo mojego łopatologicznego tłumaczenia smile.gif

Pozdrawiam
jareeny


--------------------
banan wszyscy.
Go to the top of the page
+Quote Post
-Gość-
post 6.04.2008, 22:07:59
Post #12





Goście







Katalogu Apacha nie znalazłem ale mam:

C:\Program Files\WebServ\httdp

...niestety - nic to nie nie dało. Strona nadal się nie wyświetla...
Go to the top of the page
+Quote Post
Cysiaczek
post 7.04.2008, 07:52:30
Post #13





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




To zrób screen i daj link. Możesz też podać link do zawartości httpd.conf.
Posiadasz pakiet webserv, więc teoretycznie powinno działać od razu. Czy na pewno stosujesz się do zaleceń ~jareeny?

Pozdrawiam


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 18.07.2025 - 03:27