Skip to content

Commit 4c99674

Browse files
AntennipasiAntennipasi
authored andcommitted
Added info how to secure default phpMyAdmin install. More clearing.
1 parent a702377 commit 4c99674

File tree

1 file changed

+42
-10
lines changed

1 file changed

+42
-10
lines changed

INSTALL_DEBIAN_LENNY.txt

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Installation
1616
echo ispconfig.example.com > /etc/hostname
1717

1818
vi /etc/hosts
19-
and add line similar but appropriate:
19+
20+
# and add line similar but appropriate:
2021

2122
127.0.0.1 localhost.localdomain localhost
2223
192.168.0.100 ispconfig.example.com ispconfig
@@ -48,7 +49,7 @@ General type of configuration? <-- Internet site
4849
Mail name? <-- server1.mydomain.tld
4950
SSL certificate required <-- Ok
5051

51-
...use your own domain name of course ;)
52+
# ...use your own domain name of course ;)
5253

5354

5455

@@ -88,11 +89,42 @@ apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2
8889

8990
a2enmod suexec rewrite ssl
9091

92+
# Secure phpMyAdmin by deleting setuppassword-file
93+
# and removing/commenting Setup Authorization from apache.conf
94+
95+
rm /etc/phpmyadmin/htpasswd.setup
96+
97+
vi /etc/phpmyadmin/apache.conf
98+
99+
# delete/comment following lines (between the ----- lines):
100+
------------------------------------------------------
101+
# Authorize for setup
102+
<Files setup.php>
103+
# For Apache 1.3 and 2.0
104+
<IfModule mod_auth.c>
105+
AuthType Basic
106+
AuthName "phpMyAdmin Setup"
107+
AuthUserFile /etc/phpmyadmin/htpasswd.setup
108+
</IfModule>
109+
# For Apache 2.2
110+
<IfModule mod_authn_file.c>
111+
AuthType Basic
112+
AuthName "phpMyAdmin Setup"
113+
AuthUserFile /etc/phpmyadmin/htpasswd.setup
114+
</IfModule>
115+
Require valid-user
116+
</Files>
117+
------------------------------------------------------
118+
119+
91120
opt3.1) Optionally install some imagemanipulation capabilities to make advanced webdesigners happy
92121

93122
apt-get install php5-imagick imagemagick
94123

124+
# restart apache before continuing
95125

126+
/etc/init.d/apache2 restart
127+
96128

97129
4) Install pure-ftpd and quota
98130

@@ -125,11 +157,11 @@ cd mydns-1.2.8
125157
make
126158
make install
127159

128-
Now create the start / stop script for mydns:
160+
# Now create the start / stop script for mydns:
129161

130162
vi /etc/init.d/mydns
131163

132-
and enter the following lines (between the ----- lines):
164+
# and enter the following lines (between the ----- lines):
133165

134166
------------------------------------------------------
135167
#! /bin/sh
@@ -190,7 +222,7 @@ esac
190222
exit 0
191223
---------------------------------------------------------------------------
192224

193-
now execute:
225+
# now execute:
194226

195227
chmod +x /etc/init.d/mydns
196228
update-rc.d mydns defaults
@@ -202,7 +234,7 @@ apt-get install vlogger webalizer
202234

203235
7) Install ISPConfig 3
204236

205-
There are two possile scenarios, but not both:
237+
# There are two possile scenarios, but not both:
206238
7.1) Install the latest released version
207239
7.2) Install directly from SVN
208240

@@ -223,20 +255,20 @@ There are two possile scenarios, but not both:
223255

224256
7.1+7.2) Now proceed with the ISPConfig installation.
225257

226-
Now start the installation process by executing:
258+
# Now start the installation process by executing:
227259

228260
php -q install.php
229261

230-
The installer will configure all services like postfix, sasl, courier, etc. for you. A manual setup as required for ISPConfig 2 (perfect setup guides) is not nescessary. To login to the ISPConfig controlpanel, open the following URL in your browser (replace the IP to match your settings!):
262+
# The installer will configure all services like postfix, sasl, courier, etc. for you. A manual setup as required for ISPConfig 2 (perfect setup guides) is not nescessary. To login to the ISPConfig controlpanel, open the following URL in your browser (replace the IP to match your settings!):
231263

232264
http://192.168.0.100:8080/
233265

234-
the default login is:
266+
# the default login is:
235267

236268
user: admin
237269
password: admin
238270

239-
In case you get a permission denied error from apache, please restart the apache webserver process.
271+
# In case you get a permission denied error from apache, please restart the apache webserver process.
240272

241273

242274

0 commit comments

Comments
 (0)