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-19-2017, 07:44 AM   #1
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Rep: Reputation: 16
Unhappy Tried everything, searched and searched: Php7 (LAMP install)


I am disheartened. For the last 2 months I've been teaching myself all I can about GNU/Linux and have learned so much and even been able to figure out some things on my own with little or no help from a forum or a google search. But I'm a noobie and I am so lost and downhearted right now I have no choice but to come here and beg for help.

Here's what I am trying to do, NEED to do:

I need to get wordpress running locally on my own computer, rather than on a host site, NOT so I can host a website, but for my own practice needs. I also need to have LAMP working so that I can eventually run Joomla and whatever other CMS software to need to learn.

Also, I need to LEARN how to get LAMP working, and I've tried 6 different sites and their instructions and can get apache2 running with the localhost apache page, but I can't seem to get PHP7/myphpadmin to appear on localhost/myphpadmin no matter what I try. I try to get mysql running and something seems to go wrong because I cannot start restart update it, either.

I might need to clean out everything I've done, which I have no idea how to do, and start fresh, but I followed tutorials to the letter.

I am running GNU/Linux Mint KDE 18.2 and so far it's run beautifully, better than 18.1, despite being a beta.

My hardware is Intel Devil's Canyon i5 based with 32 GB RAM, Mint is the ONLY OS installed directly on my SSD, and I do have virtual machines but they aren't involved in what I am trying to do here.

At another site for some reason no one is offering any help, I've behaved well yet I seem to be getting ignored. Im deeply disheartened because I've spent days trying to get this to go.

I would like not only, at some point, to get wordpress working ONLY locally and not as a visible to the world web tool, but eventually know HOW to set UP LAMP for hosting locally when I get to that point, and understanding all the security measures like salting and hashing, which I have no idea about.

Could somebody please help me, I think this forum is my last resort and I have not found a LAMP or php or sql site to go to for help.
 
Old 07-19-2017, 07:58 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,901
Blog Entries: 13

Rep: Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029
Can you post the links to the guides which you have followed?

I've never used wordpress, however a quick search with the terms "wordpress mint" and the second result is: How to install Wordpress on Linux Mint and that instruction informs you to make sure your repository is up to date using sudo apt-get update and then tells you to call sudo apt-get install wordpress. That seem to be very simple instruction.

Perhaps you should consider trying that to install Wordpress.

To go one further, Linux Mint 18.1 Serena which I use has a Software Manager under the Administration category in the Desktop menu and if you search for Wordpress, it finds it and you can install using that method.

Perhaps start with this, and then update us to advise with your progress.
 
Old 07-19-2017, 08:35 AM   #3
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 12.1, Alpine 5.4, Manjaro 19, Alpine on WSL [Win10]
Posts: 194

Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by rtmistler View Post
Looks like this is for 'installing' Wordpress alone, not the LAMP stack.

OP - are Apache, MySQL and PHP installed on your machine at this point? If so, then it's likely just a configuration problem.

What exactly happens when trying to navigate to your local server? Are you using 'localhost', '127.0.0.1', the local IP, or something else? What error(s) do you get?

It also might serve you better to post your httpd.conf file. Not sure where it's located in Mint, I would hope somewhere under /etc/.
 
Old 07-19-2017, 08:43 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,901
Blog Entries: 13

Rep: Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029Reputation: 4029
Quote:
Originally Posted by urbanwks View Post
Looks like this is for 'installing' Wordpress alone, not the LAMP stack.
Yes, you are correct and my apologies for being unclear.

My intention here is to see if signmeuptoo can start with installing that package first and then see what additional problems they face. I do realize there are a number of things they are trying to install. Wordpress seems to not be a big deal to install, and if they have trouble doing that first part, we should start there.
 
Old 07-19-2017, 08:52 AM   #5
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 12.1, Alpine 5.4, Manjaro 19, Alpine on WSL [Win10]
Posts: 194

Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by rtmistler View Post
Yes, you are correct and my apologies for being unclear.

My intention here is to see if signmeuptoo can start with installing that package first and then see what additional problems they face. I do realize there are a number of things they are trying to install. Wordpress seems to not be a big deal to install, and if they have trouble doing that first part, we should start there.
Thanks, agreed. Also, in re-reading, if he/she can access the initial 'It's Working' page from Apache, then my money is on PHP not being defined in httpd.conf. If that's the case, that Wordpress install should work immediately after adding it.

...but of course it's never that simple
 
Old 07-19-2017, 01:35 PM   #6
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by rtmistler View Post
Can you post the links to the guides which you have followed?

I've never used wordpress, however a quick search with the terms "wordpress mint" and the second result is: How to install Wordpress on Linux Mint and that instruction informs you to make sure your repository is up to date using sudo apt-get update and then tells you to call sudo apt-get install wordpress. That seem to be very simple instruction.

Perhaps you should consider trying that to install Wordpress.

To go one further, Linux Mint 18.1 Serena which I use has a Software Manager under the Administration category in the Desktop menu and if you search for Wordpress, it finds it and you can install using that method.

Perhaps start with this, and then update us to advise with your progress.
https://forums.linuxmint.com/viewtop...187&hilit=lamp

https://forums.linuxmint.com/viewtop...155&hilit=lamp

https://www.digitalocean.com/communi...n-ubuntu-16-04

https://www.tecmint.com/install-word...-04-with-lamp/

https://www.tecmint.com/install-word...-04-with-lamp/

https://www.linode.com/docs/websites...n-ubuntu-16-04

And there were others.

This started with my trying to follow an educational video about how to use wordpress where the teacher explained how to install MAMP in Windows, so I decided I'd attempt to follow along with his video by using a LAMP install and putting Wordpress on my own system so I could follow along, rather than on a host service, but NOT so I could host online.
 
