TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

PHP

PHP 7 Configuration in Apache Server

Introduction

On this page, we will go through the steps involved in PHP Configuration with the Apache HTTP Web server.

httpd.conf

Open the Apache configuration file httpd.conf and the PHP configuration parameters to the file. We can find the file under the conf directory.

Apache Home dir\conf

Apache conf file

 

Steps to add the configuration

  • Stop the Apache server.
  • Restart the Apache server.
  • Open httpd.conf file.
  • Add the configuration and save the file.

Configuration

#PHP Configuration
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php .html
LoadModule php7_module "c:/php/php7apache2_4.dll"
PHPIniDir "c:/php"

 

Test PHP file

Drop a test PHP file under the htdocs directory.

<?php 
/*************************************************************************
* This is to test PHP 7 configuration with Apache2
*
* www.TestingDocs.com
*************************************************************************/
 echo "If you see this PHP Configuration with Apache is OK!- www.TestingDocs.com";
?>

 

Open the browser and visit the file URL.

 

PHP Testing Apache

 

—

PHP Tutorials

PHP Tutorials on this website:

https://www.testingdocs.com/php-tutorials/

More Information on PHP

https://www.php.net/

Related Posts

Compoer Command line command

PHP /

Install Slim Framework on Windows

php download website

PHP /

Download and Install PHP on Windows

Composer Install Windows

PHP /

Composer Download on Windows

phpMyAdmin Tool UI

PHP /

phpMyAdmin Database Tool

testing php linux

PHP /

Testing PHP with Apache Server on Linux

‹ phpMyAdmin Database Tool› Composer Download on Windows

Recent Posts

  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Print Triangle Pattern Flowchart
  • RAPTOR Editions
  • Flowgorithm Conditional Breakpoint Statement
  • Flowgorithm Read Numbers from File Example
  • Search Text File Flowchart Example
  • Flowgorithm Turtle Graphics Symbols
  • Draw Circle using Flowgorithm Turtle

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version