![package php5 has no installation candidate raspberry pi package php5 has no installation candidate raspberry pi](https://leanpub.com/site_images/jerpi/rpiAp-01a.jpg)
- #Package php5 has no installation candidate raspberry pi install#
- #Package php5 has no installation candidate raspberry pi password#
- #Package php5 has no installation candidate raspberry pi series#
If you didn’t assign the root user a password, then just hit enter when prompted for it, and “n” when prompted to set one.
#Package php5 has no installation candidate raspberry pi password#
Type the following to run the script that will lock down the MySQL installation, providing the password you chose above when prompted. Fortunately, a script exists that will take care of it for you.
![package php5 has no installation candidate raspberry pi package php5 has no installation candidate raspberry pi](https://s3.manualzz.com/store/data/036455085_1-dec261796835347321cb621dbbd025b4.png)
Now that MySQL is installed, there is some security configuration that needs to be done. Type “exit” to get out of the MySQL command line and back to the regular Linux command line. Note: If you do somehow forget the semicolon (even though I specifically mentioned it), you can always type a single semicolon on a line by itself and press enter to complete the command. To get a list of databases on the new MySQL server, type “show databases ” (don’t forget the semicolon). This says to start the MySQL command-line interface, as the Linux user “root” and log in as the MySQL user “root”, prompting for the root password. When the installation has completed, check to see that MySQL is working by typing the following: sudo mysql –uroot -p Whatever password you/u assign, make sure you write it down somewhere, or put it in a password safe program. This is a MySQL database account that will own the server. This is not the same “root” as Linux itself.
#Package php5 has no installation candidate raspberry pi install#
You’ll be prompted multiple times during the install to provide a password for the root user. Type the following to install MySQL: sudo apt-get install mysql-server-5.5 Next up is the MySQL database engine, which applications will use to store their information. You should see a generic “It Works!” message. You can test this by opening a browser from another computer on your network, and navigating to the address of the Raspberry Pi. If everything went well, you should now have a working web server. To install the next layer of the stack, the Apache web server, version 2, type the following command, answering “Y” when prompted to confirm. If you can do this, you’ve handled the “L” part. Log in to the Raspberry Pi as the “pi” user, and get to a command prompt. This was taken care of in previous posts. Through the magic of the Advanced Packaging Tool (APT), you could just install WordPress, and the dependencies would come along for the ride, but where’s the fun in that? I’d rather make sure I have a solid LAMP stack before installing any applications on top of it. If you want to run WordPress, though, you’re going to need the LAMP stack. If you’re not planning to run any web applications from your server, you can obviously skip this post. PHP is a web programming technology used to write web applications.MySQL is a database that applications can use to store their stuff.Apache is a web server that runs on Linux.Linux is the OS, of course, the bottom layer of the stack.LAMP stands for “Linux, Apache, MySQL, and PHP”, and it’s the technology stack a lot of web projects in the Linux world are built on. Updates: I haven’t had any reports of trouble with this post since the Jessie release of Raspbian came out, so I’m assuming it all still works until I hear otherwise. If you have a Pluralsight subscription, please consider watching it.
#Package php5 has no installation candidate raspberry pi series#
Self-promotion: I’ve recorded this series as a screencast for Pluralsight: