Lamp
server
Installation
of lamp is same as xammp but the only difference is we use linux in
the place of the windows
lamp
can be installed in ubuntu. if we install the lamp server we will get mysql, php, linux
#sudo
apt-get install lamp-server^
here
the (^) is important because it will be installed only if we use ^
.so don't miss this symbol (^)
after
this the lamp will be installed
after
this will ask for the mysql root password for the creation of the
database
after
this it will be completed
to
test your apache server go to the browser and type this
http://localhost
then
it will be opened like “it works” so by this you can confrim that
the apache working
then
to test you php do like this
#sudo
nano /var/www/testing.php
here
a file will be created then edit this file as follows
<?php
phpinfo(); ?>
then
save the file
then
restart the apache server
#sudo
/etc/init.d/apache2 restart
after
the installation go to the browser and type
http://localhost/testing.php
then
it will be resloved as a page in the browser
after
the installationof lamp checxk for the bind address
# cat
/etc/hosts | grep localhost
here
it will show the local hosts
#cat
/etc/mysql/my.cnf | grep bind-address
in
the configuration file file you can see the bind address as
127.0.0.1. it will be as default if not means cange the bind address
of the my.cnf file
No comments:
Post a Comment