Jump to content

php-gtk2 installation


Recommended Posts

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
Link to comment
https://forums.phpfreaks.com/topic/22198-php-gtk2-installation/
Share on other sites

[quote author=djcasp link=topic=109644.msg442156#msg442156 date=1159327092]
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
[/quote]

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.
Link to comment
https://forums.phpfreaks.com/topic/22198-php-gtk2-installation/#findComment-99594
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/22198-php-gtk2-installation/#findComment-99940
Share on other sites

[quote author=djcasp link=topic=109644.msg442746#msg442746 date=1159398321]
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.
[/quote]

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

httpd.conf
[code]
PHPIniDir "/path/to/dir/"
[/code]

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.
Link to comment
https://forums.phpfreaks.com/topic/22198-php-gtk2-installation/#findComment-100003
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.