php-install Digest 12 Jan 2002 10:09:15 -0000 Issue 645

Topics (messages 5543 through 5546):

Re: Stuck, big time
        5543 by: Chris
        5544 by: Dave Lurie

Compiling PHP on FreeBSD
        5545 by: Peter Bowyer

Fatal Error
        5546 by: millw0rm

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Greetings Dave,
 The reason this occurs is because Apache has NO idea what a .php file is
unless you tell it about it. As a "professional webdesigner" you should
know this ;-)
 OK, here's what you do. Add the following lines to your httpd.conf file.
Please note that there are *already* some references to these lines in it.
So you would best search for them and add from here what is missing:


#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.php default.html default.htm
</IfModule>


    #
    # AddType allows you to tweak mime.types without actually editing it, or to
    # make certain files to be certain types.
    #
    # For example, the PHP 3.x module (not part of the Apache distribution - see
    # http://www.php.net) will typically use:
    #
   
   AddType application/x-httpd-php3 .php3
   AddType application/x-httpd-php3-source .phps

    #
    # And for PHP 4.x, use:
    #

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


The above blocks are in two different sections (if you search, as I mentioned
earlier. you would recognise that). :-)


Best Wishes,
C. Hutchinson
H.R. Communications Corp.
http://www.1command.com
http://www.dnswatch.com


> I'm a professional webdesigner, but a recent job i recieved asked me to host the
> webpage on my computer, which means i'm trying to install php on my own system.
> 
> I have done so, but when opening a .php file i see the source code and it's
> ignoring that php exists. If i stick <html> on the start to make it an html page
> it translate the html parts into being visible properly, but the php parts are
> still ignored.
> 
> What am i doing wrong?
> 
> Thankyou
> 
> David Lurie
> 
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


..

............................................
This email was sent using DNSWATCH WebMail.
   "Get YOUR account today!"
http://www.dnswatch.com/dnswm112/


--- End Message ---
--- Begin Message ---
Actually i found out my problem, i found out that when i installed php it
installed apache along with it, so i had two copies of apache on my system,
and the one i had open was trying to read the wrong configuration.. AFter
days of geting annoyed, all i ended up doing was realising i had it
double-installed and switched around conf files
"Chris" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Greetings Dave,
>  The reason this occurs is because Apache has NO idea what a .php file is
> unless you tell it about it. As a "professional webdesigner" you should
> know this ;-)
>  OK, here's what you do. Add the following lines to your httpd.conf file.
> Please note that there are *already* some references to these lines in it.
> So you would best search for them and add from here what is missing:
>
>
> #
> # DirectoryIndex: Name of the file or files to use as a pre-written HTML
> # directory index.  Separate multiple entries with spaces.
> #
> <IfModule mod_dir.c>
>     DirectoryIndex index.html index.htm index.php default.html default.htm
> </IfModule>
>
>
>     #
>     # AddType allows you to tweak mime.types without actually editing it,
or to
>     # make certain files to be certain types.
>     #
>     # For example, the PHP 3.x module (not part of the Apache
distribution - see
>     # http://www.php.net) will typically use:
>     #
>
>    AddType application/x-httpd-php3 .php3
>    AddType application/x-httpd-php3-source .phps
>
>     #
>     # And for PHP 4.x, use:
>     #
>
>    AddType application/x-httpd-php .php
>    AddType application/x-httpd-php .php4
>    AddType application/x-httpd-php-source .phps
>
>
> The above blocks are in two different sections (if you search, as I
mentioned
> earlier. you would recognise that). :-)
>
>
> Best Wishes,
> C. Hutchinson
> H.R. Communications Corp.
> http://www.1command.com
> http://www.dnswatch.com
>
>
> > I'm a professional webdesigner, but a recent job i recieved asked me to
host the
> > webpage on my computer, which means i'm trying to install php on my own
system.
> >
> > I have done so, but when opening a .php file i see the source code and
it's
> > ignoring that php exists. If i stick <html> on the start to make it an
html page
> > it translate the html parts into being visible properly, but the php
parts are
> > still ignored.
> >
> > What am i doing wrong?
> >
> > Thankyou
> >
> > David Lurie
> >
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> ..
>
> ............................................
> This email was sent using DNSWATCH WebMail.
>    "Get YOUR account today!"
> http://www.dnswatch.com/dnswm112/
>
>


--- End Message ---
--- Begin Message ---
Hi,

I'm trying to compile PHP 4.1.1 on FreeBSD but keep on getting the
following error:


% make
Making all in Zend
Making all in main
Making all in ext
Making all in mysql
Making all in libmysql
Making all in pcre
Making all in pcrelib
Making all in posix
Making all in session
Making all in standard
/bin/sh /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/libtool
--silent --mode=compile gcc  -I.
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/standard
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/main
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1
-I/usr/local/apache/1.2.6/include
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/Zend
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/mysql/libmysql
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/xml/expat
-DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/TSRM -g -O2
-prefer-pic  -c dns.c
dns.c: In function `zif_checkdnsrr':
dns.c:199: `T_MX' undeclared (first use in this function)
dns.c:199: (Each undeclared identifier is reported only once
dns.c:199: for each function it appears in.)
dns.c:208: `T_A' undeclared (first use in this function)
dns.c:209: `T_NS' undeclared (first use in this function)
dns.c:211: `T_PTR' undeclared (first use in this function)
dns.c:212: `T_ANY' undeclared (first use in this function)
dns.c:213: `T_SOA' undeclared (first use in this function)
dns.c:214: `T_CNAME' undeclared (first use in this function)
dns.c:223: `C_IN' undeclared (first use in this function)
dns.c: In function `zif_getmxrr':
dns.c:253: `HEADER' undeclared (first use in this function)
dns.c:253: `hp' undeclared (first use in this function)
dns.c:254: syntax error before `*'
dns.c:284: `i' undeclared (first use in this function)
dns.c:284: `C_IN' undeclared (first use in this function)
dns.c:284: `T_MX' undeclared (first use in this function)
dns.c:289: syntax error before `)'
dns.c:290: `cp' undeclared (first use in this function)
dns.c:291: `end' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/standard.
*** Error code 1

Stop in /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/standard.
*** Error code 1

Stop in /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext.
*** Error code 1

Stop in /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1.



Can anyone help?  This is my first attempt at compiling, so it's probably a 
silly error :-)

Thanks,
Peter.

--oOo--
Narrow Gauge on the web - photos, directory and forums!
http://www.narrow-gauge.co.uk
--oOo--
Peter's web page - Scottish narrow gauge in 009
http://members.aol.com/reywob/
--oOo--

--- End Message ---
--- Begin Message ---
i hav just upgraded from php3 to php4

i m getting this error through out my website what can be the problem... can
anyone help me out

Fatal error: Cannot instantiate non-existent class




--- End Message ---

Reply via email to