suse10.2

Embed Size (px)

Citation preview

  • 8/8/2019 suse10.2

    1/46

  • 8/8/2019 suse10.2

    2/46

  • 8/8/2019 suse10.2

    3/46

  • 8/8/2019 suse10.2

    4/46

  • 8/8/2019 suse10.2

    5/46

  • 8/8/2019 suse10.2

    6/46

  • 8/8/2019 suse10.2

    7/46

  • 8/8/2019 suse10.2

    8/46

  • 8/8/2019 suse10.2

    9/46

  • 8/8/2019 suse10.2

    10/46

  • 8/8/2019 suse10.2

    11/46

  • 8/8/2019 suse10.2

    12/46

  • 8/8/2019 suse10.2

    13/46

  • 8/8/2019 suse10.2

    14/46

  • 8/8/2019 suse10.2

    15/46

  • 8/8/2019 suse10.2

    16/46

  • 8/8/2019 suse10.2

    17/46

  • 8/8/2019 suse10.2

    18/46

  • 8/8/2019 suse10.2

    19/46

  • 8/8/2019 suse10.2

    20/46

  • 8/8/2019 suse10.2

    21/46

  • 8/8/2019 suse10.2

    22/46

  • 8/8/2019 suse10.2

    23/46

  • 8/8/2019 suse10.2

    24/46

  • 8/8/2019 suse10.2

    25/46

  • 8/8/2019 suse10.2

    26/46

  • 8/8/2019 suse10.2

    27/46

  • 8/8/2019 suse10.2

    28/46

  • 8/8/2019 suse10.2

    29/46

  • 8/8/2019 suse10.2

    30/46

  • 8/8/2019 suse10.2

    31/46

  • 8/8/2019 suse10.2

    32/46

  • 8/8/2019 suse10.2

    33/46

  • 8/8/2019 suse10.2

    34/46

  • 8/8/2019 suse10.2

    35/46

  • 8/8/2019 suse10.2

    36/46

  • 8/8/2019 suse10.2

    37/46

  • 8/8/2019 suse10.2

    38/46

  • 8/8/2019 suse10.2

    39/46

  • 8/8/2019 suse10.2

    40/46

    Apache/PHP5ow we install Apache with PHP5:

    yast2 -i apache2 apache2-devel apache2-mod_perl apache2-mod_php5 apache2-prefork perl-HTML-Parser perl-HTML-Tagset perl-Tie-IxHash perl-URI perl-libwww-perl php5 php5-devel zlib zlib-devel

    hen we install some PHP5 modules:

    yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dbase php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mhash php5-mysql

    php5-ncurses php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soapphp5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm ImageMagick curl

    ext we edit /etc/apache2/httpd.conf :

    vi /etc/apache2/httpd.conf

    nd change DirectoryIndex to

    dit /etc/sysconfig/apache2 and add rewrite to the APACHE_MODULES line:

    vi /etc/sysconfig/apache2

    [...]DirectoryIndex index.html index.htm index.shtml ind e[...]

  • 8/8/2019 suse10.2

    41/46

    lso add SSL to the APACHE_SERVER_FLAGS line:

    ow configure your system to start Apache at boot time:

    chkconfig --add apache2

    hen run

    SuSEconfig /etc/init.d/apache2 start

    1 Disable PHP And Perl Globally

    f you do not plan to install ISPConfig on this server, please skip this section!)

    n ISPConfig you will configure PHP and Perl on a per-website basis, i.e. you can specify which website can run PHP and Perlcripts and which one cannot. This can only work if PHP and Perl are disabled globally because otherwise all websites would beble to run PHP/Perl scripts, no matter what you specify in ISPConfig.

    o disable PHP and Perl globally, we edit /etc/mime.types and comment out the application/x-perl and

    pplication/x-php lines:

    vi /etc/mime.types

    [...]APACHE_MODULES="actions alias auth_basic authn_file [[...]

    [...]APACHE_SERVER_FLAGS="SSL"[...]

  • 8/8/2019 suse10.2

    42/46

    fterwards we restart Apache:

    /etc/init.d/apache2 restart

    0 Proftpdwant to use Proftpd instead of vsftpd which is SuSE's default FTP server because the control panel software I am going to

    nstall on this server ( ISPConfig ) requires Proftpd on OpenSuSE 10.2 (on other distributions this is different). Since there are

    o OpenSuSE packages for Proftpd I have to compile it manually:

    cd /tmp/ wget --passive-ftp ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.0a.tar.gztar xvfz proftpd-1.3.0a.tar.gzcd proftpd-1.3.0a/ ./configure --sysconfdir=/etcmakemake installcd ..

    rm -fr proftpd-1.3.0a*

    ow create the file /etc/init.d/proftpd :

    vi /etc/init.d/proftpd

    hen run

    [...]#application/x-perl pl pm al perl#application/x-php php php3 php4[...]

    #! /bin/sh# Copyright (c) 2000-2001 SuSE GmbH Nuernberg, Germa# All rights reserved.## Original author: Marius Tomaschewski ## Slightly modified in 2003 for use with SuSE Linux 8# by http://www.learnlinux.co.uk/## Slightly modified in 2005 for use with SuSE Linux# by Falko Timme## /etc/init.d/proftpd#

  • 8/8/2019 suse10.2

    43/46

    chmod 755 /etc/init.d/proftpd chkconfig --add proftpd

    tart Proftpd :

    /etc/init.d/proftpd start

    or security reasons you can add the following lines to /etc/proftpd.conf :

    vi /etc/proftpd.conf

    e sure to comment out the following lines in order to allow ftp users to CHMOD:

    nd restart Proftpd :

    /etc/init.d/proftpd restart

    [...]DefaultRoot ~IdentLookups offServerIdent on "FTP Server ready."[...]

    [...]# Bar use of SITE CHMOD by default## DenyAll#[...]

  • 8/8/2019 suse10.2

    44/46

  • 8/8/2019 suse10.2

    45/46

  • 8/8/2019 suse10.2

    46/46