CENTOS————————————————————————————– Add a user (who isn’t root) Add a new user to the wheel and apache groups. The wheel group gives root/sudo access. The apache group allows both user and apache to write to your website files. The -G tells useradd we want to add to multiple groups. Sam is the username in this example. useradd -G wheel,apache us3rpasswd us3r Set directory and file permissions Make apache ..
Category : LAMP
Keep House Clean (TIDAK HARUS DILAKUKAN) service httpd stopyum remove php php-* rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpmrpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpmls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/webtatic.repo/etc/yum.repos.d/epel.repo/etc/yum.repos.d/epel-testing.repo/etc/yum.repos.d/webtatic.repo vi /etc/yum.repos.d/webtatic.repo [webtatic]name=Webtatic Repository $releasever – $basearch#baseurl=http://repo.webtatic.com/yum/centos/5/$basearch/mirrorlist=http://repo.webtatic.com/yum/centos/5/$basearch/mirrorlistenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy =====================start here ============================APACHE yum install httpdservice httpd restart PHP5 yum install php php-mysqlservice httpd restart untuk mencoba silahkan ketikkanecho “<?php phpinfo();?>” >> /var/www/html/info.phpuntuk mencari modul gunakan perintahyum ..
CHANGE SSH PORT vi /etc/ssh/sshd_config/etc/init.d/ssh restart UPDATE apt-get update APACHE 2 apt-get install apache2 PHP 5 apt-get install apache2 php5 libapache2-mod-php5 php-pear ‘php5-suhosinservice apache2 restartrm -fr /var/www/index.htmlecho “<?php phpinfo();?>” >> /var/www/index.php MYSQL apt-get install mysql-server mysql-client php5-mysqlmysql_secure_installationservice apache2 restart RESET ROOT PASSWORD https://www.debian-administration.org/article/442/Resetting_a_forgotten_MySQL_root_passwordPHPMYADMIN apt-get install phpmyadmin/etc/init.d/apache2 restart REMOTE MYSQL vi /etc/mysql/my.cnf bind-address ..