Installed php4 from IBM's LInux Toolkit, but php does not appear to function

Posted on 2006-06-07
Last Modified: 2013-11-17
I installed php4 from IBM's Linux Toolkit onto a system running Aix 5.1 (08).  Php installed fine, but I've not been able to get my test program, infotest.php to execute.  Infotest.php contains <?php phpinfo(); ?> only.  I've modified the httpd.conf file to use:

LoadModule php4_module        libexec/


AddModule mod_php4.c

php embedded in an html file does not execute as well....

I'm running Aix 5.1. and  HTTPServer 1.3.12.

Thank you.

Question by:Eric_Peers
    LVL 20

    Expert Comment

    Did you remember to inform apache of the change by, say, a restart, or similar?
    Have you verified the path is correct (that is where you say it is?

    -- Glenn

    Author Comment

    Yes.  Have modified the httpd.conf file with the path of (libexec/  Also included the AddModule in the config file.  Have stopped and started apache.

    Now, the php.ini file may be in the wrong place.  Copied the file into /usr/HTTPServer/conf
    I'm not really sure where to place the ini file.....
    LVL 20

    Expert Comment

    I'm at home, so cannot check any details, but ... /etc is a usual place for it;).

    Did you install the php command interpreter as well? Does that one work?

    -- Glenn
    LVL 61

    Expert Comment

    Do you have eany PHP related messages in apache's error log ???

    Anyway missing part of setup:
        <IfModule mod_php4.c>
            AddType application/x-httpd-php .php
            AddType application/x-httpd-php-source .phps
    LVL 61

    Accepted Solution

    HTTPServer 1.3.12 has serious security hole for couple of years with automated exploit tools.

    Basically you have to use PHP and apache from same breed - i.e both from Linux Toolkit, or do a custom PHP build using parameters httpd -V from IBM HTTP SERVER gives out.

    Author Comment

    Thanks everyone for the comments.  Using the same breed of php and apache seemed the best answer.  Installing php from the Linux Toolbox was a snap, however apache complained about a missing library.  At that point I threw up my hands and did my installs on an under used Linux server.  Was able to get both php and apache running with much less hassle.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    prtdiag report hdd failure 10 105
    CPU monthly average? 12 79
    Help stop mail server from sending spam. 27 112
    Streamline a For loop in Ksh 3 28
    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now