be27
26.08.07, 18:01
Hallo zusammen,
auf meinem System, KUbuntu 7.04, Apache 2.2.3, PHP 5.2.1, MySQL 5.0.38, habe ich per get-apt phpmyadmin istalliert, jetzt würde ich es gerne über http://127.0.0.1/phpmyadmin ansprechen, dazu habe ich unter
/etc/apache2/sites-available eine phpmyadmin Datei angelegt, sie ist mit
phpmyadmin -> ../sites-available/phpmyadmin verlinkt
In /etc/apache2/sites-available/phpmyadmin sieht die Datei folgender Massen aus:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /var/www/phpmyadmin/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ErrorLog /var/log/apache2/error_phpmyadmin.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/phpmyadmin_access.log combined
</VirtualHost>
Versuche ich den Apache neu zu starten, über :
sudo /etc/init.d/apache2 reload
bekomme ich folgende Meldung:
* Forcing reload of web server (apache2)...
[Sun Aug 26 18:47:42 2007] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
Als der Standart VirtulaHost überschneidet sich auf Port 80, der erste hat Vorrang.
So weit so gut, leider kann ich mit der Meldung nicht viel anfangen.
Ich möchte mehrere "Seiten" auf dem lokalem Server haben, die auf den Port 80 horchen.
Was mache ich falsch?
die default Datei in:
/etc/apache2/sites-available/default
# NameVirtualHost *
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/PHP
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/PHP>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ErrorLog /var/log/apache2/error_default.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Grüße be27
auf meinem System, KUbuntu 7.04, Apache 2.2.3, PHP 5.2.1, MySQL 5.0.38, habe ich per get-apt phpmyadmin istalliert, jetzt würde ich es gerne über http://127.0.0.1/phpmyadmin ansprechen, dazu habe ich unter
/etc/apache2/sites-available eine phpmyadmin Datei angelegt, sie ist mit
phpmyadmin -> ../sites-available/phpmyadmin verlinkt
In /etc/apache2/sites-available/phpmyadmin sieht die Datei folgender Massen aus:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /var/www/phpmyadmin/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ErrorLog /var/log/apache2/error_phpmyadmin.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/phpmyadmin_access.log combined
</VirtualHost>
Versuche ich den Apache neu zu starten, über :
sudo /etc/init.d/apache2 reload
bekomme ich folgende Meldung:
* Forcing reload of web server (apache2)...
[Sun Aug 26 18:47:42 2007] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
Als der Standart VirtulaHost überschneidet sich auf Port 80, der erste hat Vorrang.
So weit so gut, leider kann ich mit der Meldung nicht viel anfangen.
Ich möchte mehrere "Seiten" auf dem lokalem Server haben, die auf den Port 80 horchen.
Was mache ich falsch?
die default Datei in:
/etc/apache2/sites-available/default
# NameVirtualHost *
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/PHP
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/PHP>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ErrorLog /var/log/apache2/error_default.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Grüße be27