Old 07-19-2017, 01:41 PM   #7
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by urbanwks View Post
Looks like this is for 'installing' Wordpress alone, not the LAMP stack.

OP - are Apache, MySQL and PHP installed on your machine at this point? If so, then it's likely just a configuration problem.

What exactly happens when trying to navigate to your local server? Are you using 'localhost', '127.0.0.1', the local IP, or something else? What error(s) do you get?

It also might serve you better to post your httpd.conf file. Not sure where it's located in Mint, I would hope somewhere under /etc/.
Now what happens when I try and load localhost even without the myphp is I get an error page

" This site canít be reached

localhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED "

that is what the page says. it's messed up enough that even trying to access localhost and not even localhost/myphpadmin gives that page.

Yes, as per those pages I posted above, I attempted to install Apache2 (which WAS working), mySQL (which after trying to start/setup was giving various errors that I no longer have to show you), and myPHP which would give up errors telling me to either abort, retry, or ignore.

PHP was version 7.
 
Old 07-19-2017, 01:51 PM   #8
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by urbanwks View Post
Looks like this is for 'installing' Wordpress alone, not the LAMP stack.

OP - are Apache, MySQL and PHP installed on your machine at this point? If so, then it's likely just a configuration problem.

What exactly happens when trying to navigate to your local server? Are you using 'localhost', '127.0.0.1', the local IP, or something else? What error(s) do you get?

It also might serve you better to post your httpd.conf file. Not sure where it's located in Mint, I would hope somewhere under /etc/.
I tried running in term this:

sudo find / httpd.conf

I don't know if I did that correctly, but I got no such file or directory
 
Old 07-19-2017, 08:09 PM   #9
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
It's pretty tough to mess up apache so it won't connect to localhost. There is some fundamental flaw at work. Also, try
Code:
$ locate httpd.conf
But the find command should work also, albeit slower.

You've done so much without checking if anything works, it's nearly impossible now to determine where the problem is. So, I suggest you first try to get apache working. You can start by checking if it's started
Code:
$ service apache2 status

Last edited by AwesomeMachine; 07-19-2017 at 08:13 PM.
 
Old 07-19-2017, 10:02 PM   #10
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
locate httpd.conf
/etc/phpmyadmin/lighttpd.conf
 
Old 07-19-2017, 10:03 PM   #11
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Code:
 service apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Wed 2017-07-19 01:08:32 EDT; 21h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1992 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Jul 19 01:08:32 Beast-Wutsinterweb apache2[1992]: Output of config test was:
Jul 19 01:08:32 Beast-Wutsinterweb apache2[1992]: AH00112: Warning: DocumentRoot [/var/www/html/example.com/public_html] does not exist
Jul 19 01:08:32 Beast-Wutsinterweb apache2[1992]: (2)No such file or directory: AH02291: Cannot access directory '/var/www/html/example.com/logs/' fo
Jul 19 01:08:32 Beast-Wutsinterweb apache2[1992]: AH00014: Configuration check failed
Jul 19 01:08:32 Beast-Wutsinterweb apache2[1992]: Action 'configtest' failed.
Jul 19 01:08:32 Beast-Wutsinterweb apache2[1992]: The Apache error log may have more information.
Jul 19 01:08:32 Beast-Wutsinterweb systemd[1]: apache2.service: Control process exited, code=exited status=1
Jul 19 01:08:32 Beast-Wutsinterweb systemd[1]: Failed to start LSB: Apache2 web server.
Jul 19 01:08:32 Beast-Wutsinterweb systemd[1]: apache2.service: Unit entered failed state.
Jul 19 01:08:32 Beast-Wutsinterweb systemd[1]: apache2.service: Failed with result 'exit-code'.
 
Old 07-19-2017, 10:13 PM   #12
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
And thank you for replying and offering help!

I wondered, I thought I saw that file missing but my search didn't work and I figured it was my fault for not knowing the command correctly.

Any suggestion how to fix this, get that file and all?
 
Old 07-19-2017, 10:36 PM   #13
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,812

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
try:

whereis httpd.conf

or just browse to /etc then do ls httpd.conf

Didn't know that you have answered to the post already.

Try manually creating the folders as stated on your error: /var/www/html/example.com/public_html

Try setting the permissions to full rights on this path: Cannot access directory '/var/www/html/example.com/logs/'

Of course, when everything is working fine set the appropriate rights.

Last edited by JJJCR; 07-19-2017 at 10:41 PM. Reason: edit
 
Old 07-19-2017, 10:51 PM   #14
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20 MATE, MX-19, antiX
Posts: 3,093
Blog Entries: 17

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
signmeuptoo,

I did this blog a few months ago:

http://www.linuxquestions.org/questi...-server-37355/

I hope you find it useful.
 
Old 07-19-2017, 11:23 PM   #15
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by JJJCR View Post
try:

whereis httpd.conf

or just browse to /etc then do ls httpd.conf

Didn't know that you have answered to the post already.

Try manually creating the folders as stated on your error: /var/www/html/example.com/public_html

Try setting the permissions to full rights on this path: Cannot access directory '/var/www/html/example.com/logs/'

Of course, when everything is working fine set the appropriate rights.

wutsinterweb@Beast-Wutsinterweb / $ whereis httpd.conf
httpd:
wutsinterweb@Beast-Wutsinterweb / $ cd etc
wutsinterweb@Beast-Wutsinterweb /etc $ ls httpd.conf
ls: cannot access 'httpd.conf': No such file or directory
wutsinterweb@Beast-Wutsinterweb /etc $
 
  


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:37 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