![]() Remember this pattern, you may need it in the future for other things like a2disconf or a2dissite (will explain it in another post) Try to figure out the other one using the pattern above. You can install multiple php versions on your system and you can disable or enable them by running a2dismod X or a2ensite X Where X and XX are your modules names you get after running php -mįew basic ones are: sudo apt install libapache2-mod-php7.4 php7.4-common php7.4-mbstring php7.4-xmlrpc php7.4-gd php7.4-xml php7.4-mysql php7.4-cli php7.4-zip php7.4-curl You can install them by running sudo apt install php7.4-X php7.4-XX Now you will need modules depending on your requirements Note: If you are on a version earlier than Debian 7, include php5-suhosin as well.Īfter you answer yes to the prompt twice, PHP will install itself.The command above will check your installation. To install PHP, open terminal and type in this command. PHP is an open source web scripting language that is widely use to build dynamic webpages. ![]() Once you're done with that you can finish up by installing PHP on your virtual server. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. This is also intended only for testing, and should be removed before moving into a production environment. This ensures that someone cannot guess at the root password from the network.īy default, MySQL comes with a database named 'test' that anyone can access. Normally, root should only be allowed to connect from 'localhost'. You should remove them before moving into a production environment. This is intended only for testing, and to make the installation go a bit smoother. At the end, MySQL will reload and implement the new changes.īy default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. It’s easiest just to say Yes to all the options. ![]() Go ahead and choose N and move on to the next steps. Then the prompt will ask you if you want to change the root password. OK, successfully used password, moving on. The prompt will ask you for your current root password.Įnter current password for root (enter for none): If you miss the chance to set the password while the program is installing, it is very easy to set the password later from within the MySQL shell.įinish up by running the MySQL set up script: To install MySQL, open terminal and type in these commands:ĭuring the installation, MySQL will ask you to set a root password. MySQL is a widely-deployed database management system used for organizing and retrieving data. You can run the following command to reveal your VPS's IP address. The page should display the words “It works!" like this. To check if Apache is installed on your VPS, direct your browser to your server’s IP address (eg. To install apache, open terminal and type in these commands: With that completed, go ahead and start installing the LAMP server.Īpache is a free open source software which runs over 50% of the world’s web servers. Here is how to install the rest.īefore running through the steps of this tutorial, make sure that all of your repositories are up to date: Since the virtual private server is already running Debian, the linux part is taken care of. The acronym stands for Linux, Apache, MySQL, and PHP. LAMP stack is a group of open source software used to get web servers up and running. For windows: everything will be in commend modeįor MAC: everything will be in Terminal mode
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |