![]() |
![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 1 429 Pomógł: 195 Dołączył: 6.10.2008 Skąd: Kraków/Tomaszów Lubelski Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam problem z konfiguracją apache2 pod Linux Mint. Przy starcie serwera dostaję:
Kod * Starting web server apache2 : NameVirtualHost has no effect and will be removed in the next release /etc/apache2/apache2.conf:227 (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 89.73.25.244:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. apache2.conf Kod ServerName 89.73.25.244:80 # Ensure that Apache listens on port 80 Listen 89.73.25.244:80 # Listen for virtual host requests on all IP addresses NameVirtualHost 89.73.25.244:80 <VirtualHost 89.73.25.244:80> # ServerName mateuszpc ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory "/var/www/html/development"> AllowOverride All Require local Allow from all </Directory> </VirtualHost> Na 127.0.0.1 działa OK. Pozdrawiam Ten post edytował MateuszS 20.12.2014, 12:16:04 -------------------- O! Zimniok :P
|
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 4 298 Pomógł: 447 Dołączył: 16.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Po co edytowałeś apache2.conf?
W ports.conf dodaj Cytat Listen *:80 i Cytat Listen 89.73.25.244:80 Później w sites-available tworzysz plik np. 89.73.25.244.conf a w nim: Cytat <VirtualHost *:80> RewriteEngine on ServerAdmin adres@email.pl DocumentRoot /var/www/ ServerName 89.73.25.244 </VirtualHost> Na końcu wydajesz polecenie Cytat a2ensite 89.73.25.244 i restart apache.
-------------------- Nie udzielam pomocy poprzez PW i nie mam GG.
Niektóre języki programowania, na przykład C# są znane z niezwykłej przenośności (kompatybilność ze wszystkimi wersjami Visty jest wiele warta). |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 1 429 Pomógł: 195 Dołączył: 6.10.2008 Skąd: Kraków/Tomaszów Lubelski Ostrzeżenie: (0%) ![]() ![]() |
Niestety ten sam błąd. Zrobiłem dokładnie jak napisałeś.
Kod service apache2 restart * Restarting web server apache2 (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 89.73.25.244:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. Mysle ze to nie ma znaczenia czy zrobie to w glownej konfiguracji czy w jakims osobnym pliku. Kwestia jedynie porządku w konfiguracji. PS. Nic innego u mnie na tym porcie nie nasłuchuje prócz apache'a. Ten post edytował MateuszS 20.12.2014, 13:26:41 -------------------- O! Zimniok :P
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 24.06.2025 - 14:51 |