Solved

Enabling PHP for Apache server on my Laptop

Posted on 2004-09-07
4
208 Views
Last Modified: 2010-03-04
Hello I am a novice when it comes to computers in general.With a great amt of help from this forumn I have been able to intstall Apache
on my laptop .I have no problem with the http server and I have been using it for Perl CGI for some time.
I have the httpd in my /etc/httpd/

I am trying to install and enable PHP ..following this
 
I installed php4 in
/etc/httpd/php

Following the previous post here I serached for


I followed a post on this site ..which directed me to look for
***************************
LoadModule php4_module  libexec/libphp4.so
and add
AddType application/x-httpd-php .php
***************************************8

I looked for "LoadModule php4_module  libexec/libphp4.so" for that in httpd.conf but could not find it ...So
I added the lines
****************************************
LoadModule php4_module  libexec/libphp4.so
AddType application/x-httpd-php .php
**********************************
and ran the httpd server again
I get the following error
******************************************************************************************************
Cannot load /etc/httpd/libexec/libphp4.so into server: /etc/httpd/libexec/libphp4.so: cannot open shared object file: No such file or directory
*******************************************************************************************************



Thanks for your time....I appreciate it
0
Comment
Question by:micro_learner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 12003179
The problem is " LoadModule php4_module  libexec/libphp4.so" the bug in the php installation
script.

it should looks like:
 LoadModule php4_module        /usr/apache/libexec/libphp4.so

type in the following command in your system:
        find / -name "libphp4.so" -type f
to locate the full path of the file and then modify your httpd.conf file.

You also need to modify your httpd.conf file and to make sure you have:
(search" php" and edit)

AddModule mod_php4.c

<IfModule mod_dir.c>
#    DirectoryIndex index.html
    DirectoryIndex index.html index.php index.php3 index.php4 index.htm index.shtml index.cgi
</IfModule>

    #
    # And for PHP 4.x, use:
    #
    AddType application/x-httpd-php .php

when you edit the httpd.conf, just do a search for php to see what the installation script
has added for you, and fix the error if any.



0
 

Author Comment

by:micro_learner
ID: 12006697
Hello thanks for the reply but when I searched for the libphp4.so I did not find it in my system..please direct me on this
0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 12006961
Have you installed?

Pleasse have a look at the instructions in the following doc, and try
to download php (binary package) or download php source code
complie and install it:

http://linux.sgms-centre.com/howto/lamps.php

In case you need more help, please remember post the information
about your OS.

It is very late now (Australian time), good night.
0
 

Author Comment

by:micro_learner
ID: 12016300
Thanks the error was ..that some how the php was not installed properlly had to install it afresh...
Thanks agian
0

Featured Post

ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question