How To Install Php Mcrypt On Ubuntu Mate 16How to install PHP 7? as the default PHP in Ubuntu 16.4 so, to install PHP7 on. php5-gd php5-imap php5-intl php5-json php5-mcrypt php5-mysql php5. The php mcrypt extension on ubuntu 14.04 shows that. The mcrypt extension is missing. The php5-mcrypt Ubuntu package install the config file mcrypt.ini. ![]() How To Install Php Mcrypt On Ubuntu Mate IsoThis tutorial shows how you can install an Apache 2.4 web server on an Ubuntu. Ubuntu 15.10 server with PHP. php-pear php5-imagick php5-imap php5-mcrypt. Apache, My. SQL und PHP unter Ubuntu installieren. LAMP unter Untu installieren.
Für diese Anleitung setze ich einen Ubuntu Server in der Grundinstallation voraus. Das sollte jeder auch ohne Anleitung / Tutorial hinbekommen. LAMP beschreibt eine Sammlung von Dateien unter Linux: Linux, Apache, My. SQL, PHP und dient somit als Grundlage der meisten Webserver unter Linux. Los gehts. Installation Apache. Apache lässt sich relativ einfach über apt installieren. Terminal auf undsudo apt- get update. Danach ist der Server unterhttp: //die_IP_des_serverserreichbar und euch sollte diese Seite angezeigt werden. Wenn ihr die Seite angezeigt bekommt, ist der Webserver richtig installiert. My. SQL installieren. Da wir nun unseren Webserver installiert haben, kommen wir zur Datenbank. Wir bedienen uns hier wieder apt und installieren My. SQL mit folgendem Befehlsudo apt- get install mysql- server php. Das apt- get update können wir uns sparen, da wir ja gerade erst aktualisiert hatten. Während der Installation der Datenbank werdet ihr nach einem Administrator Passwort gefragt, welches ihr vergeben müsst. Merkt euch dieses gut, denn es ist in etwa genauso wichtig wie euer root Passwort. Solltet ihr einen Fehler bekommen, dass das Passwort nicht vergeben werden kann, so könnt ihr dies nach der Installation mit folgendem Befehl nachholen./usr/bin/mysqladmin - u root password 'neues passwort'Wenn die Installation beendet ist führen wir noch einsudo mysql_install_db. Dadurch werden die Beispieldaten, die mit My. SQL installiert werden, wieder gelöscht und eure Installation wird dadurch abgesichert. Zudem wird die Datenbankstruktur von My. SQL angelegt. Solltet ihr immer noch kein root Passwort vergeben haben, werdet ihr in diesem Schritt dazu genötigt. Um zu testen ob alles korrekt installiert wurde könnt ihr euch mitmysql - u root - pund eurem Passwort anmelden. Sollte das alles ohne Probleme durchgelaufen sein, kommen wir zum nächsten Schritt. PHP installieren. Fast geschafft. Jetzt fehlt nur noch PHP. Das wars. Es sollten eigentlich keine Probleme bei der Installation aufgetreten sein. Jetzt müssen wir nur noch den Apache Webserver neu startensudo service apache. Für weitere PHP Module können wir eine Suche mittels apt- cache search startensudo apt- cache search php. Was uns eine Liste in diesem Format ausgibtphp. HTML- embedded scripting language (CGI binary). Common files for packages built from the php. CURL module for php. Debug symbols for PHP5. Files for PHP5 module development. GD module for php. Diese Module lassen sich dann bei Bedarf noch über apt nachinstallieren. Um unsere PHP Installation zu testen legen wir jetzt eine info. Datei ansudo nano /var/www/html/info. Mit folgendem Inhalt: < ? Diese können wir nun über unseren Browser aufrufenhttp: //die_IP_des_servers/info. Seite angezeigt bekommen. Wird diese angezeigt haben wir alles richtig gemacht. Die Datei kann man nach der Ausgabe wieder entfernen. Es soll ja nicht jeder diese Infos über unseren Server bekommen. Das wars. LAMP installiert und konfiguriert. Einsatzfertig. Bei Fragen oder Problemen hinterlasst einen Kommentar. Installing LAMP On Ubuntu For Newbies. Installing LAMP On Ubuntu For Newbies. In this guide, I will show you how to install a LAMP system. LAMP stands for Linux, Apache, My. SQL, PHP. The guide is intended to help those who have very little knowledge of using Linux.** UPDATE **The tutorial below is for Ubuntu 1. If you are seeking for a LAMP tutorial for the current Ubuntu version, then please use this guide: https: //www. Install Apache. To start off we will install Apache. Open up the Terminal (Applications > Accessories > Terminal). Copy/Paste the following line of code into Terminal and then press enter: sudo apt- get install apache. The Terminal will then ask you for you're password, type it and then press enter. Testing Apache. To make sure everything installed correctly we will now test Apache to ensure it is working properly. Open up any web browser and then enter the following into the web address: http: //localhost/You should see a folder entitled apache. Open it and you will see a message saying "It works!" , congrats to you! Install PHPIn this part we will install PHP 5. Step 1. Again open up the Terminal (Applications > Accessories > Terminal). Step 2. Copy/Paste the following line into Terminal and press enter: sudo apt- get install php. Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this: sudo /etc/init. Test PHPTo ensure there are no issues with PHP let's give it a quick test run. Step 1. In the terminal copy/paste the following line: sudo gedit /var/www/testphp. This will open up a file called phptest. Step 2. Copy/Paste this line into the phptest file: < ? Step 3. Save and close the file. Step 4. Now open you're web browser and type the following into the web address: http: //localhost/testphp. The page should look like this: Congrats you have now installed both Apache and PHP! Install My. SQLTo finish this guide up we will install My. SQL. (Note - Out of Apache and PHP, My. SQL is the most difficult to set up. I will provide some great resources for anyone having trouble at the end of this guide.)Step 1. Once again open up the amazing Terminal and then copy/paste this line: sudo apt- get install mysql- server. Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the "Bind Address". Begin by opening up Terminal to edit the my. Change the linebind- address = 1. And change the 1. IP address. Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal: mysql - u root. Following that copy/paste this line: mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword'); (Make sure to change yourpassword to a password of your choice.)Step 4. We are now going to install a program called php. My. Admin which is an easy tool to edit your databases. Copy/paste the following line into Terminal: sudo apt- get install libapache. After that is installed our next task is to get PHP to work with My. SQL. To do this we will need to open a file entitled php. To open it type the following: gksudo gedit /etc/php. Now we are going to have to uncomment the following line by taking out the semicolon (; ). Change this line: ;extension=mysql. To look like this: extension=mysql. Now just restart Apache and you are all set! The End. Quick note to anyone who encountered problems with setting up the My. SQL password, please refer to this page: Mysql. Password. Reset. I applaud everyone who has taken the time to read this guide. This guide is also my first ever so I would love to hear back from the public on what you guys think! Just don't be too harsh. If you have questions about installing any part of LAMP just drop them in the comment box and I will do my best to help you out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |