
28th July 2005, 13:23
|
|
Member
|
|
Join Date: Jul 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quick Question(s) Apache 2
How do you get rid of the default page http://www.example.com/apache2-default/. I just need to get rid of apache2-default and not break my debian apache box.
Also followed these steps:
apt-get install webalizer
<- /var/www/webalizer
<- Usage Statistics for
<- /var/log/apache/access.log.1
However when I access http://www.example.com/webalizer I get the standard browser output:
Index of /webalizer
Name Last modified Size Description
....and no files are listed. Just wondering if someone can tell me what I might have to look at to get it running properly....By the way great tutorials Falko.
|

29th July 2005, 11:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,602 Times in 2,451 Posts
|
|
You must edit /etc/apache2/sites-available/default and comment out the following line:
Code:
RedirectMatch ^/$ /apache2-default/
Then restart Apache:
Code:
/etc/init.d/apache2 restart
You must run webalizer manually or with a cron job so that it creates statistics in the webalizer directory. Something like
Code:
webalizer -n www.example.com -s www.example.com -r www.example.com -q -T -o /var/www/webalizer -c /path/to/webalizer.conf /var/log/apache2/access.log
might work. See man webalizer for more details.
|

2nd August 2005, 20:31
|
|
Member
|
|
Join Date: Jul 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Great!
I've been at the falkotimme site so many times when doing an install of debian it's sick.
If I choose to comment the redirect how will it effect any users I create on the debian box. I just want to create a mock web server for learning purposes.
|

2nd August 2005, 21:44
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,602 Times in 2,451 Posts
|
|
Quote:
|
Originally Posted by linutzy
I've been at the falkotimme site so many times when doing an install of debian it's sick.
If I choose to comment the redirect how will it effect any users I create on the debian box. I just want to create a mock web server for learning purposes.
|
It won't have any effect on your users. It just tells the Apache not to go to the apache2-default directory by default.
|

3rd August 2005, 11:38
|
|
Member
|
|
Join Date: Jul 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
From the site.
On the falkotimme.com debian 3.1 setup link (followed it word for word) you have this.
Edit /etc/mime.types and comment out the following lines:
#application/x-httpd-php phtml pht php
#application/x-httpd-php-source phps
#application/x-httpd-php3 php3
#application/x-httpd-php3-preprocessed php3p
#application/x-httpd-php4 php4
Edit /etc/apache2/mods-enabled/php4.conf and comment out the following lines:
<IfModule mod_php4.c>
# AddType application/x-httpd-php .php .phtml .php3
# AddType application/x-httpd-php-source .phps
</IfModule>
Did you want us to add the "#" because originally they were not there?
Regardless in /var/www I created a 'phpinfo.php' file.
When I load the page all I have is this show up and not the php blue and grey variable listing page.
<?php
phpinfo();
?>
Did I miss a step and why did you add the comments?
Last edited by linutzy; 3rd August 2005 at 11:41.
|

3rd August 2005, 12:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,602 Times in 2,451 Posts
|
|
Quote:
|
Originally Posted by linutzy
On the falkotimme.com debian 3.1 setup link (followed it word for word) you have this.
Edit /etc/mime.types and comment out the following lines:
#application/x-httpd-php phtml pht php
#application/x-httpd-php-source phps
#application/x-httpd-php3 php3
#application/x-httpd-php3-preprocessed php3p
#application/x-httpd-php4 php4
Edit /etc/apache2/mods-enabled/php4.conf and comment out the following lines:
<IfModule mod_php4.c>
# AddType application/x-httpd-php .php .phtml .php3
# AddType application/x-httpd-php-source .phps
</IfModule>
Did you want us to add the "#" because originally they were not there?
Regardless in /var/www I created a 'phpinfo.php' file.
When I load the page all I have is this show up and not the php blue and grey variable listing page.
<?php
phpinfo();
?>
Did I miss a step and why did you add the comments?
|
Yes, I want you to add the #. This will disable PHP, because this guide is a preparation for the installation of ISPConfig, and in ISPConfig you can enable PHP on a per site basis. If I didn't add the #, then PHP would always be on, no matter you you enable or disable in ISPConfig. If you don't install ISPConfig, then don't add the #.
|

3rd August 2005, 14:11
|
|
Member
|
|
Join Date: Jul 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ISPconfig
Are there any other changes in the debian 3.1 tutorial that you wrote specific to ISPconfig. An example would be the postfix/mysql setup also included?
Does ISPconfig cost money? I went to the site and all I see is a download link at sourceforge.
|

3rd August 2005, 14:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,075
Thanks: 697
Thanked 4,253 Times in 3,265 Posts
|
|
Quote:
|
Originally Posted by linutzy
Are there any other changes in the debian 3.1 tutorial that you wrote specific to ISPconfig. An example would be the postfix/mysql setup also included?
Does ISPconfig cost money? I went to the site and all I see is a download link at sourceforge.
|
ISPConfig is open source and there is not only a download link at the iSPConfig site:
http://www.ispconfig.org/
|

9th August 2005, 18:07
|
|
Member
|
|
Join Date: Jul 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by till
|
Cool I am looking through the docs now for ISPConfig. I'm just wondering if the setup done on falkotimme.com for (debian) Mysql and Postfix is a generic setup or if the setup much like the apache setup is related to ISPconfig.
|

9th August 2005, 18:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,602 Times in 2,451 Posts
|
|
Quote:
|
Originally Posted by linutzy
Cool I am looking through the docs now for ISPConfig. I'm just wondering if the setup done on falkotimme.com for (debian) Mysql and Postfix is a generic setup or if the setup much like the apache setup is related to ISPconfig.
|
Which setup (URL?) do you mean?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 13:44.
|
|
Recent comments
7 hours 34 min ago
12 hours 26 min ago
21 hours 18 min ago
22 hours 18 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 6 hours ago
1 day 14 hours ago
1 day 23 hours ago
2 days 36 min ago