So basically I want to setup a local web server that only my machine can access for PHP, MySQL and PHPMyAdmin what's the best way to do that?
So basically I want to setup a local web server that only my machine can access for PHP, MySQL and PHPMyAdmin what's the best way to do that?
Hi
Install a lamp stack
Code:sudo apt-get install taskselInstall the lamp server from there.Code:sudo tasksel
Some questions. On a server or desktop install ?
Available over the internet eventually or always local on your lan ? This question has huge implications for hardening your server, as if you keep it behind a firewall, you need far less hardening
Is this just a development stack ?
EDIT:
I don't use phpmyadmin. I do everything using an ssh connection and the CLI so i will not be of much help with that.
Kind regards
Last edited by matt_symes; March 17th, 2013 at 11:57 AM. Reason: typo
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
This is on my primary desktop purly for developing my website with.
Hi
Just install the lamp stack then.
There are loads of good tutorials on the net for how to configure it but it should basically work out of the box.
Kind regards
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
I found this guide though http://davideriboli.net/void/?p=1133 which is from this year so it's up to date
Hi
It may require an update but i have sucessfully used tasksel to install lamp many times.
Code:sudo apt-get updateKind regardsCode:sudo tasksel install lamp-server
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
Well i tried that and:
liam@liam-ubuntu:~$ sudo tasksel
tasksel: aptitude failed (100)
When i told it to install LAMP :/
Skip tasksel. You can install the whole LAMP stack with one line, if you really need PHP and MySQL. Perl comes built-in on Linux and other systems.
Note the caret (^) is needed.Code:sudo apt-get update && sudo apt-get install lamp-server^
If you don't need a database and PHP, you can install Apache by itself, and then add the others later if you need them:
About getting it so it will only be readable from your own local machine, you can use the firewall and/or set permissions in /etc/apache2/sites-available/default to allow only localhost.Code:sudo apt-get update && sudo apt-get install apache2
you can install the LAMP stack without tasksel
(the carat at the end ^ is important) - that's the way I did it on my 12.04 box, then install phpmyadmin after if you need that as wellCode:sudo apt-get install lamp-server^
Code:sudo apt-get install phpmyadmin
Bookmarks