Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| info:serveur_ubuntu [2015/03/04 08:03] – radeff | info:serveur_ubuntu [2025/10/29 11:02] (Version actuelle) – radeff |
|---|
| ====== Installation serveur avec XAMP ====== | ====== Installation serveur Apache/PHP/MySQL ====== |
| | Pour installer un serveur web avec Apache, PHP et MySQL sur ubuntu |
| |
| Pour installer un serveur web avec Apache, PHP et MySQL sur ubuntu | <note warning>IMPORTANT: sécuriser avec [[ufw]] ou iptables</note> |
| |
| Version OVH --- //[[radeff@akademia.ch|radeff@akademia.ch]] 2012/02/27 10:29// | ====== dépôts ====== |
| | Installer le dépôt d'ondrej, qui contient un grand nombre de soft utiles |
| |
| apt-get install apache2 libapache2-mod-php5 php5 php5-mysql mysql-server mysql-common mysql-client sendmail | <code> |
| | add-apt-repository ppa:ondrej/php |
| | add-apt-repository ppa:ondrej/apache2 |
| | apt-get update |
| | apt-get upgrade |
| | </code> |
| |
| | ====== programmes ====== |
| | Et maintenant les programmes |
| |
| ajouts supplémentaires: [[mercurial]] | |
| |
| * installer ubuntu | |
| * ajouter les paquets | |
| <code> | <code> |
| sudo apt-get install apache2 apache2.2-bin apache2.2-common apache2-mpm-prefork apache2-utils cmap-adobe-japan1 libapache2-mod-perl2 libapache2-mod-php5 libapache2-mod-wsgi libapache2-reload-perl libapache-asp-perl libdbd-mysql-perl libmysqlclient16 libqt4-sql-mysql mercurial mercurial-common mercurial-server mysql-admin mysql-client mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-gui-tools-common mysql-query-browser mysql-server mysql-server-5.1 mysql-server-core-5.1 openssh-client openssh-server php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-mcrypt php5-mysql php5-pgsql php-gettext | sudo apt-get install apache2 mysql-server mysql-common php-common php-fpm php7.3-cli php7.3-common php7.3-fpm php7.3-intl php7.3-json php7.3-mysql php7.3-opcache php7.3-readline php7.3-xml php8.1-cli php8.1-common php8.1-fpm php8.1-intl php8.1-mysql php8.1-opcache php8.1-readline php8.1-xml php8.2-cli php8.2-common php8.2-fpm php8.2-gd php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-xml php8.2-zip |
| </code> | </code> |
| |
| * FIXME sécuriser avec [[ufw]] ou iptables | ====== teminal multiplexer ====== |
| * [[connection_ssh_sans_mot_de_passe|configurer SSH]] | |
| |
| | [[tmux|Tmux, (rempl. screen) teminal multiplexer]] |