apache13_modssl + mod_php4 + php4-extenstions +mysql323-*+myphpadmin = ...

Thomas Foster tbonius at comcast.net
Thu Feb 3 13:53:57 PST 2005


I would think that you need to have a PHP.ini...

you would not be able to enable/disable certain features without it..
I installed PHP 4.3.10 from ports today on another machine to check what 
youre saying.. and the PHP.ini was placed in /usr/local/etc/.. so I am not 
sure what youre running into

T
----- Original Message ----- 
From: "Ken Hawkins" <rosewoodblues at mac.com>
To: <freebsd-questions at freebsd.org>
Sent: Thursday, February 03, 2005 12:02 PM
Subject: Re: apache13_modssl + mod_php4 + php4-extenstions 
+mysql323-*+myphpadmin = ...


> 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 at comcast.net> wrote:
>
>>
>><<Original Attached>>
>


--------------------------------------------------------------------------------



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

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

   LoadModule  php4_module         libexec/apache2/libphp4.so







   DirectoryIndex index.php index.html  index.htm

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



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



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



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

   application/x-httpd-php       &=bsp;  php
   application/x-httpd-php-source  phps

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



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



   T







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

   Fro=:  [1]Ke=  Hawkins

   To: [2]Thomas Foster

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

   Subject: Re: apache13_modssl + mod=php4 +  php4-extenstions +
   mysql323-*+myphpadmin = ...

     T,
     thank you for all the info! it has been a learni=g  experience.
     my php.conf file  shows:
     PHP_VER=4
     PHP_VERSION=4.3.10
     PHP_EXT_DIR=200204=9
     PHP_PORT=${PORTSDIR}/lang/php4
     PHP_SAPI=full
     which  jives with the pkg_info;
     [web1:lib/php/20020429] root# pkg_info | =rep  php
     php4-4.3.10_2 PHP Scripting Language (Apache Module and  CLI)
     php4-bz2-4.3.10_2 The bz2 shared extension for  php
     php4-ctype-4.3.10_2 The ctype shared extension for  php
     php4-dba-4.3.10_2 The dba shared extension for  php
     php4-domxml-4.3.10_2 The domxml shared extension for  php
     php4-gd-4.3.10_2 The gd shared extension for php
     php4-mysql-4.3=10_2  The mysql shared extension for php
     php4-openssl-4.3.10_2 The openssl s=ared  extension for php
     php4-overload-4.3.10_2 The overload shared extension=or  php
     php4-pcre-4.3.10_2 The pcre shared extension for  php
     php4-pear-4.3.10_2 PEAR framework for PHP
     php4-posix-4.3.10=2  The posix shared extension for php
     php4-session-4.3.10_2 The session s=ared  extension for php
     php4-tokenizer-4.3.10_2 The tokenizer shared extensi=n  for php
     php4-xml-4.3.10_2 The xml shared extension for  php
     php4-zlib-4.3.10_2 The zlib shared extension for  php
     phpMyAdmin-2.6.1 A set of PHP-scripts to manage MySQL over the
     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
     xml.so
     ctype.so domxml.so imagick.so openssl.so pcre.so posix.s=
     tokenizer.so zlib.so
     so it would appear that the file is there and=he  config is
     correct as far php is concerned. anything i need to do other th     an 
the LoadModule **php** stuff in the httpd.conf file?
     thanks again =or  all your help!
     ken;
     On Feb 1, 2005, at 5:23 PM, Thomas Fos=er  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  distclean
     make config
     make install
     double check your php.c=nf  for PHP_EXT_DIR=
     make sure that lib directory exists under  /usr/local/lib/php
     pcre.so should be in that directory.. if for =ny  reason you
     need to manually remove the older version..
     Hope this=20 helps
     T
     ----- Original Message ----- From: "Ken Hawki=s"
     <rosewoodblues at mac.com>
     To: "Thomas Foster"  <tbonius at comcast.net>
     Sent: Tuesday, February 01, 2005 2:12  PM
     Subject: Re: apache13_modssl + mod_php4 + php4-extenstions +
     mysql323-*+myphpadmin = ...

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

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

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

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

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

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

     Its also  here:
     /usr/ports/devel/php4-pcre/
     Best  regards,
     Andras  Kende
     http://www.kende.com
     ________________=______________________________
     freebsd-questions at freebsd.org  mailing  list
     http://lists.freebsd.org/mailman/listinfo/freebsd-que=tions
     To  unsubscribe, send any mail to
     "freebsd-questions-unsubscribe at freebsd.org"
     _______________________________________________
     freebsd-questions at fre=bsd.org  mailing  list
     http://lists.freebsd.org/mailman/listinfo/freebsd-quest=ons
     To  unsubscribe, send any mail to
     "freebsd-questions-unsubscribe at freebsd.org"

     not  sure if this has something to do with it but when i tried to
     forc= an  install of php4-pcre i got:
     pkg_add: can't open dependency=ile
     '/var/db/pkg/apache-1.3.33/+REQUIRED_BY'!
     dependency registrat=on  is incomplete
     pkg_add: warning: package 'php4-pcre-4.3.9' requ=res
     'php4-4.3.9', but 'php4-4.3.10_2' is installed
     this does n=t  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=ion  for php
     php4-gd-4.3.10_2 The gd shared extension for  php
     php4-mysql-4.3.10_2 The mysql shared extension for  php
     php4-openssl-4.3.10_2 The openssl shared extension for  php
     php4-pcre-4.3.10_2 The pcre shared extension for  php
     php4-pcre-4.3.9 The pcre shared extension for  php
     php4-pear-4.3.10_2 PEAR framework for PHP
     php4-xml-4.3.=0_2  The xml shared extension for php
     php4-zlib-4.3.10_2 The zlib s=ared  extension for php
     phpMyAdmin-2.6.1 A set of PHP-scripts to man=ge  MySQL over the
     web
     show 2 pacakges!
     php4-pcre-4.3.1=_2  The pcre shared extension for php
     php4-pcre-4.3.9 The pcre sha=ed  extension for php
     is this correct? i have the webserver up=20 on
     http://web1.prosoundweb.com/test/ if someone wants to s=e  the
     phpinfo and can spot a blatant  error...
     thanks,
     ken;
     __________________________=____________________
     freebsd-questions at freebsd.org  mailing  list
     http://lists.freebsd.org/mailman/listinfo/freebsd-questio=s
     To  unsubscribe, send any mail to
     "freebsd-questions-unsubscribe at freebsd.org"

     <=R>

   <=HTML>

References

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



--------------------------------------------------------------------------------


> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
> 




More information about the freebsd-questions mailing list