Salam. Hi there. today i installed php,apache,mysql on my ubuntu pc. I ve started my practical training last week. They asked me to do php on their current web application/system project. They do not allow me to use xamp. thus i ve to install one by one php,apache, and mysql.. on their windows.
hurmp. the computer over there is really sick. lot of problems it took me two days to install and reinstall P.A.M (php,apache, and mysql-including gui) got conflict with previous installation and windows server call IIS(i really hate windows)...the actual duration for installing P.A.M are about 10-15 minute... huhuh ..longer..
compared to ubuntu.. it took only 5 minutes to install P.A.M .. only certain command . then yes! i can use those P.A.M..
here i will share a bit .. what did i do to install P.A.M
1. Install apache.
a. run terminal
b. insert the following cmmd
to check wether you have install correctly or the server (Apache) is working .. open your browser .. then type.. localhost.
to configure your apache. you can find the apache file in filesystem>etc>apache2
2. Install php
a.use the following command
file system>var>www
then try to it on your browser.. for example localhost/index.php the page show display the right output for your php file.
3. Install mySQL.
a. run this command
b.during the installation, you will be asked to provide a password for mysql 'root'
user. this password will be used to login to MySQL.
c. After installing MySQL, you need to configure PHP to use MySQL. Installing the php5-mysql package enables MySQL support in PHP. It enables you to use PHP to connect to MySQL databases.
finished! now you are ready to start php programming !
credit to:
http://blogote.com/ubuntu/how-to-install-apache-2-on-ubuntu-10-04-with-php5-and-mysql-support-guide/6071/
http://javahowto.blogspot.com/2008/07/install-mysql-gui-tools-mysql.html
hurmp. the computer over there is really sick. lot of problems it took me two days to install and reinstall P.A.M (php,apache, and mysql-including gui) got conflict with previous installation and windows server call IIS(i really hate windows)...the actual duration for installing P.A.M are about 10-15 minute... huhuh ..longer..
compared to ubuntu.. it took only 5 minutes to install P.A.M .. only certain command . then yes! i can use those P.A.M..
here i will share a bit .. what did i do to install P.A.M
1. Install apache.
a. run terminal
b. insert the following cmmd
sudo apt-get install apache2
to check wether you have install correctly or the server (Apache) is working .. open your browser .. then type.. localhost.
to configure your apache. you can find the apache file in filesystem>etc>apache2
2. Install php
a.use the following command
sudo apt-get install php5 libapache2-mod-php5
to check whether the php is working. try to run .php file. put the file in directory
file system>var>www
then try to it on your browser.. for example localhost/index.php the page show display the right output for your php file.
3. Install mySQL.
a. run this command
sudo apt-get install mysql-server mysql-client
b.during the installation, you will be asked to provide a password for mysql 'root'
user. this password will be used to login to MySQL.
c. After installing MySQL, you need to configure PHP to use MySQL. Installing the php5-mysql package enables MySQL support in PHP. It enables you to use PHP to connect to MySQL databases.
sudo apt-get install php5-mysql
d. Install the GUI tool for mySQL for easy database setup :)
sudo apt-get install mysql-admin
sudo apt-get install mysql-query-browser
credit to:
http://blogote.com/ubuntu/how-to-install-apache-2-on-ubuntu-10-04-with-php5-and-mysql-support-guide/6071/
http://javahowto.blogspot.com/2008/07/install-mysql-gui-tools-mysql.html
Comments
Post a Comment