Results 1 to 3 of 3

Thread: [RESOLVED] Apache + PHP + Linux

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved [RESOLVED] Apache + PHP + Linux

    I have no idea what I am doing here. I hate this too much...

    But I have Apache 2 up and running. I have tried to compile PHP as a module. Doing this:

    Code:
    ./configure --with-mysql=/home/noteme/mydoc/apps/mysql \
        --with-xml \
        --enable-track-vars \
        --with-apxs2=/usr/local/apache/bin/apxs
    and then added this line to the httpd.conf file:

    Code:
    LoadModule php4_module        modules/libphp4.so

    But when I try to look at a php file using my browser and localhost. Apache doesn't parse it. It just prints the PHP files as it was a text file.

    Any ideas where I should start looking?

    I can't see anything wrong in the error log. This is the last entries:

    [Thu Jul 28 11:01:46 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
    [Thu Jul 28 11:02:00 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
    [Thu Jul 28 11:17:03 2005] [notice] caught SIGTERM, shutting down
    [Thu Jul 28 11:17:16 2005] [notice] mod_python: Creating 32 session mutexes based on 150 max processes and 0 max threads.
    [Thu Jul 28 11:17:16 2005] [notice] Apache/2.0.54 (Unix) mod_python/3.1.4 Python/2.3.5 PHP/4.4.0 configured -- resuming normal operations
    [Thu Jul 28 11:17:20 2005] [notice] mod_python: (Re)importing module 'test'
    [Thu Jul 28 11:17:20 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
    [Thu Jul 28 11:17:23 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
    [Thu Jul 28 11:17:25 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico

    Thanks
    - ØØ -

  2. #2

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Apache + PHP + Linux

    Ehhmmm...ok...since I am using Apache 2...do I maye have to do something more with Apache after I compiled PHP, like compile some PHP stuff into Apache?

    Because I found this on the web:

    Code:
         Apache configuration
        cd ../apache_1.3.28
        ./configure 
    
        PHP Compilation
        ./configure --with-apache=../apache_1.3.28 --enable-track-vars \
        --with-dom=/usr/local --enable-sockets --enable-wddx --with-xmlrpc \
        --enable-xslt --with-xslt-sablot=/usr/local/ \
        --with-zlib-dir=/usr/local/include --with-expat-dir=/usr/local \
        --with-iconv-dir=/usr/local/
        make
        make test
        make install 
    
        Apache Compilation
        cd ../apache_1.3.28
        ./configure --activate-module=src/modules/php4/libphp4.a **
        make
        make install

    But I can't find a file called: "libphp4.a" on my system. Only these files:

    ./usr/local/apache/modules/libphp4.so
    ./home/noteme/mydoc/apps/php-4.4.0/sapi/apache/libphp4.module.in
    ./home/noteme/mydoc/apps/php-4.4.0/.libs/libphp4.so
    ./home/noteme/mydoc/apps/php-4.4.0/.libs/libphp4.lai
    ./home/noteme/mydoc/apps/php-4.4.0/.libs/libphp4.la
    ./home/noteme/mydoc/apps/php-4.4.0/libs/libphp4.so
    ./home/noteme/mydoc/apps/php-4.4.0/libs/libphp4.la
    ./home/noteme/mydoc/apps/php-4.4.0/libphp4.la

    w00t...


    - ØØ -

  3. #3

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [RESOLVED] Apache + PHP + Linux

    Yes, thanks..just shoot me now..

    I remembered to load the PHP module...but I forgot to add the php type..

    AddType application/x-httpd-php .php

    fixed it..


    - ØØ -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width