1

Hello I'm new in Linux and sorry if this subject already exist,

I know that with php and Linux you can start a local server with the commande

php -S 127.0.0.1:8080 

I just wanted to know if we can work with a local database in this way with Linux

PS: I don't want to install Xampp

1
  • Yes you can. You just need to install mysql database. Commented Dec 7, 2015 at 8:24

1 Answer 1

2

Sure, you can install an local MySQL Server. If you are running Ubuntu/Debian here we go:

Install MySQL and PHP Modules

sudo apt-get install mysql-server php5-mysql

Finish Setup with:

sudo /usr/bin/mysql_secure_installation

Thats it!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.