Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [inne]Apache na świat - problem z konfiguracją
Forum PHP.pl > Forum > Przedszkole
MateuszS
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
!*!
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.
MateuszS
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.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.