/etc/apt/sources.list:
deb https://ftp.us.debian.org/debian/ stable main contrib non-free
deb-src https://ftp.us.debian.org/debian/ stable main contrib non-free
deb https://security.debian.org/ stable/updates main contrib non-free
deb-src https://security.debian.org/ stable/updates main contrib non-free
Τρέξτε apt-get update.
apt-get install apache2
apt-get install php5 php5-cli libapache2-mod-php5 php5-mysql
apt-get install php5-curl php5-mcrypt php5-mhash php5-gd curl
apt-get install php-pear
apt-get install mysql-server-5.1
mysqladmin -u root password 'your_strong_password'
Σημαντικό: Το άρθρο αναφέρει παλιές εκδόσεις (PHP 5.1, MySQL 5.1). Στις σύγχρονες διανομές (Ubuntu 20.04+, Debian 11+) χρησιμοποιήστε
php,mysql-server(ή MariaDB) καιapt updateαντί γιαapt-get update. Ρυθμίστε firewall (ufw) και ασφαλίστε την MySQL εγκατάσταση μεmysql_secure_installation.
Πνευματικά δικαιώματα © Γνώση Υπολογιστών Όλα τα δικαιώματα διατηρούνται.