Description
this tutorial i will teach you how to install webserver (apache) , mysql & postgresql, and php5 in linux (in case i use debian)
HowTo
1. Before install we must think, how to get all package we need. in linux you can download it (by clicking in web) or use command. but this case we use command (because it's simple).
now get all package by type this command :
apt-get update // get list all repository
php5 package :
apt-get install php5
apt-get install libapache2-mod-php5
apt-get install php5-mcrypt
apt-get install php-pear
apt-get install php5-mysql //ext for mysql
apt-get install php5-pgsql //ext for postgresql
apache2 package
apt-get install apache2
postgresql package
apt-get install postgresql
postgresql GUI package
apt-get install phppgadmin
// you can access : http://localhost/phppgadmin
mysql package
apt-get install mysql-server
phpmyadmin package
apt-get install phpmyadmin
// you can access : http://localhost/phpmyadmin
2. Assume all package already installed, now you can setup them.
Apache2 :
control path : /etc/init.d/apache2 [start/stop] // for start/stop service
setting conf : /etc/apache2/apache2.conf
add this line in setting conf :
Include /etc/phpmyadmin/apache.conf
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/[^.#]*
Include /etc/apache2/sites-enabled/[^.#]*
php5 :
setting conf : /etc/php5/apache2/php.ini
Postgresql :
control path : /etc/init.d/postgresql [start/stop] // for start/stop service
first time run :
> su postgres
> createuser -P // root must be the first user
> role name : root
> password : yourpassword
> superuser : yes
after finish , you can create another use.
for access you can goto : http://localhost/phppgadmin
Mysql :
control path : /etc/init.d/mysql [start/stop] // for start/stop service
for access you can goto : http://localhost/pupmyadmin
if you have another method or other configuration , just comment it. if it's important i will update this article.
hope this solve your problem.
this tutorial i will teach you how to install webserver (apache) , mysql & postgresql, and php5 in linux (in case i use debian)
HowTo
1. Before install we must think, how to get all package we need. in linux you can download it (by clicking in web) or use command. but this case we use command (because it's simple).
now get all package by type this command :
apt-get update // get list all repository
php5 package :
apt-get install php5
apt-get install libapache2-mod-php5
apt-get install php5-mcrypt
apt-get install php-pear
apt-get install php5-mysql //ext for mysql
apt-get install php5-pgsql //ext for postgresql
apache2 package
apt-get install apache2
postgresql package
apt-get install postgresql
postgresql GUI package
apt-get install phppgadmin
// you can access : http://localhost/phppgadmin
mysql package
apt-get install mysql-server
phpmyadmin package
apt-get install phpmyadmin
// you can access : http://localhost/phpmyadmin
2. Assume all package already installed, now you can setup them.
Apache2 :
control path : /etc/init.d/apache2 [start/stop] // for start/stop service
setting conf : /etc/apache2/apache2.conf
add this line in setting conf :
Include /etc/phpmyadmin/apache.conf
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/[^.#]*
Include /etc/apache2/sites-enabled/[^.#]*
php5 :
setting conf : /etc/php5/apache2/php.ini
Postgresql :
control path : /etc/init.d/postgresql [start/stop] // for start/stop service
first time run :
> su postgres
> createuser -P // root must be the first user
> role name : root
> password : yourpassword
> superuser : yes
after finish , you can create another use.
for access you can goto : http://localhost/phppgadmin
Mysql :
control path : /etc/init.d/mysql [start/stop] // for start/stop service
for access you can goto : http://localhost/pupmyadmin
if you have another method or other configuration , just comment it. if it's important i will update this article.
hope this solve your problem.