Results 1 to 4 of 4

Thread: Php configuration.

  1. #1
    Join Date
    Feb 2013
    Beans
    9

    Exclamation Php configuration.

    Hello, i have ubuntu 12.04 installed with php 5.3.10 that came with ubuntu, the question is.

    How do i configure this version of php, if it doenst give you the option when its installing?

    Is there some path i should go to run the command ./configure?

    Thank You

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,033
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Php configuration.

    The version in the repositories is a compiled binary. You would only use ./configure if you were compiling your own copy of PHP from the source code.

    The configuration file for PHP is called php.ini. Ubuntu installs separate versions of this file for the Apache PHP module and for the php command-line program. They are in separate directories under /etc/php5.

    If you need to install additional PHP modules to support things like PostgreSQL these are distributed as separated packages with names like php5-pgsql. Run the command "apt-cache search php5-*" to see a list.
    Last edited by SeijiSensei; February 2nd, 2013 at 05:43 PM.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Feb 2013
    Beans
    9

    Re: Php configuration.

    Thank you SeijiSensei, so it means that i cant reconfigure the php to enable XPM support in php5-gd? I read in the php manual, if i want to enable XPM i have to write --with-xpm-dir=DIR in the configuration file (./configure) am i right?


    Quote Originally Posted by SeijiSensei View Post
    The version in the repositories is a compiled binary. You would only use ./configure if you were compiling your own copy of PHP from the source code.

    The configuration file for PHP is called php.ini. Ubuntu installs separate versions of this file for the Apache PHP module and for the php command-line program. They are in separate directories under /etc/php5.

    If you need to install additional PHP modules to support things like PostgreSQL these are distributed as separated packages with names like php5-pgsql. Run the command "apt-cache search php5-*" to see a list.

  4. #4
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,033
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Php configuration.

    It depends on how the php5-gd package was compiled. Luckily for you it appears that XPM support was compiled in by the maintainers, so it should "just work" if you install the php5-gd module with apt-get or the graphical package manager.

    In the vast majority of cases, the packagers compile software with the widest collection of options available. The only omissions I've seen is where something is not covered by an open-source license. (I recall encountering that issue with php-mcrypt some years ago when some of Ron Rivest's algorithms were still patented in the US. When GIFs were still covered by US patents similar problems arose.) You should generally assume everything will work without incident. If it turned out that XPM support was not already included in php5-gd, then you should file a bug report at Launchpad to inform the developers of the omission.
    Last edited by SeijiSensei; February 3rd, 2013 at 08:19 PM.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •