centos LAMP (32bit)

centos lamp
——————

yum install mysql mysql-server

chkconfig –levels 235 mysqld on
/etc/init.d/mysqld start

——————
mysqladmin -u root password supergizliparola
mysqladmin -h server1.example.com -u root password supergizliparola
——————

yum install httpd

chkconfig –levels 235 httpd on

/etc/init.d/httpd start

——————
yum install php

/etc/init.d/httpd restart

——————
nano /var/www/html/info.php

<?php
phpinfo();
?>
——————
yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring
——————

/etc/init.d/httpd restart
——————
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm

yum update

yum install phpmyadmin

nano /etc/httpd/conf.d/phpmyadmin.conf

#
#  Web application to manage MySQL
#
#<Directory “/usr/share/phpmyadmin”>
#  Order Deny,Allow
#  Deny from all
#  Allow from 127.0.0.1
#</Directory>
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

commentle gitsin
——————
nano /usr/share/phpmyadmin/config.inc.php

[…]
/* Authentication type */
$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;
[…]

cookiyi http yapiyoruz.
——————

/etc/init.d/httpd restart

——————

——————

http://server.ip.adresi/info.php
http://server.ip.adresi/phpmyadmin