• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How To Install LAMP setup in Ubuntu 15.10

{{postValue.id}}

To Install LAMP setup in Ubuntu 15.10

In this tutorial we are going to install LAMP setup in Ubuntu 15.10. LAMP stands for Linux Apache Mariadb or Mysql and Php.


To Install the apache webserver

Run the following command to install Apache by using the following command.

[email protected]:/home/user1# apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
.
Setting up apache2 (2.4.12-2ubuntu2.1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...

After the installation is completed, check the status of apache web-server

[email protected]:/home/user1# systemctl status apache2

Install-LAMP-Ubuntu15.10-status-apache-web-server
Open the web-browser and enter http://< IP_address>
Install-LAMP-Ubuntu15.10-Open-web-browser

To install of Mariadb

Utilise the following command to install Mariadb.

[email protected]:~# apt-get install mariadb-server mariadb-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.

Install-LAMP-Ubuntu15.10-Install-Mariadb

.
.
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ..

Configure the Mariadb setup.

[email protected]:~# mysql_secure_installation

Install-LAMP-Ubuntu15.10-Configure-Mariadb
Install-LAMP-Ubuntu15.10-Configure-Mariadb-setup
Open the Mariadb prompt.

[email protected]:~# mysql  -u root &ndash p

Install-LAMP-Ubuntu15.10-Open-Mariadb-prompt.

To install of Php

Run the following command to install Php.

[email protected]:~# apt-get install php5 libapache2-mod-php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
.
php5_invoke: Enable module readline for apache2 SAPI
php5_invoke: Enable module readline for cli SAPI
Processing triggers for libapache2-mod-php5 (5.6.11+dfsg-1ubuntu3.4) ...

Create a new file called info.php in the apache' s default root directory.

[email protected]:~# cd /var/www/html
[email protected] : /var/www/html:~#  nano info.php

And add the following lines into it.

< ?php
phpinfo()
?> 

Open the browser and navigate to http://< IP_address> /info.php

Install-LAMP-Ubuntu15.10-Open-browser-installed-successfully

Now the LAMP server is installed successfully in Ubuntu 15.10.

Tags:
grayson
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

State the main difference between mysql_fetch_array and mysql_fetch_object?

A

Mysql_fetch_array will fetch all the matching records, whereas mysql_fetch_object will only fetch the first record that matches the query.

Q

What is the Purpose of using the LAMP setup?

A

LAMP is a server configuration for various web applications. It helps in running servers and dynamic web sites. It is a web development platform that uses Linux operating system, Apache web s

Q

How you will find the number of elements present in an array ?

A

To find the no. of elements in an array, you can either use count() or sizeof() function
Ex: count($array) or sizeof($array).

Q

How Can you increase the maximum upload size in PHP ?

A

Yes, we can use the upload_max_filesize variable to change the maximum size of a file you can upload.

Q

How you will define a Session ?

A

A Session is a method to store some data to be used across multiple pages. In technical terms it is a logical object that is stored in the server to help you store data and can be accessed ac

Back To Top!
Rank
User
Points

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
30760

Top Contributers

userNameabdularham
21495

Top Contributers

userNamenaveelansari
21400

Top Contributers

userNameGREEN
21000
Can you help Surajit Nanda ?
Nginix server setup as a load balancer and reverse proxy in Centos

Hi Team,
Is it possible to set up both ond balancer and reverse proxy on the same Centos server.
If so , can you please share the configuration.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2023 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.