jueves, 19 de julio de 2012

LAMP in Fedora 17

Many persons today have a question, What is LAMP? very simple for your acronym:

- Linux, the operating system, in some cases referred to LDAP.
- Apache, the web server;
- MySQL, the database manager;
- Perl, PHP, or Python programming languages​​.




Considering that I have Fedora 17 Xfce 64bit
the first step:

Install Apache server:

Go into the console, login as root and proceed to write: yum install httpd php php-common

[soporte@BMNG001 ~]$ su                                                                                                                                      
Contraseña:                                                                                                                                                  
[root@BMNG001 soporte]# yum install httpd php php-common


and then

[root@BMNG001 soporte]# service httpd start  
[root@BMNG001 soporte]# chkconfig --levels 235 httpd on

In your browser type http://yourIP/

Example:

http://192.168.160.6/



We will need some php modules:


[root@BMNG001 soporte]#  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 MySQL server:


[root@BMNG001 soporte]# yum install mysql mysql-server 

Start and enable services:

[root@BMNG001 soporte]# systemctl start mysqld.service
[root@BMNG001 soporte]# systemctl enable mysqld.service

Assign Mysql password:

[root@BMNG001 soporte]# mysqladmin -u root password Test2012$

Check connection to MySQL server:


[root@BMNG001 soporte]# mysql -h localhost -u root -p

And Finally install PHPMyAdmin:

[root@BMNG001 soporte]# yum install phpmyadmin

Restart Apache (httpd)

[root@BMNG001 soporte]# service httpd restart
Redirecting to /bin/systemctl restart  httpd.service
[root@BMNG001 soporte]#

when finish type in your browser: http://yourIP/phpmyadmin

Example:

http://192.168.160.6/phpmyadmin

And that's all, Greetings.

No hay comentarios:

Publicar un comentario