Problem installing Apache 2 and PHP 5 in Linux

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
sats
Forum Newbie
Posts: 1
Joined: Tue Jan 07, 2014 8:06 am

Problem installing Apache 2 and PHP 5 in Linux

Post by sats »

I have cross compiled LAMP successfully for imx-6.Apache server is also starting independently.But when i am trying to load the module of php using:

LoadModule php5_module /usr/local/apache2/modules/libphp5.so

But it is giving error :

# ./apachectl start
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: File not found.

Note:I have checked that /usr/local/apache2/modules/libphp5.so exists with proper permission(0755).

After a lots of research a i was able to generate libphp5.so (by using --with-apxs), but i'm stuck here.Any help would be greatly appreciated.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Problem installing Apache 2 and PHP 5 in Linux

Post by Celauran »

Any reason you aren't just using the LAMP stack provided by your distro?
Post Reply