You are not logged in.

#1 2015-12-16 13:08:15

Hossein Heydari
Member
From: Iran
Registered: 2015-12-16
Posts: 33

Lamp with PHP7

Hi

I wanted to install lamp with php7 and I have small problem in configing Apache, the question is what should I put at the bottom of config file I put :

LoadModule php7_module       modules/libphp7.so
AddHandler php7-script php
Include conf/extra/php7_module.conf

but it had problem and Apache did not start , what should I put instead of this code to  work ??

Offline

#2 2015-12-16 14:30:38

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Lamp with PHP7

Have you created a

conf/extra/php7_module.conf

as indicated in the aur comments?

Offline

#3 2015-12-16 14:52:54

Hossein Heydari
Member
From: Iran
Registered: 2015-12-16
Posts: 33

Re: Lamp with PHP7

satanselbow wrote:

Have you created a

conf/extra/php7_module.conf

as indicated in the aur comments?

How should I creat it ?

Offline

#4 2015-12-16 16:43:11

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Lamp with PHP7

At a guess...

<IfModule dir_module>
	<IfModule php7_module>
		DirectoryIndex index.php index.html
		<FilesMatch "\.php$">
			SetHandler application/x-httpd-php
		</FilesMatch>
		<FilesMatch "\.phps$">
			SetHandler application/x-httpd-php-source
		</FilesMatch>
	</IfModule>
</IfModule>

... should do it wink

Last edited by satanselbow (2015-12-16 16:43:25)

Offline

#5 2015-12-16 17:49:14

Hossein Heydari
Member
From: Iran
Registered: 2015-12-16
Posts: 33

Re: Lamp with PHP7

Thanks so much.
Every thing is working now.

Offline

Board footer

Powered by FluxBB