LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-21-2017, 12:29 AM   #31
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16

Yes, I agree, but now do I do that, how do I remove and get it back to pre install state and start fresh? I don't know the commands and steps.

I do have to take a breath however because I will be gone on and off for the next 6 days.
 
Old 07-21-2017, 12:57 AM   #32
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
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?
 
Old 07-21-2017, 06:41 AM   #33
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,560

Rep: Reputation: 208Reputation: 208Reputation: 208
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.
 
Old 07-23-2017, 01:47 AM   #34
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
I'm away from my home and unable to do anything for now I will be back in a while and try the suggestions here.
 
Old 07-28-2017, 08:14 AM   #35
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
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.
 
Old 07-28-2017, 10:43 AM   #36
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,560

Rep: Reputation: 208Reputation: 208Reputation: 208
Most of the information is here: http://redmine.lighttpd.net/projects/lighttpd/wiki

So, there's documentation, a wiki, and a forum (with some recent activity), to be found there. Here's the quick documentation for the absolute basic set-up: http://redmine.lighttpd.net/projects...lConfiguration

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
 
1 members found this post helpful.
Old 07-28-2017, 01:39 PM   #37
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Thank you, I actually am not at the point where I want to attempt to run my own server/host/online presence.

My goal was to learn how to:

Set up and learn wordpress locally rather than on my webhost's site.

Set up and learn Joomla for the same purpose.

Be able to play with both of them without being seen online using lesson videos.
 
Old 07-28-2017, 03:46 PM   #38
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
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:

Code:
lighttpd -t -f lighttpd.conf
lighttpd: symbol lookup error: lighttpd: undefined symbol: FAMNoExists
Is what I got.

I've requested help in their forum on this.
 
Old 07-29-2017, 01:14 AM   #39
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
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:

http://www.itzgeek.com/how-tos/linux...ntu-11-10.html

But obviously to me now, hurr durr, this part is where I had trouble before and where I got in trouble:

"Installing MySQL:

Next is to install the MySQL server and client, both are available in Linux Mint repository; just issue the following command to install it.

raj@geeksite~/$ sudo apt-get install mysql-server mysql-client php5-mysql"

Because the last part of that, php5-mysql will not work with my version, as I now recall only php7 will work.

However, changing that to pyp7-mysql does not work either because it doesn't find it there.

So that is where I am stuck now.

but to be clear, I THINK lighttpd is now in order because the apache place holder page appears in my browser.
 
Old 07-29-2017, 01:52 AM   #40
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20 MATE, MX-19.3, antiX, EndeavourOS
Posts: 3,323
Blog Entries: 17

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
signmeuptoo,

You are making hard work of this LAMP installation.

I gave you explicit instructions on how to do this way back in post #14.

That blog includes the latest modification to php7.

I can assure you that those instructions do work.
 
1 members found this post helpful.
Old 07-29-2017, 01:52 AM   #41
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
ok, in this tutorial I find some answers. There is the tutorial, which is for older distro version but down the page they made some changes:

https://community.linuxmint.com/tutorial/view/486

when doing the php install, rather than use php5 which will not install, do these steps as seen there:

"
nnov
Some minor changes, just did this tutorial on LM 18.1 Serena Cinnamon 64 bit:

instead of:
sudo apt-get install php5 libapache2-mod-php5

i did (in su):

apt-get install php7.0
apt-get install libapache2-mod-php7.0
_-------------------------------------------------
_-------------------------------------------------
instead of:
sudo gedit /var/www/testphp.php

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.

Can you all help with this part?
 
Old 07-29-2017, 12:44 PM   #42
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by beachboy2 View Post
signmeuptoo,

You are making hard work of this LAMP installation.

I gave you explicit instructions on how to do this way back in post #14.

That blog includes the latest modification to php7.

I can assure you that those instructions do work.
Beachboy, I apologize that I missed your advice somehow and I've gotten all the way to this point in your tutorial:

"Navigate to http://localhost/testing.php

It will display all the details about php such as version, build date and commands etc."

and using chromium instead of the phptest start with version, build data and commands, this is what shows:

<?php
phpinfo();
?>

IN the browser.

Trying to navigate to testing.php in firefox shows a blank browser with nothing on it.

I am so close, what do I need to do, reboot? Everything seemed to go just fine.
 
Old 07-29-2017, 01:05 PM   #43
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Also, this is what is in /var/www/html/

Code:
/var/www/html $ ls
example.com  index.html.backup    index.php  license.txt  phpinfo.php  testing.php
index.html   index.lighttpd.html  info.php   localhost    readme.html  xmlrpc.php
 
Old 07-29-2017, 02:29 PM   #44
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
uh oh, I tried rebooting and restarting apache and I get 404not found now when taking both browsers to the localhost/testing.php page.
 
Old 07-29-2017, 04:43 PM   #45
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20 MATE, MX-19.3, antiX, EndeavourOS
Posts: 3,323
Blog Entries: 17

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
signmeuptoo,

Are you sure that you did the previous steps correctly using nano?

nano is installed, I assume?

To test PHP, create a sample “testing.php” file in the Apache document root folder, which is: /var/www/html

Code:

Code:
sudo nano /var/www/html/testing.php
Copy and paste the following lines to the file:

Code:

Code:
<?php
phpinfo();
?>
Save the changes by using Ctrl+O, then press Enter. Exit using Ctrl+X.

Restart apache2 service:

Code:

Code:
sudo systemctl restart apache2

Last edited by beachboy2; 07-29-2017 at 04:50 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
seems horrible what can be searched here jheengut General 17 06-23-2012 02:00 PM
Searched Everywhere jeep99899 Linux - Newbie 1 09-13-2004 02:06 PM
I searched and searched so... NeeWom Linux - Software 0 04-16-2004 12:14 PM
Linksys driver install (searched hi & low) Bogus8 Slackware 3 10-15-2003 08:05 PM
Searched Everywhere... ChrisL Linux - General 5 02-14-2002 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration