[SOLVED] Tried everything, searched and searched: Php7 (LAMP install)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, I ran purges using *file* to hopefully get rid of everything with apache2, mysql/mariadB, and myphpadmin. Tomorrow if I have time before I leave for the week I'll try fresh, hopefully I did remove everything?
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
I still recommend that you try lighttpd instead of apache2. lighttpd is smaller and easier to set up, in my experience. And it's available in the Ubuntu repositories (which Mint uses). The lighttpd-doc package also helps. This site has a forum for it: http://www.lighttpd.net/
Last edited by mark_alfred; 07-21-2017 at 06:42 AM.
Ok Mark, I am back home at my computer and want to try lighttpd before I give up and perform a fresh OS install. I am worried about my install missing the public_html file/directory and I don't know what it is, if it's supposed to be empty or has content and what format that content is in.
As for installing lighttpd, what tutorial do you recommend for my OS, which is Mint KDE 18.2 Sonya based upon xenial I think.
The basic server(s) will be located in /var/www. The configuration file is /etc/lighttpd/lighttpd.conf. The first thing to do is get it working on your localhost. The documentation is pretty easy on this.
Now, jumping ahead a bit here...
Then, after you have got it working on the localhost, you set it up to point out to world.
And, having done that, make sure that the agency you registered your domain name with (godaddy or domainpeople or whomever) points your domain name to your web server that you set up. And regarding that, most places that register domain names also do the serving for people. You, however, (I'm assuming) would want your registered domain name to be served from your home webserver. So, with the agency, you would have to have the domain name you registered be set up to be identified as being served from your home webserver (so, I think like pointing to your IP address). The thing to do then is to check the site of the agency you registered the domain name with and find where you can set that up -- and if that can't be found, then just ask them, letting them know you have your own home webserver, and then they'll let you know where in the site to go to make sure the domain name you bought is associated with your home webserver.
Again, most agencies that sell domain names (godaddy or domainpeople or whomever) also sell doing the serving. This is at a cost, which increases if you want stuff like php and mysql included. So, by using your own home webserver instead, you can cut down on such costs, which is an advantage of using your own home webserver. A disadvantage, of course, is you need to always keep your computer on to be serving to the world wide web.
Anyway, that is jumping ahead. The first thing to do is get your home webserver working on your local host. Good luck. Again, this should get you going in the right direction pretty quickly: http://redmine.lighttpd.net/projects...lConfiguration
Ok, started trying lighttpd, I already did install it using Mint's Software Manager (KDE) and I made the .conf file as in their tutorial. It didn't say where to put it, so I put in in my home directory. Then in the command line:
Hot dog, getting somewhere now, at least I'm back to a point I was in back when I was trying to get LAMP to work.
I had some time figuring out how to get the lighttpd.conf file working and the right server.document.root path where it would work.
In a nutshell I changed that to my /home/username/public_html I remade that I put a backup coming of index.html I had saved inside of and I chmodded it 755.
How when I restart lighttpd and go to 127.0.0.1 on my browser I get the apache2 placeholder webpage.
I am trying this tutorial that I had tried previously:
i did (in su):
xed /var/www/html/testphp.php
_-------------------------------------------------
_-------------------------------------------------
i'd add, when you install mysql-server, you can specify a password for root. if you do it while installing, you don't have to do step 3.
"
those dashes indicate, it seems, to do the earlier other parts as is. When doing sudo nano /var/www/html/testphp.php and putting in it what the tutorial says in the earlier part, then when I attempt start the phptest page I get a 404 not found. That was where my impass was before. I cannot proceed further than this without getting that test page to appear.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.