Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Apache php page cannot be loaded
Results 1 to 4 of 4

Thread: Apache php page cannot be loaded

  1. #1

    Apache php page cannot be loaded

    Hi Linux Gurus,
    kindly help me with my problem.

    I was able to compile and install apache-2.0.47 with php-4.2.3. I am now in the testing stage, which came out with undesirable result.

    On my apache running on a internal server which I intend to be a mail server. Having a single ethernet card (192.168.0.4) running on a RedHat 9.0 with a 2.4.22 kernel.

    here's my problem--whenever i created a php page (ex. debug.php) to test if php module was indeed successfully installed on my apache. Instead of displaying the page content it opens the "download manager" and was trying to download the file, under windows client just a blank page.

    This thing kept on appearing whenever I open a .php page.
    however, this is not the case on an .html page which correctly displayed the content of the requested file.

    Here's the content of my apache access log:

    192.168.0.11 - - [29/Oct/2003:11:36:32 +0800] "GET http://mail.alsterph.com/index.html.ru.cp-1251 HTTP/1.0" 200 1522 "http://mail.alsterph.com/" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"
    192.168.0.11 - - [29/Oct/2003:11:36:32 +0800] "GET http://mail.alsterph.com/apache_pb.gif HTTP/1.0" 200 2326 "http://mail.alsterph.com/index.html.ru.cp-1251" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"
    192.168.0.11 - - [29/Oct/2003:11:36:38 +0800] "GET http://mail.alsterph.com/debug.php HTTP/1.0" 200 26 "-" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"
    192.168.0.11 - - [29/Oct/2003:11:36:42 +0800] "GET http://mail.alsterph.com/debug.php HTTP/1.0" 200 26 "-" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"
    192.168.0.11 - - [29/Oct/2003:11:36:44 +0800] "GET http://mail.alsterph.com/debug.php HTTP/1.0" 200 26 "-" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"
    192.168.0.11 - - [29/Oct/2003:11:36:46 +0800] "GET http://mail.alsterph.com/debug.php HTTP/1.0" 200 26 "-" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"
    192.168.0.4 - - [29/Oct/2003:11:36:54 +0800] "GET http://mail.alsterph.com/squirrelmail-1.4.2/index.php HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225"
    192.168.0.4 - - [29/Oct/2003:11:40:05 +0800] "GET http://mail.alsterph.com/squirrelmail-1.4.2/index.html HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225"
    192.168.0.4 - - [29/Oct/2003:11:44:29 +0800] "GET http://mail.alsterph.com/squirrelmail-1.4.2/index.php HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225"

    and error log:

    [Wed Oct 29 11:05:15 2003] [notice] caught SIGTERM, shutting down
    [Wed Oct 29 11:05:15 2003] [info] Init: Initializing OpenSSL library
    [Wed Oct 29 11:05:15 2003] [info] Init: Seeding PRNG with 2048 bytes of entropy
    [Wed Oct 29 11:05:15 2003] [info] Init: Generating temporary RSA private keys (512/1024 bits)
    [Wed Oct 29 11:05:15 2003] [info] Init: Generating temporary DH parameters (512/1024 bits)
    [Wed Oct 29 11:05:15 2003] [info] Init: Initializing (virtual) servers for SSL
    [Wed Oct 29 11:05:15 2003] [info] Server: Apache/2.0.47, Interface: mod_ssl/2.0.47, Library: OpenSSL/0.9.7c
    [Wed Oct 29 11:05:15 2003] [info] Init: Initializing OpenSSL library
    [Wed Oct 29 11:05:15 2003] [info] Init: Seeding PRNG with 2048 bytes of entropy
    [Wed Oct 29 11:05:15 2003] [info] Init: Generating temporary RSA private keys (512/1024 bits)
    [Wed Oct 29 11:05:16 2003] [info] Init: Generating temporary DH parameters (512/1024 bits)
    [Wed Oct 29 11:05:16 2003] [info] Init: Initializing (virtual) servers for SSL
    [Wed Oct 29 11:05:16 2003] [info] Server: Apache/2.0.47, Interface: mod_ssl/2.0.47, Library: OpenSSL/0.9.7c
    [Wed Oct 29 11:05:16 2003] [notice] Apache/2.0.47 (Unix) configured -- resuming normal operations
    [Wed Oct 29 11:05:16 2003] [info] Server built: Oct 27 2003 16:24:44

    One more thing, each time i open my newly configured apache...mail.alsterph.com [my apache is a webmail server] it displays my directory contents. these could be a security problem? How can I hide my server contents?

    Thank you very much.

    Rhonneil

  2. #2
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:Apache php page cannot be loaded

    [quote author=rhonneil link=board=4;threadid=8029;start=0#msg73174 date=1067400452]
    here's my problem--whenever i created a php page (ex. debug.php) to test if php module was indeed successfully installed on my apache. Instead of displaying the page content it opens the "download manager" and was trying to download the file, under windows client just a blank page.[/quote]
    Assuming you put in this code into your php file,
    Code:
    <?php
      echo "This is a test";
      ?>
    then there is something else you need such as adding "AddType" like so
    #AddType application/x-httpd-php3 .php3
    #AddType application/x-httpd-php3-source .phps
    Sorry can't verify this since my Apache 2.0 box is currently unreachable.

    One more thing, each time i open my newly configured apache...mail.alsterph.com [my apache is a webmail server] it displays my directory contents. these could be a security problem? How can I hide my server contents?
    comment out mod_autoindex feature in LoadModule area.

    http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html

  3. #3

    Re:Apache php page cannot be loaded

    [quote author=Compunuts link=board=4;threadid=8029;start=0#msg73212 date=1067508199]
    [quote author=rhonneil link=board=4;threadid=8029;start=0#msg73174 date=1067400452]
    here's my problem--whenever i created a php page (ex. debug.php) to test if php module was indeed successfully installed on my apache. Instead of displaying the page content it opens the "download manager" and was trying to download the file, under windows client just a blank page.[/quote]
    Assuming you put in this code into your php file,
    Code:
    <?php
      echo "This is a test";
      ?>
    then there is something else you need such as adding "AddType" like so
    #AddType application/x-httpd-php3 .php3
    #AddType application/x-httpd-php3-source .phps
    Sorry can't verify this since my Apache 2.0 box is currently unreachable.

    One more thing, each time i open my newly configured apache...mail.alsterph.com [my apache is a webmail server] it displays my directory contents. these could be a security problem? How can I hide my server contents?
    comment out mod_autoindex feature in LoadModule area.

    http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html
    [/quote]



    Thanks for your speedy reply. These are some of my httpd.conf entries
    which was previously included in it. However, even if these were already
    included in the httpd.conf file the problem can still be seen.
    ------------------------------------------------------------------------

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

    <IfModule mod_mime.c>
    TypesConfig /etc/httpd/conf/mime.types
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddType application/x-tar .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .shtml
    AddType application/x-httpd-php-source .phps
    </IfModule>

    --------------------------------------------------------------------------
    Download Manager provides the following everytime you open a php page:

    "You have chosen to download a file type: application/x-httpd-php from
    mail.alsterph.com"

    This is the entry for libphp4.so inside my httpd.conf

    LoadModule php4_module modules/libphp4.so

    When I when I try to locate libphp4.so, it says:

    [root@mail modules]# locate libphp4.so
    /usr/lib/httpd/modules/libphp4.so

    I understand this is a link to /etc/httpd/modules/ so assume this is
    normal.

    And when I run the httpd service it indicate [OK], errors also cannot be
    seen in the logs.

    What else should I do?

    rhonneil

  4. #4

    Re:Apache php page cannot be loaded

    I fixed the error by installing apache-2.x with php-4.3.3

    Thanks

Similar Threads

  1. Front page..
    By Stuart in forum Announcements and Suggestions
    Replies: 2
    Last Post: 02-14-2005, 07:53 AM
  2. Set Page Transitions on a Frames Page
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 03:30 AM
  3. Apache Test Page
    By vwgtiturbo in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 11-27-2003, 10:25 PM
  4. Pointing Apache to right start page
    By mmiller9 in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 01-29-2003, 03:53 PM
  5. News page
    By paradox in forum Announcements and Suggestions
    Replies: 5
    Last Post: 02-11-2002, 08:55 AM

Bookmarks

Posting Permissions

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