streda 6. júna 2012

LAMP server on FEDORA 17

Install MySql server and client

yum install mysql mysql-server

Starting and enabling mysql


systemctl start mysqld.service
systemctl enable mysqld.service

Basic MySql setup

mysql_secure_installation

Install Apache and PHP

yum install httpd php php-common

service httpd start

chkconfig --levels 235 httpd on

yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

Install phpmyadmin

yum install phpmyadmin

or download and upack to /var/www/html/ from http://www.phpmyadmin.net/

service  httpd restart

How to change document root in fedora read here http://hafiz-khairina.blogspot.sk/2010/04/fedora-change-root-directory-of-httpd.html

TADAAAAA