Per chi non lo sapesse la sigla Lamp è l’acronimo di: Linux Apache Mysql Php. Questa guida servirà perciò a dare la possibilità ad ognuno di voi di creare il proprio Webserver casalingo (è molto più difficile a dire che a fare).
Il logo Lamp
Per chi lavora o per chi semplicemente vuol provare ad installare un Server Web in modo semplice e veloce, ecco di seguito la procedura completa per installare in poche ore un Server Web completo basato su Ubuntu Client 7.10.
Riusciremo quindi a trasformare un vecchio pc (io ho testato un Pentium II con 128mb di ram) in un webserver dove poter hostare il nostro sito personale o magari come semplice ambiente di test per script php/perl/python. Installeremo quindi Apache 2, Mysql5 e Php 5.
Dopo di che creiamo l’account di root per il database con il comando:
$ mysqladmin -u root password
Digitiamo la Password e diamo Invio. Per controllare che tutto sia andato a buon fine digitiamo:
$ mysql -u root -p “miapwd”
Sostituendo con “miapwd” la password scelta precedentemente. Se tutto è andato a buon fine ora ci trovaremo nella console di mysql con la quale poi potremo interagire con i vari database…digitiamo “exit” e procediamo con la successiva installazione: Php5
Bene, a questo punto abbiamo il nostro server lamp Funzionante e on-line, infatti se digitiamo sul nostro browser “localhost” oppure il nostro Ip di rete vedrete la pagina di Apache con scritto “It works! . La cartella nella quale dovrete inserire il vostro sito è di default /var/www ma potete modificarla editando il file di apache.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.