I just installed apache2 and everything went through well with no error message.
I can start and stop Apache2 no problem.
In "/etc/apache2/sites-available" I have a file called "default"
and in "/etc/apache2/sites-enabled" I have a file called "000-default" which is a link of "/etc/apache2/sites-available".
My Firewall Guarddog is disabled.
I had Lamp installed before with apache 1.*.* which I remove with #apt-get autoremove apache" and "#apt-get remove --purge apache".
I have removed the previous php4 and mysql with the same similar command.
I try to change the filename "000-default" to "default" with no succes.
The content of "default" is as shown bellow:
The problem is that when I go in Firefox and look in "http://localhost/" I get the error message as follow:
Any idea of what could set this straight and make my apache server works?
I haven't installed php5 and mysql yet but It will be done as soon as apache2 will be kind enough to show:
It Works!
I can start and stop Apache2 no problem.
In "/etc/apache2/sites-available" I have a file called "default"
and in "/etc/apache2/sites-enabled" I have a file called "000-default" which is a link of "/etc/apache2/sites-available".
My Firewall Guarddog is disabled.
I had Lamp installed before with apache 1.*.* which I remove with #apt-get autoremove apache" and "#apt-get remove --purge apache".
I have removed the previous php4 and mysql with the same similar command.
I try to change the filename "000-default" to "default" with no succes.
The content of "default" is as shown bellow:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
The problem is that when I go in Firefox and look in "http://localhost/" I get the error message as follow:
Not Found
The requested URL / was not found on this server.
Apache/2.2.4 (Unix) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.2 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 Server at localhost Port 80
The requested URL / was not found on this server.
Apache/2.2.4 (Unix) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.2 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 Server at localhost Port 80
I haven't installed php5 and mysql yet but It will be done as soon as apache2 will be kind enough to show:
It Works!
Comment