php docs not working on Apache

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts

  • Andreas Paasch
    Guest replied
    Re: php docs not working on Apache

    gwerk wrote:
    [color=blue]
    > Yes, index.php is included. Does the ScriptAlias have to be set for php
    > running on Linux? I have seen it set for Windows machines but I thought
    > that AddType takes care of it for linux machines.
    >[/color]

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

    is needed in commonhttpd.con f (Apache 2.x)

    And

    application/x-php php php3 php4

    in apache-mime-types

    That's what I've got, and my php code runs just smooth on Mandrake 9.2

    /Andreas
    --
    Registeret Linux user #292411

    Leave a comment:


  • gwerk
    Guest replied
    Re: php docs not working on Apache

    Yes, index.php is included. Does the ScriptAlias have to be set for php
    running on Linux? I have seen it set for Windows machines but I thought
    that AddType takes care of it for linux machines.



    "Andreas Paasch" <Andreas@Paasch .Net> wrote in message
    news:KeeDb.5916 4$jf4.3412428@n ews000.worldonl ine.dk...[color=blue]
    > gwerk wrote:
    >[color=green]
    > > the short tags is set to ON but I've also noticed that when I write the
    > > php code it is no longer colour coded - which is strange because it was
    > > before I installed Apache...
    > >
    > >[/color]
    >
    > The color coding of your code is not in any way related to Apache, that's[/color]
    a[color=blue]
    > program issue of the program you use for your coding of php pages.
    >
    > What I just saw, what about your index.php page? is that among your index
    > extensions in your apache configuration file?
    >
    > Quick search for index.htm should give you the line you need.
    >
    > /Andreas
    >[color=green]
    > > "Andreas Paasch" <Andreas@Paasch .Net> wrote in message
    > > news:Kw4Db.5910 8$jf4.3403002@n ews000.worldonl ine.dk...[color=darkred]
    > >> gwerk wrote:
    > >>
    > >> > Hi, I've installed php4.0.4 on a linux machine running apache 1.3.19
    > >> > but the
    > >> > php is not working properly. When I try to open a php doc all i get[/color][/color][/color]
    is[color=blue][color=green][color=darkred]
    > >> > the actual code - not the output eg. <? echo "This isn't working" ?>
    > >> >
    > >> > These line have been added to my httpd.conf file:
    > >> >
    > >> > AddModule mod_php.c
    > >> > AddModule mod_php3.c
    > >> > AddModule mod_perl.c
    > >> > LoadModule php_module modules/mod_php.so
    > >> > LoadModule php3_module modules/libphp3.so
    > >> > LoadModule php4_module modules/libphp4.so
    > >> > LoadModule perl_module modules/libperl.so
    > >> > AddType application/x-httpd-php3 .php
    > >> > AddType application/x-httpd-php .php
    > >> >
    > >> > Does anyone know what I am missing?
    > >>
    > >> Check your php.ini file for short_tags. If it says no, either change it
    > >> to yes or use <?php instead.
    > >>
    > >> /Andreas
    > >> --
    > >> Registeret Linux user #292411[/color][/color]
    >
    > --
    > Registeret Linux user #292411[/color]


    Leave a comment:


  • Andreas Paasch
    Guest replied
    Re: php docs not working on Apache

    gwerk wrote:
    [color=blue]
    > the short tags is set to ON but I've also noticed that when I write the
    > php code it is no longer colour coded - which is strange because it was
    > before I installed Apache...
    >
    >[/color]

    The color coding of your code is not in any way related to Apache, that's a
    program issue of the program you use for your coding of php pages.

    What I just saw, what about your index.php page? is that among your index
    extensions in your apache configuration file?

    Quick search for index.htm should give you the line you need.

    /Andreas
    [color=blue]
    > "Andreas Paasch" <Andreas@Paasch .Net> wrote in message
    > news:Kw4Db.5910 8$jf4.3403002@n ews000.worldonl ine.dk...[color=green]
    >> gwerk wrote:
    >>[color=darkred]
    >> > Hi, I've installed php4.0.4 on a linux machine running apache 1.3.19
    >> > but the
    >> > php is not working properly. When I try to open a php doc all i get is
    >> > the actual code - not the output eg. <? echo "This isn't working" ?>
    >> >
    >> > These line have been added to my httpd.conf file:
    >> >
    >> > AddModule mod_php.c
    >> > AddModule mod_php3.c
    >> > AddModule mod_perl.c
    >> > LoadModule php_module modules/mod_php.so
    >> > LoadModule php3_module modules/libphp3.so
    >> > LoadModule php4_module modules/libphp4.so
    >> > LoadModule perl_module modules/libperl.so
    >> > AddType application/x-httpd-php3 .php
    >> > AddType application/x-httpd-php .php
    >> >
    >> > Does anyone know what I am missing?[/color]
    >>
    >> Check your php.ini file for short_tags. If it says no, either change it
    >> to yes or use <?php instead.
    >>
    >> /Andreas
    >> --
    >> Registeret Linux user #292411[/color][/color]

    --
    Registeret Linux user #292411

    Leave a comment:


  • gwerk
    Guest replied
    Re: php docs not working on Apache

    the short tags is set to ON but I've also noticed that when I write the php
    code it is no longer colour coded - which is strange because it was before I
    installed Apache...


    "Andreas Paasch" <Andreas@Paasch .Net> wrote in message
    news:Kw4Db.5910 8$jf4.3403002@n ews000.worldonl ine.dk...[color=blue]
    > gwerk wrote:
    >[color=green]
    > > Hi, I've installed php4.0.4 on a linux machine running apache 1.3.19 but
    > > the
    > > php is not working properly. When I try to open a php doc all i get is
    > > the actual code - not the output eg. <? echo "This isn't working" ?>
    > >
    > > These line have been added to my httpd.conf file:
    > >
    > > AddModule mod_php.c
    > > AddModule mod_php3.c
    > > AddModule mod_perl.c
    > > LoadModule php_module modules/mod_php.so
    > > LoadModule php3_module modules/libphp3.so
    > > LoadModule php4_module modules/libphp4.so
    > > LoadModule perl_module modules/libperl.so
    > > AddType application/x-httpd-php3 .php
    > > AddType application/x-httpd-php .php
    > >
    > > Does anyone know what I am missing?[/color]
    >
    > Check your php.ini file for short_tags. If it says no, either change it to
    > yes or use <?php instead.
    >
    > /Andreas
    > --
    > Registeret Linux user #292411[/color]


    Leave a comment:


  • Andreas Paasch
    Guest replied
    Re: php docs not working on Apache

    gwerk wrote:
    [color=blue]
    > Hi, I've installed php4.0.4 on a linux machine running apache 1.3.19 but
    > the
    > php is not working properly. When I try to open a php doc all i get is
    > the actual code - not the output eg. <? echo "This isn't working" ?>
    >
    > These line have been added to my httpd.conf file:
    >
    > AddModule mod_php.c
    > AddModule mod_php3.c
    > AddModule mod_perl.c
    > LoadModule php_module modules/mod_php.so
    > LoadModule php3_module modules/libphp3.so
    > LoadModule php4_module modules/libphp4.so
    > LoadModule perl_module modules/libperl.so
    > AddType application/x-httpd-php3 .php
    > AddType application/x-httpd-php .php
    >
    > Does anyone know what I am missing?[/color]

    Check your php.ini file for short_tags. If it says no, either change it to
    yes or use <?php instead.

    /Andreas
    --
    Registeret Linux user #292411

    Leave a comment:


  • Arkascha
    Guest replied
    Re: php docs not working on Apache

    Thus spoke gwerk:
    [color=blue]
    > Hi, I've installed php4.0.4 on a linux machine running apache 1.3.19 but
    > the
    > php is not working properly. When I try to open a php doc all i get is
    > the actual code - not the output eg. <? echo "This isn't working" ?>
    >
    > These line have been added to my httpd.conf file:
    >
    > AddModule mod_php.c
    > AddModule mod_php3.c
    > AddModule mod_perl.c
    > LoadModule php_module modules/mod_php.so
    > LoadModule php3_module modules/libphp3.so
    > LoadModule php4_module modules/libphp4.so
    > LoadModule perl_module modules/libperl.so
    > AddType application/x-httpd-php3 .php
    > AddType application/x-httpd-php .php
    >
    > Does anyone know what I am missing?[/color]

    Take a look at the logifles. Usually you'll find something about "no such
    file" or "unable to open"...
    --
    arkascha

    Leave a comment:


  • gwerk
    Guest started a topic php docs not working on Apache

    php docs not working on Apache

    Hi, I've installed php4.0.4 on a linux machine running apache 1.3.19 but the
    php is not working properly. When I try to open a php doc all i get is the
    actual code - not the output eg. <? echo "This isn't working" ?>

    These line have been added to my httpd.conf file:

    AddModule mod_php.c
    AddModule mod_php3.c
    AddModule mod_perl.c
    LoadModule php_module modules/mod_php.so
    LoadModule php3_module modules/libphp3.so
    LoadModule php4_module modules/libphp4.so
    LoadModule perl_module modules/libperl.so
    AddType application/x-httpd-php3 .php
    AddType application/x-httpd-php .php

    Does anyone know what I am missing?



Working...