All pastes #226563 Raw Edit

Unnamed

public text v1 · immutable
#226563 ·published 2006-10-28 16:50 UTC
rendered paste body
18:17.59 -!- Starting query in freenode with yos
18:17.59 <yos> hi worth 
18:18.10 <yos> Fatal error: Unknown function: apache_request_headers() is this php 
               problem ? or apache
18:37.21 -!- yos n=norok@a89044.upc-a.chello.nl
18:37.21 -!- ircname : The"Norocos"
18:37.21 -!- channels: ##freebsd 
18:37.21 -!- server  : irc.freenode.net http://freenode.net/
18:37.21 -!-         : is identified to services 
18:37.21 -!- End of WHOIS
18:37.33 <Worth> let me check
18:37.36 <Worth> which php version is it?
18:37.42 <yos> PHP5
18:37.56 <yos> on others BOX my script work FINE
18:38.19 <yos> on this one i am not addmin ..i have my files to a  web Hosting 
               server.
18:39.10 <Worth> php5 on both servers?
18:39.19 <yos> yes
18:39.20 <Worth> mine gives this -- http://powerslave.the-source.us/~vidar/apa.php
18:39.35 <yos> the code is write in php5
18:39.45 <Worth> (on PHP/5.1.4)
18:40.21 <Worth> is php installed as an apache module? 
18:40.24 <Worth> (mod_php)
18:40.31 <yos> on your link i dont understund much :)
18:40.42 <yos> yes it is
18:40.45 <Worth> the link was just to test if it worked on my system :)
18:40.50 <yos> i will paste you the ERROR line ok
18:40.53 <Worth> ok
18:41.27 <Worth> apache_request_headers() will only work when php is invoked as an 
                 apache module, not when it's running as a cgi
18:41.46 <yos> i have PHP5 cgi install
18:41.49 <Worth> aha
18:41.51 <yos> i need pgp cli 
18:41.55 <Worth> it won't work on cgi
18:42.01 <yos> on php5 ( cli ) work
18:42.18 <yos> jocurion@jocurionline.eu [~/public_html/ww1/+_Server_+]# php -v
18:42.18 <yos> PHP 5.1.6 (cgi) (built: Sep 11 2006 18:53:50)
18:42.18 <yos> Copyright (c) 1997-2006 The PHP Group
18:42.18 <yos> Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
18:42.18 <yos> jocurion@jocurionline.eu [~/public_html/ww1/+_Server_+]#
18:42.38 <yos> PHP 5.1.6 (cgi) (built: Sep 11 2006 18:53:50)   No working fine
18:42.52 <yos> on PHP 5.x ( cli ) is working
18:43.00 <Worth> you have to run php as a module, not as a cgi, or 
                 apache_request_headers() will not work
18:43.14 <yos> so as a module
18:43.16 <Worth> yes
18:43.19 <yos> what i must to do
18:43.22 <yos> ?
18:43.42 <yos> i need to install the lib module php ?
18:43.49 <Worth> cd /usr/ports/lang/php5; make config
18:43.56 <yos> No
18:44.06 <Worth> mark this one:     [X] APACHE     Build Apache module
18:44.06 <yos> i am a User not a admin...root
18:44.14 <Worth> ohh, well then you're fucked
18:44.31 <yos> can you see JPG ? pic ?
18:44.38 <Worth> yes
18:44.45 <yos> i can make a print screan for you
18:44.51 <Worth> no need
18:44.53 <yos> ok i go login Cpanel
18:44.54 <Worth> I know what the problem is
18:45.04 <Worth> you have to install php as a module
18:45.11 <yos> what i must ask the Support off my server ?
18:45.30 <Worth> tell them you need mod_php instead of cgi
18:45.52 <yos> aha
18:46.02 <yos> theat must be add in apache conf ?
18:46.06 <yos> or php.ini
18:46.38 <Worth> you have to reinstall php
18:46.41 <Worth> as a module
18:47.16 <yos> So
18:47.16 <yos> PHP 5.1.6 (cgi) (built: Sep 11 2006 18:53:50)
18:47.16 <yos> Copyright (c) 1997-2006 The PHP Group
18:47.23 <yos>  Is not a good Box for me.
18:47.33 <Worth> no, you need module, not cgi
18:48.06 <yos> i need 
18:48.07 <yos> admin@jocurionline:~$ php -v
18:48.07 <yos> PHP 5.1.2-1 (cli) (built: Jan 18 2006 06:49:47)
18:48.07 <yos> Copyright (c) 1997-2006 The PHP Group
18:48.07 <yos> Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
18:48.07 <yos> admin@jocurionline:~$
18:48.37 <yos> i whant to ask you so:
18:48.38 <Worth> you can keep that, BUT YOU HAVE TO INSTALL THE APACHE MODULE
18:48.48 <yos> ok
18:48.52 <yos> i will tell them
18:48.55 <yos> thanks
18:48.59 <Worth> ok, good
18:49.08 <yos> and ...you are OK ?:)
18:49.13 <Worth> I'm fine
18:49.33 <yos> i get the best Romanian Coder ...a good BOY  work HARD. ( he get all 
               my respect )
18:49.49 <yos> the fisrt Team ( suck ) run away :)
18:50.03 <yos> i lose 300$ with them :)
18:50.04 <Worth> good for you, I hope it works out