Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Feb 2005 12:02:15 -0800
From:      Ken Hawkins <rosewoodblues@mac.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: apache13_modssl + mod_php4 + php4-extenstions + mysql323-*+myphpadmin = ...
Message-ID:  <10464460.1107460935323.JavaMail.rosewoodblues@mac.com>
In-Reply-To: <010801c508b6$d73545f0$c900a8c0@ostros>
References:  <20050201202909.3617943D46@mx1.FreeBSD.org> <65c03affc3fe558c30ed9fa5266b1b16@rosewoodblues.com> <c09aaed5aa66aad390272da38325e021@mac.com> <006101c508a9$46923790$c900a8c0@ostros> <f118cb3512297b119ba1983d381f612a@mac.com> <008c01c508ac$b5635430$c900a8c0@ostros> <010801c508b6$d73545f0$c900a8c0@ostros>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_120_1352254.1107460935304
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

thanks T,

I followed your steps to the tee and still no go. I do have a php.ini in /usr/local/etc however and it appears to be picking up my include_path. 


  I just got done installing Horde/IMP and I hate to tell you but
php.ini doesen't even exist.  From the looks of it the ports people
got together and worked out an alternative way of specifying variables
for php instead of using php.ini.  Probably to avoid the problems
that you mentioned of ports overwriting php files.

so what is this alternative way? i have to include some other paths...

ken;


On Tuesday, February 01, 2005, at 03:35PM, Thomas Foster <tbonius@comcast.net> wrote:

>
><<Original Attached>>

