#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Vancouver, B.C. Canada
    Posts
    1
    Rep Power
    0

    I am a newbie to Linux, and therefore having a difficult time of installations that are probably quite mundane to "high-timers." I hope this is the correct newsgroup for a posting like this, but if not, please suggest other newsgroups.

    I have installed PHP4 on a LInux/Mandrake machine, running Apache 1.3.12. All installations are compiled and installed in the default locations.
    In the browser, I see a text printout of the .php document I'm requesting, rather than the executed form.
    File types of:

    AddType application/x-httpd-php .php3 .php4
    AddType application/x-httpd-php-source .phps

    have been added to the Apache config file.

    I have a list of what PHP was compiled with, and --disable-short-tags was not one of them.

    Execute permissions (755) have been added to the files I'm trying to see.
    The INSTALL file called for mod_so which would be visible if httpd -l was run. It was. The five steps required in the "Quick Install" went through without a problem. Actually, I'm just trying to execute that tiny .php file that they give you... <?phpinfo()?> .

    I've done the copying thing:
    cp php.ini-dist /usr/local/lib/php.ini

    In the INSTALL file, it calls for LoadModule php4_module libexec/libphp4.so to have an entry in Apache's config file. I don't see one. I also did a search for the libphp4.so file, and there's none to be found. A search for libphp4 shows a number of files, but none with .so extension.
    This PHP installation was performed from a php-4.01pl2.tar.gz download - is this the right module?

    As a note, CGI forms and MySQL queries work fine on this machine.

    Kev
    workmonster2 at home dot com
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    cincinnati, oh USA
    Posts
    1
    Rep Power
    0
    <snip>
    AddType application/x-httpd-php .php3 .php4
    AddType application/x-httpd-php-source .phps

    have been added to the Apache config file.

    This PHP installation was performed from a php-4.01pl2.tar.gz download - is this the right module?
    </snip>

    you need to add
    AddModule mod_php4.c to your apache config (somewhere near the rest of the add module statements) and you should be alright assuming you compiled php into apache (there is an article on how to do this on www.devshed.com in the php section)

    Good Luck




    ------------------
    life liberty and the pursuit of ipv6

Similar Threads

  1. Apache 2 and PHP 4
    By stanley1610 in forum Apache Development
    Replies: 2
    Last Post: February 12th, 2004, 08:20 PM
  2. php for apache
    By wannabe in forum Beginner Programming
    Replies: 3
    Last Post: February 6th, 2004, 02:28 PM
  3. how to configure Perl in Apache Server (Linux)
    By sendhilb in forum Perl Programming
    Replies: 5
    Last Post: February 2nd, 2004, 09:49 AM
  4. PHP -> system commands
    By Tantalus in forum PHP Development
    Replies: 1
    Last Post: January 28th, 2004, 10:51 AM
  5. apache on linux, authenticate across 2 boxes
    By LANLord in forum Apache Development
    Replies: 0
    Last Post: January 22nd, 2004, 10:37 AM

IMN logo majestic logo threadwatch logo seochat tools logo