Jump to content

how to install PHP ?


runeveryday

Recommended Posts

  • 5 months later...
  • 8 months later...
  • 1 month later...
  • 3 months later...

The entire "LAMP" stack:

sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 php5-xsl php5-gd php-pear libapache2-mod-auth-mysql php5-mysql

After that:

sudo sed -i ‘s/;   extension=mysql.so/extension=mysql\.so/g’ /etc/php5/apache2/php.ini

(Make sure the path is correct and that it is 3 spaces after s/;

 

sudo /etc/init.d/apache2 restart

Link to comment
https://forums.phpfreaks.com/topic/210534-how-to-install-php/#findComment-1332687
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.