[SOLVED] AMP

Questions about applications and software
Forum rules
Before you post please read how to get help
arimakidd
Level 1
Level 1
Posts: 22
Joined: Thu Nov 02, 2017 11:37 pm

[SOLVED] AMP

Postby arimakidd » Wed Nov 08, 2017 7:36 pm

I would like to install Apache2, Php7 and MySQL all in one location on my linux box. Is this advisable and how can I do it? I have been looking at various sudo apt-get commands that do a all in one installation but it doesn't look like all the applications go to the same location. Last but not least, will the apache httpd.conf automatically be configured for php? Do I still have to configure it? Can I do configurations before I install?

arimakidd
Level 1
Level 1
Posts: 22
Joined: Thu Nov 02, 2017 11:37 pm

Re: AMP

Postby arimakidd » Sun Nov 12, 2017 12:49 pm

Solved. I'll ask this question in a more appropriate forum. Software and Applications.

User avatar
Moem
Level 11
Level 11
Posts: 3677
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: AMP

Postby Moem » Sun Nov 12, 2017 1:03 pm

Mod notes:
Moved, duplicate deleted, please don't double post.
If this is solved, please mark as SOLVED (in the title) and post your solution so others can find it too.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

arimakidd
Level 1
Level 1
Posts: 22
Joined: Thu Nov 02, 2017 11:37 pm

Re: AMP

Postby arimakidd » Sun Nov 12, 2017 6:16 pm

I have found a really nice command to install apache,php,mysql. Here is the command to install php:

Code: Select all

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install -y php7.0


My question is what is the location of the installation? How can I control this location? Suppose I want to install somewhere else?

arimakidd
Level 1
Level 1
Posts: 22
Joined: Thu Nov 02, 2017 11:37 pm

Re: AMP

Postby arimakidd » Sun Nov 12, 2017 6:36 pm

I executed the commands found on this page:
https://tecadmin.net/install-php-7-0-apache-2-4-mysql-5-6-on-ubuntu/#

Everything installed to /etc. Is there an advantage when it installs here? Are there ramifications when it installs somewhere else?

arimakidd
Level 1
Level 1
Posts: 22
Joined: Thu Nov 02, 2017 11:37 pm

Re: AMP

Postby arimakidd » Sun Nov 12, 2017 7:07 pm

Okay so at least I was able to vi the index.html and change it to index.php and echo phpinfo(). The location of the documentroot is in /var/www/html and the location of the configuration files are /etc/apache2.

Not quite what I set out to do. I'll focus on moving everything to one location later. For now this works.
Last edited by arimakidd on Sun Nov 12, 2017 7:09 pm, edited 1 time in total.

arimakidd
Level 1
Level 1
Posts: 22
Joined: Thu Nov 02, 2017 11:37 pm

Re: AMP

Postby arimakidd » Sun Nov 12, 2017 7:08 pm

[SOLVED]


Return to “Software & Applications”

Who is online

Users browsing this forum: No registered users and 10 guests