Help installing LAMP

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Help installing LAMP

Post by eiger3970 »

Hi, I have tried installing LAMP, however everything has errors on the 2nd part, installting PHP.
I tried: http://community.linuxmint.com/tutorial/view/486
and
http://www.unixmen.com/how-to-install-l ... linuxmint/

but both failed when I type in the same code.

Please help as I'm new to Linux/Mint Maya but want to transfer everything over from Windows 7.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
oobetimer

Re: Help installing LAMP

Post by oobetimer »

DataMan

Re: Help installing LAMP

Post by DataMan »

I'm pretty certain the GD library is installing by default with php5. Should be no need for a separate install.

-DataMan
Staffy

Re: Help installing LAMP

Post by Staffy »

After some searching around this is how I have done it.

Ensure you don't have a package manager or update running.

Code: Select all

sudo apt-get install lamp-server^
That installs & configures apache2, mysql, php etc..

To test it go to the following in your browser http://localhost/ you should see a welcome page there.

Then you will probably need phpmyadmin so at your terminal:

Code: Select all

sudo apt-get install phpmyadmin
If using phpmyadmin you will most likely have to set apache up to be able to access it at this address.

Code: Select all

http://localhost/phpmyadmin
You will need to change this file and you will need to be SU to do it. /etc/apache2/apache2.conf and add this line at the end

Code: Select all

Include /etc/phpmyadmin/apache.conf
This should get you up and running with a standard web server setup, to use for local web development & testing, if you are putting it live on the web then you need to look at securing the server and associated packages.
Last edited by Staffy on Fri Jul 20, 2012 7:23 am, edited 2 times in total.
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Help installing LAMP

Post by eiger3970 »

Thanks staffy,
I tried sudo apt-get install lamp-server^ and received error: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I ran apt-get update and error:
Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
Unable to lock directory /var/lib/apt/lists/
Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I typed y for yes (I am the root...just taking a guess as I'm a Linux noob).
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Help installing LAMP

Post by eiger3970 »

Hi oobetimer,
I followed viewtopic.php?f=90&t=105445&p=595415&hilit=apache#p595415 and this seemed to work, except for
sudo /etc/init.d/apache2 restart which gave the error:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
...waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName.

I find this quite odd, as the localhost is usually 127.0.0.1?

p.s. I couldn't follow the YouTube graphics in Finnish, but I loved the music ;-)

I went to Linux Mint 13 Maya/Menu/Applications/All but couldn't see an icon for LAMP?
I went to Linux Mint 13 Maya/Menu/Search and typed in lamp, but only results on Google, not the running program I need to setup now?

I know how to setup and configure as I've had it running on WAMP, but I'm phasing out Windows and migrating hopefully everything to Linux.

Any help?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Help installing LAMP

Post by eiger3970 »

ok, I'm going to:
1. sudo apt-get install lamp-server^ worked.
2. I went to
https://help.ubuntu.com/12.04/serverguide/httpd.html, which took me to
http://httpd.apache.org/docs/2.2/install.html
I tried to download: $ lynx http://httpd.apache.org/download.cgi
and my terminal turned into an Apache page.
In Apache page I went to the Download! From a Mirror but can't go further.
The instructions say select right arrow to follow links, but no reaction?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eanfrid

Re: Help installing LAMP

Post by eanfrid »

eiger3970 wrote:apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
...waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName.

Any help?
This is not an error. It is an info message which means that your machine does not have an internet name such as http://www.whatever.tld

There is neither a menu icon nor any GUI to manage a common lamp-server. You have to use the command line. If you installed phpmyadmin it is almost the only GUI you will have to work with.
Last edited by eanfrid on Fri Jul 20, 2012 7:19 am, edited 1 time in total.
Staffy

Re: Help installing LAMP

Post by Staffy »

@ eiger3970 did you have a package manager open or running at the same time? When you got the are you root error question.

If you have succeded with the lamp server install you don't need to go to https://help.ubuntu.com/12.04/serverguide/httpd.html you should have apache running already. the lampserver^ command installs and sets up apache2, php5, mysql
To test whether it is up and running
Type

Code: Select all

http://localhost/
in your browser.
Last edited by Staffy on Fri Jul 20, 2012 7:19 am, edited 1 time in total.
DataMan

Re: Help installing LAMP

Post by DataMan »

I went to Linux Mint 13 Maya/Menu/Applications/All but couldn't see an icon for LAMP?
You won't see a menu item for any of the direct LAMP modules... it's a running service. You should see a menu item for phpMyAdmin if you installed it.

-DataMan
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Help installing LAMP

Post by eiger3970 »

ok, this one's fixed.
Great chat support with Linux Mint 13 Maya!

Thanks for the help.
Just need to configure now which should be fun...was running on WAMP, so will see how LAMP goes with phpbb forum and website.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Help installing LAMP

Post by eiger3970 »

Just ran a new lamp install by Maya/Menu/Terminal: sudo apt-get install lamp-server^
and received errors:
Failed to fetch http://security.ubuntu.com/ubuntu/pool/ ... _amd64.deb 404 Not Found [IP:91.189.92.184 80]

http://localhost fails aswell.

Any ideas why the download doesn't work?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Help installing LAMP

Post by eiger3970 »

Tried installing lamp from Maya/Menu/Software Manager/search lamp/Install lamp.

Rebooted computer and went to Maya/Menu/Search: lamp and no results?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Help installing LAMP

Post by eiger3970 »

ok, not sure how to configure lamp's apache httpd.conf file to change port 80 to 8080.
Not sure how to setup mySQL for my phpBB forum.

The WAMP YouTube setups on GUI is soooooooo easy. Wish there's something for lamp.
Please help...if I manage to figure it out, I'll update. Hopefully sooner rather than later...I'm running out of time.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
Locked

Return to “Beginner Questions”