Jump to content

Recommended Posts

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

You can follow some steps and download PHP:

 

- Download Source and Clock Install PHP.

- Go to the directory whith the downloaded file and enter.

- Configure httpd.conf for PHP.

- Verify PHP Installation

- Trouble shooting during installation

- Create Php.ini File

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

  • 3 months later...

how to install PHP which is run as an Apache module, or run as CGI  on debain .any tips would be appreciated

Assuming you are on apache2

sudo apt-get install php5 libapache2-mod-php5 php5-mysql
sudo a2enmod php5

You can drop the php5-mysql if you're not using mysql.

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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.