How to configure php5 with Apache2.4

Ask a question richiakanksha 2Posts Friday June 23, 2017Registration date June 23, 2017 Last seen - Last answered on Jul 6, 2017 at 06:23 PM by ChristianC123
to configure php with Apache when i write these lines at the bottom of httpd.conf of Apache and try to run it by cmd ,it gives me error.
lines i added to conf file are

LoadModule php5_module “c:/php/php5apache2_4.dll”
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir “C:/php”

Error on command prompt i get is:
httpd: Syntax error on line 531 0f C:/Apache24/conf/httpd.conf:Invalid LoadModule path \x93c:/php/php5apache2_4.dll\x94
plus moins
This is actually install LAMP server installtion

1. sudo apt-get install apache2
2. sudo apt-get install mysql-server
3. sudo apt-get install php5 libapache2-mod-php5
4 sudo /etc/init.d/apache2 restart (server restart)

To check apache Open a web browser and navigate to http://localhost/.
You can check your PHP by executing any PHP file from within /var/www/.

Leave a comment

Member requests are more likely to be responded to.

Members can monitor the statuses of their requests from their account pages.

A CCM membership gives you access to additional options.

Not a member yet?

Sign up now. It takes less than a minute and is completely free!