B
B
Boris Yakushev2016-05-21 16:08:08
linux
Boris Yakushev, 2016-05-21 16:08:08

Installing and configuring lamp?

Good afternoon.
I set up a server on Windows for development according to this manual , it turned out to be a very convenient and easy-to-configure server, with the following structure:
608952fecc.jpg
If I need to add a new site, then I just create a new folder in www, I prescribe the paths in the Apache config, I prescribe the site name in hosts and my local ip.
If I need to update php, I just delete the old version from the php folder and upload the new one (not forgetting to save php.ini of course).
I went to an interview, they advised me to try LAMP, I coped with its installation, but there are a lot of questions:
1. Is it possible to make such a structure as in the screenshot above?
2. If there is an error in the php file, then the page will not open in vain, how to fix this problem?
3. How to update php to the latest version? At the moment it costs 7.0.4, I want to put 7.0.6
Thank you all for your answers / advice. Maybe they will advise what manual is understandable for setting up and administering LAMP.
upd: ubuntu is very good and pleasant to use, I would not like to switch back to windows. But what used to be done in a couple of clicks now requires much more effort.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
index0h, 2016-05-21
@za4me

1. Is it possible to make such a structure as in the screenshot above?

You can, the main thing is that it would be profitable for you. For example, do you need apache and php directories - I doubt it.
Fix the error in the php file, it's obvious.
Look towards builds from third-party ppas, such as ppa:ondrej/php, or wait for it to appear in the official repository.
You can look in the direction of moving to CentOS, Remi builds appear very quickly.
Under the environment for development, I highly recommend looking towards Vagrant

C
CityCat4, 2016-05-21
@CityCat4

1. You can. And this and that and whatever.
2. In PHP, if my memory serves me, there is a mode for displaying errors on the page. They are not recommended to be used in production, but for debugging - why not?
3. Two options - a) find a package with a newer version b) build PHP yourself.
There is no concept of "administration of LAMP" LAMP is something artificial and stands for, if you are not yet aware of how Linux, Apache, Mysql, PHP - and you want one manual for all this? You will need a locker for manuals ...
Windows was originally written for the user and it is clear that her UI is brought to a shine. Yes, it's good to play. Or watch a movie there. In linux, even in a "friendly" bootloader, at least a minimal understanding of what you are doing is required.

S
Sanes, 2016-05-21
@Sanes

Take a look at the sources. Ubuntu 16.04 Nginx+PHP-FPM

M
Maxim Lumen, 2016-05-21
@Maximum_Live

in line, almost everything is done through the terminal - when I asked the same question and added that it’s easier in Windows, an avid Linuxoid told me that I would use Windows since it’s easier for me

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question