Loading
1 17 17

: Fedora 9 PHP 5.2.9 Ruby

  1. #1

    Jun 2009
    18
    7
    18 9

    Fedora 9 PHP 5.2.9 Ruby



    , .

    FemtoLayer Technologies, INC

    .

    Fedora .

    ================================================== =======

    Fedora 9 .
    ISP ( Internet service porviders ) .
    Fedora 32 Bit Fedora 64 Bit .
    .

    :


    ---------------------
    1. Apache 2.2.8
    2. PHP 5.2.9
    3. Ruby ( PHP )
    4. MySQL 5.0.51
    5. Postfix -
    6. BIND9 -
    7. proftpd -
    8. POP3/IMAP server: Dovecot
    9. Webalizer - .
    10. cPanel - ( )
    :



    3.33 .

    2- .

    :
    --------
    :
    : server1.example.com
    :192.168.0.100
    : 192.168.0.1
    .


    Fedora 9 :
    ---------------------------------
    .
    :


    , Skip



    Fedora 9 next



    :



    :



    Next

    ,
    : yes - No



    ** :

    Edit :
    192.168.0.100 :


    server1.example.com




    >>>>


  2. #2

    Jun 2009
    18
    7
    18 9

    ( / / / / )

    , (Africa/Cairo)
    .



    next
    :
    : 123456


    next

    /boot
    : Remove Linux partitions on selected drives and create default layout
    /boot .

    ( Write changes to disk )



    :



    :
    Software Development
    Web serve
    fedora




    next
    .


    :
    Text-based Internet, Development Libraries
    Development Tools
    DNS Name Server
    FTP Server
    Mail Server
    MySQL Database
    Server Configuration Tools
    Web Server
    Administration Tools
    Base
    Hardware Support
    Java
    System Tools


    next :




    ( 30 ) .




    ,
    ,

    :


    Reboot

    :

    * :


    Run Tool

    ( Fedora ) (disable ) cPanel



    :


    Quit .

    >>>>

  3. wale3d :


  4. #3

    Jun 2009
    18
    7
    18 9

    * :

    ,
    .
    :
    PHP:
    ifconfig

    : Code:
    eth0
    , :
    Code:
    route -nee
    GateWay , , ..
    :
    PHP:
    chkconfig --list

    ,
    NetworkManager Fedora , .
    PHP:
    chkconfig NetworkManager off
    chkconfig
    --
    levels 35 network on
    /etc/init.d/
    network restart

    >>>

  5. wale3d :


  6. #4

    Jun 2009
    18
    7
    18 9

    * hosts :

    ( : server1.example.com )

    :
    PHP:
    pico /etc/hosts


    PHP:
    vi /etc/hosts

    :
    PHP:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.
    localdomain localhost
    192.168.0.100 server1
    .example.
    com server1
    ::1 localhost6.
    localdomain6 localhost6

    , ...
    Localhost 127.0.0.1


    >>>

  7. wale3d :


  8. #5

    Jun 2009
    18
    7
    18 9

    * SElinux :

    ,
    :
    : , Fedora .

    :
    PHP:
    system-config-firewall

    :


    (disabled) OK

    ( ) , :
    PHP:
    iptables -L

    :
    Code:
    [root@server1 ~]# iptables -LChain INPUT (policy ACCEPT)target prot opt source destination Chain FORWARD (policy ACCEPT)target prot opt source destination Chain OUTPUT (policy ACCEPT)target prot opt source destination[root@server1 ~]#
    * SElinux :

    SElinux
    SECURITY linux , cPanel .

    :
    :
    PHP:
    pico /etc/selinux/config


    PHP:
    vi /etc/selinux/config

    SElinux

    SELINUX disables
    PHP:
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    # enforcing - SELinux security policy is enforced.
    # permissive - SELinux prints warnings instead of enforcing.
    # disabled - No SELinux policy is loaded.
    SELINUX=
    disabled
    # SELINUXTYPE= can take one of these two values:
    # targeted - Targeted processes are protected,
    # mls - Multi Level Security protection.
    SELINUXTYPE=
    targeted


    :
    Code:
    reboot
    , ..

    * :
    1- GPG keys :
    PHP:
    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

    2- yum :
    PHP:
    yum update

    3- :
    :
    - fetchmail
    - wget
    - bzip2
    - unzip
    - zip
    - nmap
    - openssl
    - lynx
    - fileutils
    - ncftp
    - gcc
    - gcc-c++

    :
    PHP:
    yum install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp gcc gcc-c++

    * NANO :
    PHP:
    yum install nano

    >>>

  9. wale3d :


  10. #6

    Jun 2009
    18
    7
    18 9

    + DNS + MySQL

    * ISP

    Quota
    :
    PHP:
    yum install quota

    .

    Quota usrquota & grpquota
    dev/VolGroup00/LogVol00
    FSTAB

    :
    PHP:
    nano /etc/fstab

    :
    PHP:
    vi /etc/fstab

    defaults :
    Code:
    ,usrquota,grpquota
    :
    PHP:
    /dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1
    UUID
    =03b23ff4-4dda-47a8-a23f-2f530df157b2 /
    boot ext3 defaults 1 2
    tmpfs
    /dev/
    shm tmpfs defaults 0 0
    devpts
    /dev/pts devpts gid=5,mode=
    620 0 0
    sysfs
    /
    sys sysfs defaults 0 0
    proc
    /
    proc proc defaults 0 0
    /dev/VolGroup00/
    LogVol01 swap swap defaults 0 0


    :
    PHP:
    touch /aquota.user /aquota.group
    chmod 600
    /aquota
    .*
    mount -o remount
    /
    quotacheck -
    avugm
    quotaon
    -
    avug

    * DNS BIND9

    yum :
    PHP:
    yum install bind-chroot

    ...
    named :
    PHP:
    chmod 755 /var/named/
    chmod 775 /var/named/chroot
    /
    chmod 775 /var/named/chroot
    /var/
    chmod 775 /var/named/chroot/var/named
    /
    chmod 775 /var/named/chroot/var/run
    /
    chmod 777 /var/named/chroot/var/run/named
    /
    cd /var/named/chroot/var/named
    /
    ln -s ../../
    chroot
    chkconfig
    --
    levels 235 named on

    named
    PHP:
    /etc/init.d/named start

    named , cpanel :
    PHP:
    /var/named/chroot/var/named/.

    * MySQL :

    MySQL yum :
    PHP:
    yum install mysql mysql-devel mysql-server

    ..

    MySQL on :
    PHP:
    chkconfig --levels 235 mysqld on
    /etc/init.d/
    mysqld start

    MySQL :
    PHP:
    netstat -tap | grep mysql

    :
    PHP:
    tcp 0 0 *:mysql *:* LISTEN 2407/mysqld

    my.cnf :
    PHP:
    nano /etc/my.cnf


    PHP:
    vi /etc/my.cnf

    skip-networking # :
    PHP:
    [...]
    #skip-networking
    [...]

    MySQL :
    PHP:
    /etc/init.d/mysqld restart

    :
    :
    PHP:
    123456

    :
    PHP:
    mysqladmin -u root password 123456
    mysqladmin
    -h server1.example.com -
    u root password 123456

    .


    >>>

  11. wale3d :


  12. #7

    Jun 2009
    18
    7
    18 9



    Postfix Dovecot POP3/IMAP .

    yum

    PHP:
    yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot

    SMTP-AUTH TLS .

    PHP:
    postconf -e 'smtpd_sasl_local_domain ='
    postconf -e
    'smtpd_sasl_auth_enable = yes'
    postconf -e
    'smtpd_sasl_security_options = noanonymous'
    postconf -e
    'broken_sasl_auth_clients = yes'
    postconf -e
    'smtpd_sasl_authenticated_header = yes'
    postconf -e
    'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'
    postconf -e
    'inet_interfaces = all'
    postconf -e
    'mynetworks = 127.0.0.0/8'

    smtpd.conf postfix (PLAIN LOGIN) :
    : /usr/lib/sasl2/smtpd.conf
    : 32 , : /usr/lib64/sasl2/smtpd.conf 64 .
    PHP:
    nano /usr/lib/sasl2/smtpd.conf


    PHP:
    vi /usr/lib/sasl2/smtpd.conf

    :
    Code:
    pwcheck_method: saslauthdmech_list: plain login
    : mech_list: plain login

    .. SSL Certificate SSL postfix :
    PHP:
    mkdir /etc/postfix/ssl

    SSL :
    PHP:
    cd /etc/postfix/ssl/

    SSL :
    PHP:
    openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024

    PHP:
    chmod 600 smtpd.key
    openssl req
    -new -key smtpd.key -out smtpd.
    csr

    PHP:
    openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt

    PHP:
    openssl rsa -in smtpd.key -out smtpd.key.unencrypted

    PHP:
    mv -f smtpd.key.unencrypted smtpd.key
    openssl req
    -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -
    days 3650

    postfix TLS
    PHP:
    postconf -e 'smtpd_tls_auth_only = no'
    postconf -e
    'smtp_use_tls = yes'
    postconf -e
    'smtpd_use_tls = yes'
    postconf -e
    'smtp_tls_note_starttls_offer = yes'
    postconf -e
    'smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key'
    postconf -e
    'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'
    postconf -e
    'smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem'
    postconf -e
    'smtpd_tls_loglevel = 1'
    postconf -e
    'smtpd_tls_received_header = yes'
    postconf -e
    'smtpd_tls_session_cache_timeout = 3600s'
    postconf -e
    'tls_random_source = dev:/dev/urandom'

    ( ) : server1.example.com

    PHP:
    postconf -e 'myhostname = server1.example.com'

    postfix # :

    PHP:
    nano /etc/postfix/main.cf


    PHP:
    vi /etc/postfix/main.cf

    :
    Code:
    queue_directory = /var/spool/postfixcommand_directory = /usr/sbindaemon_directory = /usr/libexec/postfixdata_directory = /var/lib/postfixmail_owner = postfixinet_interfaces = allmydestination = $myhostname, localhost.$mydomain, localhostunknown_local_recipient_reject_code = 550alias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesdebug_peer_level = 2debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfixnewaliases_path = /usr/bin/newaliases.postfixmailq_path = /usr/bin/mailq.postfixsetgid_group = postdrophtml_directory = nomanpage_directory = /usr/share/mansample_directory = /usr/share/doc/postfix-2.5.1/samplesreadme_directory = /usr/share/doc/postfix-2.5.1/README_FILESinet_protocols = allsmtpd_sasl_local_domain =smtpd_sasl_auth_enable = yessmtpd_sasl_security_options = noanonymousbroken_sasl_auth_clients = yessmtpd_sasl_authenticated_header = yessmtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destinationmynetworks = 127.0.0.0/8smtpd_tls_auth_only = nosmtp_use_tls = yessmtpd_use_tls = yessmtp_tls_note_starttls_offer = yessmtpd_tls_key_file = /etc/postfix/ssl/smtpd.keysmtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crtsmtpd_tls_CAfile = /etc/postfix/ssl/cacert.pemsmtpd_tls_loglevel = 1smtpd_tls_received_header = yessmtpd_tls_session_cache_timeout = 3600stls_random_source = dev:/dev/urandommyhostname = server1.example.com
    postfix saslauthd Dovecot :
    PHP:
    chkconfig --levels 235 sendmail off
    chkconfig
    --
    levels 235 postfix on
    chkconfig
    --
    levels 235 saslauthd on
    chkconfig
    --
    levels 235 dovecot on
    /etc/init.d/
    sendmail stop
    /etc/init.d/
    postfix start
    /etc/init.d/
    saslauthd start
    /etc/init.d/
    dovecot start

    SMTP-AUTH TLS :
    Code:
    telnet localhost 25
    : 25
    WHM .

    :
    PHP:
    ehlo localhost

    :
    Code:
    250-STARTTLS

    PHP:
    250-AUTH PLAIN LOGIN



    PHP:
    [root@server1 ssl]# telnet localhost 25
    Trying 127.0.0.1
    ...
    Connected to localhost
    .
    Escape character is '^]'
    .
    220 server1.example.
    com ESMTP Postfix
    ehlo localhost
    250
    -server1.example.
    com
    250
    -
    PIPELINING
    250
    -
    SIZE 10240000
    250
    -
    VRFY
    250
    -
    ETRN
    250
    -
    STARTTLS
    250
    -
    AUTH PLAIN LOGIN
    250
    -AUTH=
    PLAIN LOGIN
    250
    -
    ENHANCEDSTATUSCODES
    250
    -
    8BITMIME
    250 DSN
    quit
    221 2.0.0 Bye
    Connection closed by foreign host
    .
    [
    root@server1 ssl]
    #


    PHP:
    quit



    Dovecot not mbox maildir
    PHP:
    postconf -e 'home_mailbox = Maildir/'
    postconf -e
    'mailbox_command ='
    /etc/init.d/
    postfix restart

    >>>

  13. wale3d :


  14. #8

    Jun 2009
    18
    7
    18 9

    * APache - PHP - FTP - Ruby - NTP - Webalizer


    * Apache 2.2.5 PHP
    Yum

    :
    PHP:
    yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel

    ....
    httpd.conf
    php

    PHP:
    nano /etc/httpd/conf/httpd.conf


    PHP:
    vi /etc/httpd/conf/httpd.conf

    :
    PHP:
    [...]
    DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.
    pl
    [...]

    :
    PHP:
    chkconfig --levels 235 httpd on

    :
    PHP:
    /etc/init.d/httpd start


    * Ruby :

    Ruby 2.2.20 yum
    PHP:
    yum install httpd-devel ruby ruby-devel

    mod_ruby :
    tmp
    PHP:
    cd /tmp

    :
    PHP:
    wget http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz

    :
    PHP:
    tar zxvf mod_ruby-1.2.6.tar.gz

    :
    PHP:
    cd mod_ruby-1.2.6/

    :
    PHP:
    ./configure.rb --with-apr-includes=/usr/include/apr-1
    make
    make install

    Ruby Apache :
    PHP:
    nano /etc/httpd/conf.d/ruby.conf


    PHP:
    vi /etc/httpd/conf.d/ruby.conf

    :
    PHP:
    LoadModule ruby_module modules/mod_ruby.so

    .

    :
    PHP:
    /etc/init.d/httpd restart

    * FTP ProFTPd

    cPanel proftpd vsftpd , ProFTPd

    vsftpd :
    PHP:
    yum remove vsftpd

    ProFTPd :
    PHP:
    yum install proftpd

    FTP :
    PHP:
    chkconfig --levels 235 proftpd on
    /etc/init.d/
    proftpd start

    * Webalizer ( ) :

    yum :
    PHP:
    yum install webalizer

    .

    * NTP server :

    NTP :
    PHP:
    yum install ntp

    :
    PHP:
    chkconfig --levels 235 ntpd on
    ntpdate 0.pool
    .ntp.
    org
    /etc/init.d/
    ntpd start

    * Perl Modules :

    cPanel / WHM :
    PHP:
    yum -y install tcp_wrappers-devel perl tar

    >>>

  15. wale3d :


  16. #9

    Jun 2009
    18
    7
    18 9

    * cPanel / WHM 11


    cpanel / WHM .
    , 45 .


    , cpins home


    PHP:
    mkdir /home/cpins




    cpins
    PHP:
    cd /home/cpins




    :
    PHP:
    wget http://layer1.cpanel.net/latest




    100%


    :
    PHP:
    sh latest




    30 60 .


    ,
    cPanel :
    http://example.com:2083
    http://example.com:2082


    WHM
    http://example.com:2087
    http://example.com:2086


    cPanel / WHM 11












    FemtoLayer Technlogies, INC

    , .

    .


  17. #10

    Jun 2009
    18
    15
    5 3



    100%


  18. #11
      pro-hack
    May 2009
    51
    0
    34 12






    24 24
    ..

    ( )

  19. #12

    Jun 2009
    18
    7
    18 9

    l0v3rd0


    100%

    .



    .

  20. #13

    Jun 2009
    18
    7
    18 9

    pro-hack





    24 24



    .

    .

  21. #14
    .: :.   M7MED ALOTAIBI
    Sep 2006
    5,253
    8,040
    4,851 1,510
    105



    ..
    ...

    :
    * pdf ..
    * ..
    ================

    ..
    ..


    bad3r
    CPU: Intel Core i7-980X @ 4.4GHz D0x
    M.B: Gigabyte EXTREME 2 X58 + ICH10R Chipset
    RAM: OCZ Platinum 6GB (3 x 2GB) 240-Pin DDR3 SDRAM DDR3 1600
    SSD: CORSAIR 40GB X2 Raid0
    HDD: W.D 1TB Black 2TB Green
    CPU Cooler : CORSAIR H100
    CASE: Thermaltake Spedo Advance Package VI9001W2Z Full
    GPU: NVIDIA EVGA GTX 580 X2 SLI
    PSU: Thermaltake Toughpower XT Series 850W Power
    MONITOR: SAMSUNG 2494HS "Black 24" 6ms Widescreen LCD - HDM
    ----------------------------------------------------------------------------------------
    Laptop : DELL 1520 Ex0x0 US
    Tablet : GALAXY Tab 10.1 WiFi + 3G HoneyCamp 3.1
    Phone : Galaxy S2 [GingerBread 2.3.3] ,Sony Ericsson K800I,W800I
    # Follow Me : Google Plus



  22. #15

    Jun 2009
    18
    7
    18 9

    BAD3R



    ..
    ...

    :
    * pdf ..
    * ..
    ================

    ..
    ..


    bad3r
    bad3r

    pdf



    , .

  23. #16

    Feb 2009
    22
    0
    2 2



    RHEL 5

    5.3 CentOs 11 Fedora RHEL 5

    stable


  24. #17
    :: ::
    Jun 2009
    4,722
    3,757
    4,286 1,898
    1

    hamoodii


    rhel 5

    5.3 centos 11 fedora rhel 5

    stable

    1. .
    2. .
    3. ߡ .
    4. !
    !
    -- -- abdilra7eem
    Google account: abdilra7eem

    !!
    : 4.8 - 0.21
    ===============
    ڡ
    ѡ
    :)

    =================
    " "
    " "

    ==============




: 1 (0 1 )

  1. [] DynDNS
    .: :.
    : 68
    : 11-24-2010, 03:03 PM
  2. []
    :::: .: :.
    : 5
    : 05-12-2010, 12:01 AM
  3. [] No-ip
    SUPER BOY .: :.
    : 6
    : 06-05-2009, 03:39 AM
  4. aroon .: :.
    : 3
    : 12-23-2007, 11:49 PM
  5. sint .: :.
    : 10
    : 11-12-2007, 11:09 PM