Jump to content


Photo

php-gtk2 installation


  • Please log in to reply
3 replies to this topic

#1 djcasp

djcasp
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 September 2006 - 03:18 AM

I can't tell if php-gtk2 is installed on my system.  i followed the directions from gtk.php.net and tried it with and without specifying the location of phpize and php-config.  no errors were thrown during the build and the make.  i'm running php 5.1.2(cli) on ubuntu dapper.  running php -m | grep php-gtk doesn't returning anything. i've enabled the extension in php.ini  (extension=php_gtk2.so)  any ideas about this? i need to have this up and running to get my project going.
thanks much
btw hope this is the correct forum

#2 shoz

shoz
  • Staff Alumni
  • Advanced Member
  • 600 posts

Posted 27 September 2006 - 01:39 PM

I can't tell if php-gtk2 is installed on my system.  i followed the directions from gtk.php.net and tried it with and without specifying the location of phpize and php-config.  no errors were thrown during the build and the make.  i'm running php 5.1.2(cli) on ubuntu dapper.  running php -m | grep php-gtk doesn't returning anything. i've enabled the extension in php.ini  (extension=php_gtk2.so)  any ideas about this? i need to have this up and running to get my project going.
thanks much
btw hope this is the correct forum


The "php_gtk.so" file should should also be put in the directory listed as the "extension_dir" in your php.ini. There are demos in the "demos" directory that you can try running afterwards.

#3 djcasp

djcasp
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 September 2006 - 11:05 PM

thanks much i needed to add the php_gtk2.so to the php.ini in my CLI folder not my apache2 folder and then specify the location of the extension dir.  in a follow up question where would i change what directory apache looks in for php.ini? right now its looking in my cli folder and i would like to change that if possible.  thanks for your help.

#4 shoz

shoz
  • Staff Alumni
  • Advanced Member
  • 600 posts

Posted 28 September 2006 - 01:45 AM

thanks much i needed to add the php_gtk2.so to the php.ini in my CLI folder not my apache2 folder and then specify the location of the extension dir.  in a follow up question where would i change what directory apache looks in for php.ini? right now its looking in my cli folder and i would like to change that if possible.  thanks for your help.


If you're using Apache 2 you can use the "PHPIniDir" directive to change it.

httpd.conf
PHPIniDir "/path/to/dir/"

You can also recompile. ie reconfigure with "--with-config-file-path=/path/to/dir".

Setting the environment variable PHPRC should also be an option, but I haven't gotten it to work.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users