How to configure php5 with Apache2.4 [Closed]

Posts
2
Registration date
Friday June 23, 2017
Last seen
June 23, 2017
-
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
See more 

1 reply

Posts
4
Registration date
Wednesday July 5, 2017
Last seen
July 6, 2017
0
Thank you
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