How to configure php5 with Apache2.4

Closed
richiakanksha Posts 1 Registration date Friday June 23, 2017 Status Member Last seen June 23, 2017 - Updated on Jun 23, 2017 at 04:24 PM
 Blocked Profile - Jul 6, 2017 at 06:23 PM
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

1 response

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/.

Regards,
Christian
0