Installing PHP [Linux]

  • This will show you how to install PHP on Linux.

    1 Installation on Debian / Ubuntu


    The installation on Debian / Ubuntu is easy. By using the following command, you can install all required packages:

    Bash
    apt-get install php5-cli php5 php5-mysql php5-sqlite php5-curl


    Please aware, that you must perform this command as user "root" by using the shell on your server. If any package could not be found, there is possibly the integration of another installation source required. Please read the Debian Documentation to find out how to add another installation source.


    2 Installation on openSuSE


    The installation on openSuSE is as easy as the one on Debian. By using the following command, you can install all required packages (PHP with MySQL extension, SQLite and the TCP-Console)

    Bash
    yast -i php5-cli php5 php5-mysql php5-sqlite php5-curl


    Please aware, that you must perform this command as user "root" by using the shell on your server. If any package could not be found, there is possibly the integration of another installation source required. Please read the openSuSE Documentation to find out how to add another installation source.