VMware Images:
|
The Perfect Setup - Mandriva 2007 Free Edition - Page 5
11 MySQL (5.0)To install MySQL 5.0, we simply run: urpmi MySQL MySQL-client libmysql15-devel By default, networking is not enabled in Mandriva 2007's MySQL package, but networking is required by ISPConfig. We can change this by commenting out the line skip-networking in /etc/my.cnf: vi /etc/my.cnf
Afterwards, we start MySQL: /etc/init.d/mysqld start Now check that networking is enabled. Run netstat -tap It should show a line like this:
Next, run mysqladmin -u root password yourrootsqlpassword to set a password for the user root (otherwise anybody can access your MySQL database!).
12 Postfix With SMTP-AUTH And TLSInstall the required packages (Postfix, cyrus-sasl, imap, etc.) like this: urpmi cyrus-sasl libsasl2 libsasl2-devel libsasl2-plug-plain libsasl2-plug-anonymous libsasl2-plug-crammd5 libsasl2-plug-digestmd5 libsasl2-plug-gssapi libsasl2-plug-login postfix imap Then run postconf -e 'smtpd_sasl_local_domain =' Edit /etc/sasl2/smtpd.conf. It should look like this: vi /etc/sasl2/smtpd.conf
Create the SSL certificate needed for TLS: mkdir /etc/postfix/ssl and configure Postfix for TLS: postconf -e 'smtpd_tls_auth_only = no' Now start Postfix, saslauthd, imap and pop3: chkconfig imap on To see if SMTP-AUTH and TLS work properly now run the following command: telnet localhost 25 After you have established the connection to your Postfix mail server type ehlo localhost If you see the lines 250-STARTTLS and 250-AUTH everything is fine.
Type quit to return to the system's shell.
13 Apache2 With PHP5To install Apache2 and PHP5, run the following command (in one line): urpmi apache2-mod_php libphp5_common5 php-bz2 php-calendar php-ctype php-curl php-devel php-dio php-dom php-eaccelerator php-enchant php-esmtp php-event php-exif php-fam php-ffmpeg php-fileinfo php-filepro php-ftp php-gd php-gettext php-gmp php-iconv php-id3 php-idn php-imap php-imlib2 php-mailparse php-mbstring php-mcache php-mcrypt php-mhash php-ming php-mysql php-mysqli php-ncurses php-newt php-odbc php-oggvorbis php-pam_auth php-pcntl php-pcre php-pear-Net_IDNA php-posix php-pspell php-readline php-recode php-session php-shmop php-simplexml php-snmp php-soap php-sockets php-sqlite php-ssh2 php-sysvmsg php-sysvsem php-sysvshm php-tclink php-tcpwrap php-tidy php-xml php-xmlrpc php-zip php5-ini curl libcurl3-devel perl-libwww-perl ImageMagick Start Apache: /etc/init.d/httpd restart
13.1 Disable PHP Globally(If you do not plan to install ISPConfig on this server, please skip this section!) In ISPConfig you will configure PHP on a per-website basis, i.e. you can specify which website can run PHP scripts and which one cannot. This can only work if PHP is disabled globally because otherwise all websites would be able to run PHP scripts, no matter what you specify in ISPConfig. Edit /etc/httpd/modules.d/70_mod_php.conf and comment out the AddType lines: vi /etc/httpd/modules.d/70_mod_php.conf
Edit /etc/httpd/conf/mime.types and comment out the following lines: vi /etc/httpd/conf/mime.types
Edit /etc/httpd/conf/httpd.conf and add the following line to the LoadModule section: vi /etc/httpd/conf/httpd.conf
(Although this line is already in /etc/httpd/modules.d/70_mod_php.conf this is very important because otherwise the command httpd -t will report errors instead of Syntax OK when the virtual hosts created by ISPConfig contain lines like php_admin_flag safe_mode On or the like!) Restart Apache: /etc/init.d/httpd restart
|



print: 


Recent comments
15 hours 37 min ago
17 hours 45 min ago
1 day 7 hours ago
1 day 22 hours ago
2 days 4 hours ago
2 days 8 hours ago
2 days 12 hours ago
3 days 3 hours ago
3 days 4 hours ago
3 days 6 hours ago