1

I'm having a bit of a trouble configuring my apache server on freebsd. I installed apache24, php5 and php5 extensions, moved my files over to ./data. I made some changes to httpd.conf:

LoadModule php5_module libexec/apache24/libphp5.so
<IfModule dir_module>
<IfModule php5_module>
DirectoryIndex index.php index.html
</IfModule>
<IfModule !php5_module>
<IfModule php4_module>
DirectoryIndex index.php index.html
</IfModule>
<IfModule !php4_module>
DirectoryIndex index.php index.html
</IfModule>
</IfModule>
</IfModule>

and to my php.conf:

<IfModule mime_module>
<IfModule php4_module>
AddType application/x-httpd-php .php
</IfModule>
<IfModule php5_module>
AddType application/x-httpd-php .php
</IfModule>
</IfModule>

The problem is, when I restart my apache24 service the following error appears: enter image description here

Also, without the "LoadModule php5_module libexec/apache24/libphp5.so" it doesn't read php files, it simply shows the source.

enter image description here

How can I fix this?

1 Answer 1

1

You should install mod_php5:

pkg install mod_php5
2
  • Thank you! Im new to this unix thing, sorry about the newb doubt! Commented Jul 13, 2015 at 15:32
  • No problem :) You're welcome :) Commented Jul 13, 2015 at 15:34

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.