Results 1 to 8 of 8

Thread: Adding a PHP Module

  1. #1
    Member
    Join Date
    Aug 2007
    Posts
    5

    Angry Adding a PHP Module

    Hi,

    Sorry if this is answered somewhere else, but I'm tired with browsing and browsing and searching the 'net and this forum and didn't find anything to answer correctly my question...

    I'm trying to add a simple "--enable-soap" and "--with-xsl" options to the php configuration, but I can't... I tried talking to a lot of people and even your (very small...) http://www.cpanel.net/support/docs/easyapache.htma documentation, but the answers don't work.

    This is the thing:

    I have the /var/cpanel/easyapache/rawopts/all_php5 file with the content:

    --enable-soap
    --with-xsl

    I tried with "soap=enable", "soap=yes" and a lot more weird combinations, but everytime I run Apache Update from WHM it simply doesn't compile with these options...

    As in the documentation, I created the easy/apache directory, because the only one I had was the easyapache, witch I don't find anywhere in your documentation, so I'm not sure if now this works differently or not...

    Please be kind enough to provide me a quick answer that works

    I'm running WHM 11.2.0 cPanel 11.10.0-R16448 in a FEDORA 6 i686 Virtual Dedicated Server

    Let me know if you need anymore info.

    Regards,
    WLH

  2. #2
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,143
    cPanel/WHM Access Level

    Root Administrator

    Default

    That documentation is specific to the easyapache available in EDGE (sometimes called EA3).

    To do this with easyapache in other trees requires you to call /scripts/easyapache like this:

    Code:
    FULL_CUSTOM_PHP_FLAGS="--enable-soap" /scripts/easyapache

  3. #3
    Member
    Join Date
    Aug 2007
    Posts
    5

    Angry Didn't work

    Sorry but that didn't work... where should I go to then?

  4. #4
    Member twhiting9275's Avatar
    Join Date
    Sep 2002
    Posts
    368
    cPanel/WHM Access Level

    Root Administrator

    Default

    A real quick way to fix this:
    Firstly, go to a phpinfo() page on the server, grab the configuration lines (they'll be huge).

    Next, download php from it's homepage onto the server

    Now, uncompress php (make sure you have an empty directory for it).

    Now, configure it, as you configured it for cpanel (remember those configuration lines?), and add --enable-soap and --with-xsl .
    compile it (make, make system, make install)
    restart http

    You should be good to go.
    Linux Tech Networks: Reliable Server Administration and Monitoring since 2002

  5. #5
    Member
    Join Date
    Aug 2007
    Posts
    5

    Question hmm...

    I thought about that, but won't it go berserk with WHM afterwards? will I still be able to run everything smoothly from WHM? (I know everytime I run Apache Update I'll need to redo those steps you mentioned, but I'm talking about everything else)

  6. #6
    Member twhiting9275's Avatar
    Join Date
    Sep 2002
    Posts
    368
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by weblivehosting View Post
    I thought about that, but won't it go berserk with WHM afterwards? will I still be able to run everything smoothly from WHM? (I know everytime I run Apache Update I'll need to redo those steps you mentioned, but I'm talking about everything else)
    Nope
    I've been building php manually for years now, and it hasn't affected CP at all.
    Linux Tech Networks: Reliable Server Administration and Monitoring since 2002

  7. #7
    Member
    Join Date
    Aug 2007
    Posts
    5

    Default little help

    And does PHP need to be uncompressed to a specific folder? or can it be anywhere?

  8. #8
    Member
    Join Date
    Aug 2007
    Posts
    5

    Default looks fine

    Well, I uncompressed it to a folder "anywhere" and it worked. Looks fine now, no errors and everything is running smoothly... Thanks!

    If I ever come to have a problem again, I'll just hunt you down!! Thanks again

Similar Threads

  1. Adding Module to Apache
    By Solokron in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 09-22-2008, 09:52 AM
  2. adding custom module to uptade script
    By ramil in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 07-19-2006, 10:42 AM
  3. Adding 3rd party addon module
    By aarmstrong in forum cPanel Developers
    Replies: 1
    Last Post: 07-11-2006, 06:03 PM
  4. Install PHP Zip module and zziplib - Compile PHP individually
    By Arvand in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-16-2003, 06:04 PM
  5. Adding Perl Module - Error Message?
    By torwill in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-13-2002, 11:36 AM