Best Answer: How Configure Apache to Run Php in Linux?

Best Answer: How Configure Apache to Run Php in Linux?
Contents

How do I configure Apache to run PHP?

Installing PHP on Apache 2

  1. Install Apache. Follow these instructions to Install Apache2 from source.
  2. Download the latest PHP sources. …
  3. Extract the source code. …
  4. Set compiler options (optional) …
  5. Configure php with autoconf. …
  6. Compile PHP. …
  7. Install PHP. …
  8. Tell apache to load the module Edit httpd.conf /usr/local/apache2/conf/httpd.conf with your text editor.

How install PHP configure in Linux?

Install PHP on Linux

  1. Installation.
  2. aptitude install php5 libapache2-mod-php5 and to restart apache web server (we used version 2) /etc/init.d/apache2.
  3. Install PHP on CentOS Linux.
  4. Prerequisite and Installation.
  5. Restart apache:
  6. Previous: Installing php and php extensions on windows. Next: Install PHP on IIS in Windows 7.

26 февр. 2020 г.

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.