------=_Part_120_1352254.1107460935304
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"


   Well, the only items you really need in ht= tpd.conf=20 are:

   #############################################

   LoadModule=20 php4_module       =20 libexec/apache2/libphp4.so







   DirectoryIndex index.php index.html=20 index.htm

   #############################################



   If you are using apache2 that is.. for apa= che1.3 i=20 believe it is
   libexec/apache13 or libexec/apache



   It would help to make sure you have define= d mime=20 types as well..



   #############################################

   application/x-httpd-php       &= nbsp;=20 php
   application/x-httpd-php-source  phps

   #############################################



   Be sure and restart apache and clear your = browser=20 cache before
   trying to load the page/site again..  let me know your=20 results



   T







   ----- Original Message -----

   Fro= m:=20 [1]Ke= n=20 Hawkins

   To: [2]Thomas Foster

   Sent: Tuesday, February 01, 2005 3= :09=20 PM

   Subject: Re: apache13_modssl + mod= _php4 +=20 php4-extenstions +
   mysql323-*+myphpadmin =3D ...

     T,
     thank you for all the info! it has been a learni= ng=20 experience.
     my php.conf file=20 shows:
     PHP_VER=3D4
     PHP_VERSION=3D4.3.10
     PHP_EXT_DIR=3D200204= 29
     PHP_PORT=3D${PORTSDIR}/lang/php4
     PHP_SAPI=3Dfull
     which=20 jives with the pkg_info;
     [web1:lib/php/20020429] root# pkg_info | = grep=20 php
     php4-4.3.10_2 PHP Scripting Language (Apache Module and=20 CLI)
     php4-bz2-4.3.10_2 The bz2 shared extension for=20 php
     php4-ctype-4.3.10_2 The ctype shared extension for=20 php
     php4-dba-4.3.10_2 The dba shared extension for=20 php
     php4-domxml-4.3.10_2 The domxml shared extension for=20 php
     php4-gd-4.3.10_2 The gd shared extension for php
     php4-mysql-4.3= .10_2=20 The mysql shared extension for php
     php4-openssl-4.3.10_2 The openssl s= hared=20 extension for php
     php4-overload-4.3.10_2 The overload shared extension= for=20 php
     php4-pcre-4.3.10_2 The pcre shared extension for=20 php
     php4-pear-4.3.10_2 PEAR framework for PHP
     php4-posix-4.3.10= _2=20 The posix shared extension for php
     php4-session-4.3.10_2 The session s= hared=20 extension for php
     php4-tokenizer-4.3.10_2 The tokenizer shared extensi= on=20 for php
     php4-xml-4.3.10_2 The xml shared extension for=20 php
     php4-zlib-4.3.10_2 The zlib shared extension for=20 php
     phpMyAdmin-2.6.1 A set of PHP-scripts to manage MySQL over the=20
     web
     and it is in the directory;
     [web1:lib/php/20020429] root#= =20 ls
     bz2.so dba.so gd.so mysql.so overload.so pdf.so session.so=20
     xml.so
     ctype.so domxml.so imagick.so openssl.so pcre.so posix.s= o=20
     tokenizer.so zlib.so
     so it would appear that the file is there and= the=20 config is
     correct as far php is concerned. anything i need to do other th=
     an=20 the LoadModule **php** stuff in the httpd.conf file?
     thanks again = for=20 all your help!
     ken;
     On Feb 1, 2005, at 5:23 PM, Thomas Fos= ter=20 wrote:

     Is your pcre extension still: php4-pcre-4.3.9 ?
     If so, try= =20 forcing a pkg_delete of all your PHP4 extensions,
     and rebuild ..
     make=20 distclean
     make config
     make install
     double check your php.c= onf=20 for PHP_EXT_DIR=3D
     make sure that lib directory exists under=20 /usr/local/lib/php
     pcre.so should be in that directory.. if for = any=20 reason you
     need to manually remove the older version..
     Hope this= =20 helps
     T
     ----- Original Message ----- From: "Ken Hawki= ns"=20
     <rosewoodblues@mac.com>
     To: "Thomas Foster"=20 <tbonius@comcast.net>
     Sent: Tuesday, February 01, 2005 2:12=20 PM
     Subject: Re: apache13_modssl + mod_php4 + php4-extenstions +=20
     mysql323-*+myphpadmin =3D ...

     thanks, I did that and PCRE is selected and is=20 installed.
     the battle continues....
     ken;
     On Feb = 1,=20 2005, at 4:59 PM, Thomas Foster wrote:

     try "make config" from=20 /usr/ports/lang/php4-extensions
     Is PCRE already=20 defined?
     try selecting the libs you need from here... and in= stall=20 them
     Hope this helps
     T
     ----- Original Message ----= -=20 From: "Ken Hawkins"
     <rosewoodblues@mac.com>
     To: "Ken Hawki= ns"=20 <ken@rosewoodblues.com>
     Cc:=20 <freebsd-questions@freebsd.org>
     Sent: Tuesday, February 01= ,=20 2005 1:00 PM
     Subject: Re: apache13_modssl + mod_php4 +=20 php4-extenstions +
     mysql323-*+myphpadmin =3D ...

     On Feb 1, 2005, at 3:42 PM, Ken Hawkins=20 wrote:

     On Feb 1, 2005, at 3:29 PM, Andras Kende=20 wrote:

     -----Original Message-----
     From:=20 owner-freebsd-questions@freebsd.org
     [mailto:owner-freebsd-= questions@freebsd.org]=20 On Behalf Of Ken
     Hawkins
     Sent: Tuesday, February 01, 2005 = 2:16=20 PM
     To: freebsd-questions@freebsd.org
     Subject:=20 apache13_modssl + mod_php4 + php4-extenstions +=20
     mysql323-*
     +myphpadmin =3D ...
     [Tue Feb 1 11:58:29 = 2005]=20 [error] PHP Fatal error: Call to
     undefined
     function:=20 preg_match()=20 in
     /usr/local/www/phpMyAdmin/libraries/defines.lib.php on = line=20 36
     I have re-installed the above mentioned ports a= nd=20 everything
     is up and
     running however from phpmyadmin I am= =20 getting the above
     mentioned error
     when trying to use phpmy= admin=20 from a webpage.
     I have seen the various supposed fixes= and=20 have tried a few. I
     do not
     get the =3D20 after the error a= nd have=20 tried ripping out
     everything.
     installing php4-pear then=20 apache13-modssl, mysql323-server /
     client and
     myphpadmin y= et i=20 still get this!
     can someone please give me the definit= ive=20 fix for this? is
     there one?
     sorry to sound frustrated,= =20 loosing a day tracking this down is
     no=20 fun
     ken;
     ______________________________________= _________
     freebsd-questions@freebsd.org=20 mailing=20 list
     http://lists.freebsd.org/mailman/listinfo/freebsd-que= stions
     To=20 unsubscribe, send any mail to=20
     "freebsd-questions-unsubscribe@freebsd.org"
     He= llo,
     Looks=20 like PHP missing the PCRE (Perl Compatible Regular=20
     Expressions)
     Support
     <?php phpinfo(); ?>
     S= hould=20 have like:
     PCRE (Perl Compatible Regular Expressions)= =20 Support | enabled
     PCRE Library Version | 4.5=20 01-December-2003

     I have this:
     PWD= =20 /usr/ports/devel/php4-pcre
     and
     _ENV["PWD"]=20 /usr/ports/devel/php4-pcre
     but that is it. i have as wel= l=20 installed php4-pcre to now
     avail ...
     any=20 other?
     ken;

     Its also=20 here:
     /usr/ports/devel/php4-pcre/
     Best=20 regards,
     Andras=20 Kende
     http://www.kende.com
     ________________= _______________________________
     freebsd-questions@freebsd.org=20 mailing=20 list
     http://lists.freebsd.org/mailman/listinfo/freebsd-que= stions
     To=20 unsubscribe, send any mail to=20
     "freebsd-questions-unsubscribe@freebsd.org"
     _______________________________________________
     freebsd-questions@fre= ebsd.org=20 mailing=20 list
     http://lists.freebsd.org/mailman/listinfo/freebsd-quest= ions
     To=20 unsubscribe, send any mail to=20
     "freebsd-questions-unsubscribe@freebsd.org"

     not=20 sure if this has something to do with it but when i tried to
     forc= e an=20 install of php4-pcre i got:
     pkg_add: can't open dependency= file=20
     '/var/db/pkg/apache-1.3.33/+REQUIRED_BY'!
     dependency registrat= ion=20 is incomplete
     pkg_add: warning: package 'php4-pcre-4.3.9' requ= ires=20
     'php4-4.3.9', but 'php4-4.3.10_2' is installed
     this does n= ot=20 seem to be a problem however,
     [web1:ports/devel/php4-pcre]= =20 root# pkg_info | grep php
     php4-4.3.10_2 PHP Scripting Language= =20 (Apache Module and CLI)
     php4-bz2-4.3.10_2 The bz2 shared exten= sion=20 for php
     php4-gd-4.3.10_2 The gd shared extension for=20 php
     php4-mysql-4.3.10_2 The mysql shared extension for=20 php
     php4-openssl-4.3.10_2 The openssl shared extension for=20 php
     php4-pcre-4.3.10_2 The pcre shared extension for=20 php
     php4-pcre-4.3.9 The pcre shared extension for=20 php
     php4-pear-4.3.10_2 PEAR framework for PHP
     php4-xml-4.3.= 10_2=20 The xml shared extension for php
     php4-zlib-4.3.10_2 The zlib s= hared=20 extension for php
     phpMyAdmin-2.6.1 A set of PHP-scripts to man= age=20 MySQL over the
     web
     show 2 pacakges!
     php4-pcre-4.3.1= 0_2=20 The pcre shared extension for php
     php4-pcre-4.3.9 The pcre sha= red=20 extension for php
     is this correct? i have the webserver up= =20 on
     http://web1.prosoundweb.com/test/ if someone wants to s= ee=20 the
     phpinfo and can spot a blatant=20 error...
     thanks,
     ken;
     __________________________= _____________________
     freebsd-questions@freebsd.org=20 mailing=20 list
     http://lists.freebsd.org/mailman/listinfo/freebsd-questio= ns
     To=20 unsubscribe, send any mail to=20
     "freebsd-questions-unsubscribe@freebsd.org"

     <= BR>

   <= /HTML>

References

   1. 3D"mailto:rosewoodblues@mac.com"
   2. 3D"mailto:tbonius@comcast.net"

------=_Part_120_1352254.1107460935304--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10464460.1107460935323.JavaMail.rosewoodblues>