Compile PHP with GD and IMAP

Hello,
I want to use GD and IMAP functions in PHP.
PHP Version 5.3.3
But Apple doesn't compile those functions in the default setup.
Who can help me to install the functions, or can tell me where i can find a manual?
Tnkx!

I've got imap installed.
1. Grab this file from my dropbox: http://dl.dropbox.com/u/8756757/imap.so
2. Now move it to the following directory: /usr/lib/php/extensions/no-debug-non-zts-20090626/
3. Then just edit /etc/php.ini and under the extension commands towards the bottom add this line:
extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/imap.so
For the GD, here is a link to a pdf tutorial which will tell you all the steps to do for it:
http://docs.google.com/viewer?a=v&q=cache:jh1vwDhHBBIJ:downloads.topicdesk.com/d ocs/AddingGD2_to_PHP_on_OS_X_Server_10_5_Leopard.pdfadding+gd2+to+php+os+xserver&hl=en&gl=us&pid=bl&srcid=ADGEESj-au1neHxRQ_y6WXStCnuXZHPDayNb5z3W9o3JuMA9 4gEB9Ppp3946o5jed1IfA5Tsy5lR9xWKdakYVxa7zG7L7fy-uSZrvrdHJwh1KPk3g1QkfDkIMKO0Mj7s 4W8OJxUWw0zz&sig=AHIEtbTxKgQtrOR52onsNE6j1JVb2CabQ

Similar Messages

  • Compiling PHP with SOAP/Iconv/OpenSSL support

    Hi,
    I'm not sure if this is the best place for this but the other topics seem even less related.
    I'm trying to compile PHP with SOAP and SSL on a Mac for use with Salesforce.com (it works without any issues on Gentoo and RedHat). Anytime I try to connect I get an invalid SOAP header error. It seems to be happening because the Salesforce SOAP server requires SSL connections and I don't have SSL enabled, but it's hard to backtrace. Regardless, I can't get SSL or iconv support working.
    I've installed OpenSSL both from Macports and from source using the default ./config options, neither method worked. It may be related to some issues I'm having getting iconv working as well (which I also can't seem to get right, it's installed via Macports).
    Here's my PHP configure, if anyone can let me in on what I'm doing wrong that would be great!!! Thanks in advance!
    root# MACOSXDEPLOYMENTTARGET=10.5 \
    CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" \
    CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" \
    CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" \
    LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bindatload"
    root# ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info \
    --with-apxs2=/usr/sbin/apxs \
    --with-config-file-path=/etc \
    --sysconfdir=/private/etc \
    --enable-cli \
    --with-curl=/opt/local \
    --enable-ftp \
    --enable-mbstring \
    --enable-mbregex \
    --enable-sockets \
    --with-ldap=/usr \
    --with-kerberos=/usr \
    --with-mime-magic=/etc/apache2/magic \
    --with-zlib-dir=/usr \
    --with-xmlrpc \
    --with-xsl=/usr \
    --with-iconv=shared,/opt/local \
    --with-openssl=shared,/opt/local \
    --with-gd \
    --with-png-dir=/usr/X11R6 \
    --with-xpm-dir=/usr/X11R6 \
    --with-jpeg-dir=/opt/local \
    --enable-exif \
    --with-freetype-dir=/opt/local \
    --with-t1lib=/opt/local \
    --enable-pdo \
    --with-pdo-mysql \
    --with-mysql-sock=/var/mysql \
    --with-mysqli=/usr/bin/mysql_config \
    --with-mysql=/usr/local/mysql \
    --with-iodbc=/usr \
    --with-curl \
    --with-config-file-path=/etc \
    --sysconfdir=/private/etc \
    --enable-soap
    Message was edited by: mkenney - bad grammar

    mkenney wrote:
    Hi,
    I'm not sure if this is the best place for this but the other topics seem even less related.
    Welcome to Apple Discussions:
    Use our Unix forum here:
    http://discussions.apple.com/forum.jspa?forumID=735
    (yes, it's a tad hidden )
    Message was edited by: nerowolfe

  • Can not compile php with "-with-oracle=/usr/local/oracle"

    I work on Linux engine with a x86_64 architecture and use Oracle 10g 10.2.0.1 client for x86_64 linux
    so - when i try to compile php with the oracle argument (-with-oracle=/usr/local/oracle) i get everytime the same error:
    checking Oracle version... configure: error: Oracle needed libraries not found
    I think, maybe i have a problem because configure not found my "64 bit libraries"...
    Can someone help me? I am realy helpless...
    thx

    Did you really want the obsolete "oracle" driver - why not use --with-oci8?
    The user comments in http://www.php.net/oci8 have some good info on 64bit configuration.

  • Compiling PHP with MySQL

    Hello all,
    I am having trouble compiling php 5.2 (also tried 5.3). This is my configure line:
    =======
    ./configure with-apxs2=/usr/local/apache2/bin/apxs with-mysql=/opt/mysql/mysql
    =======
    When I run "make", I get the following error:
    =======
    Undefined first referenced
    symbol in file
    mysql_set_character_set ext/mysql/php_mysql.o
    ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
    collect2: ld returned 1 exit status
    *** Error code 1
    make: Fatal error: Command failed for target `sapi/cli/php'
    =======
    Here are my machine details:
    =======
    @[machine-name]-/usr/local/php5.2 # uname -a
    SunOS [machine-name] 5.10 Generic_138889-03 i86pc i386 i86pc Solaris
    @[machine-name]-/usr/local/php5.2 # isainfo -kv
    64-bit amd64 kernel modules
    =======
    PHP compiles fine when I do it without MySQL. Any assistance is greatly appreciated.
    Please let me know if you need additional information.
    Thank you.
    -Ryan

    Hi,
    first of all please mind that PHP 5.2 is out of support by the PHP developers on php.net. To receive bug fixes petc. you should use PHP 5.3.
    Secondly it is worth noticing that there are three function libraries (extensions) which allow accessing the MySQL database. One is the classic "mysql" extension, one is called mysqli, with "i" as in improved, and a driver for the PDO database abstraction - PDO_mysql. You are only activating one of these, in most situations you want all three of them gor maximum application compatibility.
    Now with PHP 5.3 PHP bundles an implementation complete of the MySQL Client functionality. So linking against a local installation is not needed. This implementation is called mysqlnd - MySQL native driver.
    To build w/ mysqlnd and all three function libraries use a configure line like this:
    ./configure with-apxs2=/usr/local/apache2/bin/apxs with-mysql=mysqlnd with-mysqli=mysqlnd with-pdo-mysql=mysqlnd
    If you have a strong reason for 5.2 or using libmysql I'd need more information, like which version of mysql was installed. Was it self-compiled or binaries from mysql.com etc. But I hope the above is fine.
    johannes

  • Compiling PHP with IMAP enabled

    I am trying to run software that requires the IMAP module of PHP enabled. I don't see a module in Server Admin that I can simply turn on. What options do I have for enabling the IMAP module of PHP on Mac OS 10.5 server?
    Thanks in advance!

    Hi,
    first of all please mind that PHP 5.2 is out of support by the PHP developers on php.net. To receive bug fixes petc. you should use PHP 5.3.
    Secondly it is worth noticing that there are three function libraries (extensions) which allow accessing the MySQL database. One is the classic "mysql" extension, one is called mysqli, with "i" as in improved, and a driver for the PDO database abstraction - PDO_mysql. You are only activating one of these, in most situations you want all three of them gor maximum application compatibility.
    Now with PHP 5.3 PHP bundles an implementation complete of the MySQL Client functionality. So linking against a local installation is not needed. This implementation is called mysqlnd - MySQL native driver.
    To build w/ mysqlnd and all three function libraries use a configure line like this:
    ./configure with-apxs2=/usr/local/apache2/bin/apxs with-mysql=mysqlnd with-mysqli=mysqlnd with-pdo-mysql=mysqlnd
    If you have a strong reason for 5.2 or using libmysql I'd need more information, like which version of mysql was installed. Was it self-compiled or binaries from mysql.com etc. But I hope the above is fine.
    johannes

  • Compiler bug with generics and private inner classes

    There appears to be a bug in the sun java compiler. This problem was reported against eclipse and the developers their concluded that it must be a problem with javac.
    Idea also seems to compile the example below. I couldn't find a bug report in the sun bug database. Can somebody tell me if this is a bug in javac and if there is a bug report for it.
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=185422
    public class Foo <T>{
    private T myT;
    public T getT() {
    return myT;
    public void setT(T aT) {
    myT = aT;
    public class Bar extends Foo<Bar.Baz> {
    public static void main(String[] args) {
    Bar myBar = new Bar();
    myBar.setT(new Baz());
    System.out.println(myBar.getT().toString());
    private static class Baz {
    @Override
    public String toString() {
    return "Baz";
    Eclipse compiles and runs the code even though the Baz inner class is private.
    javac reports:
    Bar.java:1: Bar.Baz has private access in Bar
    public class Bar extends Foo<Bar.Baz>
    ^
    1 error

    As I said in my original post its not just eclipse that thinks the code snippet is compilable. IntelliJ Idea also parses it without complaining. I haven't looked at the java language spec but intuitively I see no reason why the code should not compile. I don't think eclipse submitting bug reports to sun has anything to do with courage. I would guess they just couldn't be bothered.

  • Getting compile error with VS2013 and tuxedo12.1.1

    I'm trying to upgrade our technology tools and trying to compile our application with VisualStudio2013.on a Windows 2012 server.
    utilizing  Tuxedo12c (12.1.1 for 32bit)
    and Oracle 12c.
    I get this error which is perplexing
    CORBA::Object_ptr TP::create_active_object_reference(const char *,const char *,Tobj_Servant)' : cannot convert argument 3 from 'DataExchangeQueueImpl *' to 'Tobj_Servant'
              Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    this same code builds on a machine with tuxedo11gR3 abd VS2010.
    Here is code segment
    DataExchangeQueue_ptr DataExchangeServiceImpl::getSendQueue (const char * applicationId)
      CTraceCallStack clsFunctionTracer("DataExchangeServiceImpl::getSendQueue");
        DataExchangeQueue_ptr rc;
        try
            FTRACE(CTrace::TRACE_HIF_DIAG, "ApplicationID=(%s)", applicationId);
                std::string applId(applicationId);
            FTRACE(CTrace::TRACE_HIF_DIAG, "Retrieving Send Queue from the DESServant");
               IQueue* sendQueue = impl_->getSendQueue();
           FTRACE(CTrace::TRACE_HIF_DIAG, "Dynamically Allocating DataExchangeQueueImpl object");
                   char* oid = new char[strlen(applicationId) + 7];
                   sprintf(oid, "%s_SENDQ\0", applicationId);
                   DataExchangeQueueImpl* qImpl= new DataExchangeQueueImpl(sendQueue, oid);
         FTRACE(CTrace::TRACE_HIF_DIAG, "Creating active object reference");
              CORBA::Object_var tempObject = TP::create_active_object_reference(_tc_DataExchangeQueue->id(),
                                                                                  oid,
                                                                                  qImpl);
            rc = DataExchangeQueue::_narrow(tempObject);
            CORBA::release(tempObject);
            delete [] oid;
        catch(...)
            FTRACE(CTrace::TRACE_HIF_DIAG, "*** Caught unknown exception");
            throw TobjS::ApplicationProblem();
        return rc;

    Hi,
    Unfortunately Microsoft is not particularly helpful, forgiving, or backward compatible when it comes to Visual Studio releases.  Oracle has not yet released a version of Tuxedo that is compatible with VS2013.  If VS2013 is something you absolutely need, then I suggest submitting a support request through My Oracle Support asking for a Tuxedo 12.1.1 kit that supports VS2013.  You might also submit a request to Microsoft and ask them to stop breaking compatibility between releases!  :-)
    Regarding the specific error above, it looks as though you should probably try a reinterpret_cast, although it has been a long time since I played with CORBA.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Using PHP with Dreamweaver and Contribute

    I work for a small to medium government agency and we are re-vamping our website. Money and staff are very minimal here, so any hope of one or two full-time people managing the entire website, or of purchasing a content management system, are totally out of the question.
    My question is: for a group of people that are capable of using either Adobe Contribute or Dreamweaver in Design View only, are there any disadvantages or problems with using PHP?
    Here's more detail: In our situation, we really don't have the choice of editing straight HTML code, since many of our users would not be capable of doing so. If we could afford a full-time web person, that would be an option, but that's not possible at this point. Some of our users are going to be limited to using Adobe Contribute as well, which is a simpler option for some of the less-experienced users. Nonetheless we want our site to have a professional and consistent look, so  a technology like PHP would allow us to repeat content across many websites. By the way, that's all we'd be using PHP for as far as I know; just to enable me to edit a single page and thus change the navigation content across the whole site.
    Does anyone know of a reason why we couldn't build the site using very simple, limited PHP and allow people to edit it using Dreamweaver design view and Adobe Contribute?
    Thanks for any thoughts or suggestions that you can provide!
    P.S. We have also considered Dreamweaver templates, and so far that isn't working, due to the multi-login setup that we have.
    P.S.S. Although I do decently in HTML and CSS and a teeny bit of JS, I know nearly nothing about PHP, other than this:  <?php include("header.php"); ?>

    You can use that extension if you like. You need to make sure that your page that has the SSI have an extension that will process the scripts as mentioned above.
    .shtml, .php
    I always name my SSI so I know that they are includes.
    header.inc.html
    header.inc.php
    header.inc.txt as examples.
    If you are using PHP, then it should process the includes.
    A good simple test is to add a SSI to a page.
    Do something simple like.
    <p>Welcome to our website</p>
    Name it welcome.inc.php
    Then include it in a page, upload it to the webserver and visit the page.
    I am using contribute for people to update areas of our website (hate it) and I manage the overall website myself.

  • Compile Project with Maven and Crystal Reports dependencies

    Hi.
    I'd like to build a java project with maven. That project uses Crystal Reports.  I have added all Crystal Reports jar files in the folder lib (from the runtime download) to my maven dependencies. But i get always the following error message.
    The import com.crystaldecisions.ReportViewer cannot be resolved
    in that package is the ReportViewerBean.class an so i get also the following message.
    ReportViewerBean cannot be resolved
    I tried several different ways with no success.
    im looking foreward for your advice.
    thanks.
    Edited by: hansmeier_de on Aug 25, 2010 11:20 AM

    did you list them in the dependencies in your pom file?

  • Unable to compile PHP on pSeries AIX 5.1

    Hello, I have Oracle 9.2 installed and running ok.
    When I try to compile PHP with oci8 support, this is what I get:
    nd/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lintl -lgdbm -lm -ldl -lm -lodm -lbsd_r -lld -lperfstat -lclntsh -o sapi/cli/php
    ar: 0707-101 . is not a valid flag.
    make: *** [libphp4.la] Error 1
    make: *** Waiting for unfinished jobs....
    ld: 0711-317 ERROR: Undefined symbol: .OCIEnvInit
    ld: 0711-317 ERROR: Undefined symbol: .OCIHandleAlloc
    ld: 0711-317 ERROR: Undefined symbol: .OCIInitialize
    ld: 0711-317 ERROR: Undefined symbol: .OCIHandleFree
    ld: 0711-317 ERROR: Undefined symbol: .OCITransRollback
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorFree
    ld: 0711-317 ERROR: Undefined symbol: .OCIErrorGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerVersion
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorAlloc
    ld: 0711-317 ERROR: Undefined symbol: .OCIAttrSet
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtPrepare
    ld: 0711-317 ERROR: Undefined symbol: .OCIAttrGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtExecute
    ld: 0711-317 ERROR: Undefined symbol: .OCIParamGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIDefineByPos
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtFetch
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtSetPieceInfo
    ld: 0711-317 ERROR: Undefined symbol: .OCILobGetLength
    ld: 0711-317 ERROR: Undefined symbol: .OCILobRead
    ld: 0711-317 ERROR: Undefined symbol: .OCILobFileClose
    ld: 0711-317 ERROR: Undefined symbol: .OCILobFileOpen
    ld: 0711-317 ERROR: Undefined symbol: .OCISessionBegin
    ld: 0711-317 ERROR: Undefined symbol: .OCISessionEnd
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerAttach
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerDetach
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindByName
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindObject
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindDynamic
    ld: 0711-317 ERROR: Undefined symbol: .OCILobWrite
    ld: 0711-317 ERROR: Undefined symbol: .OCITransCommit
    ld: 0711-317 ERROR: Undefined symbol: .OCIPasswordChange
    ld: 0711-317 ERROR: Undefined symbol: .OCIObjectFree
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAppend
    ld: 0711-317 ERROR: Undefined symbol: .OCINumberFromReal
    ld: 0711-317 ERROR: Undefined symbol: .OCIDateFromText
    ld: 0711-317 ERROR: Undefined symbol: .OCIStringAssignText
    ld: 0711-317 ERROR: Undefined symbol: .OCICollGetElem
    ld: 0711-317 ERROR: Undefined symbol: .OCINumberToReal
    ld: 0711-317 ERROR: Undefined symbol: .OCIDateToText
    ld: 0711-317 ERROR: Undefined symbol: .OCIStringPtr
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAssign
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAssignElem
    ld: 0711-317 ERROR: Undefined symbol: .OCICollSize
    ld: 0711-317 ERROR: Undefined symbol: .OCICollMax
    ld: 0711-317 ERROR: Undefined symbol: .OCICollTrim
    ld: 0711-317 ERROR: Undefined symbol: .OCITypeByName
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescribeAny
    ld: 0711-317 ERROR: Undefined symbol: .OCITypeByRef
    ld: 0711-317 ERROR: Undefined symbol: .OCIObjectNew
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1
    I am using gcc 3.3.3.
    ./configure output:
    checking for Oracle-OCI8 support... yes
    checking Oracle Install-Dir... /oracle/product/920
    checking Oracle version... 8.1
    checking for OCILobIsTemporary in -lclntsh... (cached) no
    checking for OCILobIsTemporary in -locijdbc8... (cached) no
    I already type gencltsh as user oracle. Perhaps this is a problem with PHP trying to read 64 bit libs while running on 32 bit mode ? Anyone has been thru this ?
    Any hints ?
    Thanks,
    Álvaro

    Maybe my bug report http://bugs.php.net/bug.php?id=31345
    can help you, and also
    http://bugs.php.net/bug.php?id=31001
    because i remembre have same message when I was searching for my problems
    Regards

  • Trouble compiling PHP extension w/ threaded PHP 5.2.4

    Hello,
    I'm having some trouble installing the Berkeley DB XML PHP extension on Debian Sarge 3.1.
    First, I installed Berkeley DB XML 2.3.10 using the buildall.sh script into /usr/local/dbxml-2.3.10/.
    Then, I downloaded PHP 5.2.4 source code, compiled it using pthreads (configure --enable-maintainer-zts) and installed it in /usr/local/php-5.2.4/.
    I've built the db4.so extension and it seems to work (verified by running the example simple_counter.php script and seeing that the counter is incremented).
    However, building the Berkeley DB XML extension fails with the following error:
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp: In function `void zim_XmlEventReaderToWriter_XmlEventReaderToWriter(int, zval*, zval**, zval*, int, void***)':
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp:27: error: parse error before `*' token
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp:27: error: `reader' declared as reference but not initialized
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp:29: error: parse error before `*' token
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp:29: error: `writer' declared as reference but not initialized
    It's solved by changing TSRMLS_DC to TSRMLS_CC in these two lines:
    26 XmlEventReader &reader =
    27 php_dbxml_get_XmlEventReader_object_pointer(rval TSRMLS_CC);
    28 XmlEventWriter &writer =
    29 php_dbxml_get_XmlEventWriter_object_pointer(wval TSRMLS_CC);
    However, there are still errors:
    /usr/local/php-5.2.4/include/php/Zend/zend_exceptions.h: In function `void php_dbxml_init_exceptions()':
    /usr/local/php-5.2.4/include/php/Zend/zend_exceptions.h:33: error: too few arguments to function `zend_class_entry* zend_exception_get_default(void***)'
    /home/loumz/xspc2/dbxml-2.3.10/dbxml/src/php/php_dbxml_exception.cpp:25: error: at this point in file
    /home/loumz/xspc2/dbxml-2.3.10/dbxml/src/php/php_dbxml_exception.cpp:25: error: `tsrm_ls' undeclared (first use this function)
    /home/loumz/xspc2/dbxml-2.3.10/dbxml/src/php/php_dbxml_exception.cpp:25: error: (Each undeclared identifier is reported only once for each function it appears in.)
    This is because maybe zend_exception_get_default needs the tsrm_ls (what is this anyway? some sort of thread-local storage pointer?)
    OK, but inside the php_dbxml_init_exceptions() there is no pointer so it is fixed with a fetch (also there is another one like that on line 51):
    22 void php_dbxml_init_exceptions()
    23 {
    24 zend_class_entry ce;
    25 TSRMLS_FETCH();
    26 PHP_DBXML_REGISTER_CLASS_WITH_PARENT(XmlException, zend_exception_get_default(TSRMLS_C), php_dbxml_XmlException_dtor);
    49 zval *xml_ex;
    50 TSRMLS_FETCH();
    51 MAKE_STD_ZVAL(xml_ex);
    In php_dbxml_document.cpp there is also use of TSRMLS_DC inside code that leads to errors (Looking at the macro definition I think this is for declarations right?) so we change it.
    80 XmlEventWriter &writer = php_dbxml_get_XmlEventWriter_object_pointer(zv TSRMLS_CC);
    103 XmlEventReader &reader = php_dbxml_get_XmlEventReader_object_pointer(zstr TSRMLS_CC);
    And finally it compiled and worked (judging by the examples anyway).
    Please tell me if I did something wrong along the way. Is it better to compile PHP without ZTS and compile BDB XML without pthreads to avoid this mess?

    It seems like that was not the end of the troubles. When executing examples/10.php php crashes with a relocation error saying that it can't find php_db4_getDbEnvFromObj (which should be in the db4.so php module).
    OK, so I grab the g++ linking command that the libtool invocation spits out and add the installed db4.so to the object files and the extension diretory to rpath (I don't know if I can use the config.m4 because the db4.so has no lib prefix i.e. libdb4.so). Now ldd reports that it's linking correctly to the installed db4.so so I try again. The same relocation error pops up.
    When I checked, it seems like db4.so has C++ mangled symbol of php_db4_getDbEnvFromObj(_zval_struct*, void***), but not the C form, and dbxml.so is expecting the C form because it includes php_db4.h inside extern "C".
    This is probably because while the header php_db4.h is included within extern "C" {} within the db4.cpp impl file, the prototypes don't match (there is one additional param in the impl) between the ones in the header and the ones in the .cpp file because of the threading additions...
    Why do I get the feeling the compilation w/ threaded PHP has not been tested at all :-(. I give up, I'm compiling a nonthreaded version of PHP instead. For my use, this shouldn't matter anyway, but it would be nice if it was possible (or at least say it's not quite tested in the README file).

  • PHP with JAVA

    I was working on one of the most common examples of getting system date, system property etc by calling Date and System classes of java from a PHP script. I have set up apache as the webserver on RedHat linux 7.2. Compiled PHP for java and i believe its properly compiled since it doesn't give error like "Fatal error: Cannot instantiate non-existent class:"
    When i try to access the script using the browser, the script itself is displayed instead of the output of the script.

    Is the problem with java or php?
    Check your apache.conf (or httpd.conf) settings.
    Find the lines and remove # if any.
    LoadModule php4_module libexec/libphp4.so
    AddModule mod_php4.c
    AddType application/x-httpd-php .php
    For further help try php lists.

  • Php with xsl on Sun Java Web Server 7.0

    Hi anyone,
    i installed php as nsapi via phppack. Now i need xsl support in php. I've tryed to compile php with the following line (php 5.2.6):
    ./configure with-nsapi=/export/netscape_71 enable-force-cgi-redirect with-gettext with-zlib --with-xsl=/usr/lib64/php5/extensions
    magnus.conf, obj.conf and mime.types are assimilate to this article:
    http://developers.sun.com/webtier/reference/techart/php2.html
    After compiling, i copy the libphp5.so in the .plugins/php/ dir an restart the webserver.
    He stops with this message:
    failure: CORE2253: Error running Init function load-modules: dlopen of /export/netscape_71/plugins/php/libphp5.so failed (/export/netscape_71/plugins/php/libphp5.so: wrong ELF class: ELFCLASS64)
    failure: server initialization failed
    What's going wrong?
    How i get xsl Support on Sun Java Web Server?
    thanks!

    essential wrote:
    ./configure with-nsapi=/export/netscape_71 enable-force-cgi-redirect with-gettext with-zlib --with-xsl=/usr/lib64/php5/extensionsYou are pointing to 64-bit library path. Change it to 32-bit library path.
    failure: CORE2253: Error running Init function load-modules: dlopen of /export/netscape_71/plugins/php/libphp5.so failed (/export/netscape_71/plugins/php/libphp5.so: wrong ELF class: ELFCLASS64)
    failure: server initialization failedThis means that it expects a 32-bit library but it found a 64-bit one.

  • 10.8 client  and 10.6 server email pop and imap problem

    Hi Guys ,
    My problem is 10.8 client and 10.6 server.
    10.6 server have email server running (pop and imap), when i configure same email account (pop) on 10.7 machine  and 10.8 machines , 10.7 machine works , but 10.8 pop does not working
    let me explaing further :
    when i use 10.8 mail application to  setup pop mail account it does not connecting . But  i used the same account to connect imap it connect on 10.8 machine.
    the same mail account connect to another 10.7 machine  with POP and IMAP for testing reason , it works with out any issues
    POP server is running and this email account's users profile enable POP and IMAP mail settings.
    thanks in advance.

    Try checking the Authentication Type for the POP account.  It is located in Mail > Preferences > Accounts > selected account > Advanced
    10.8 tends to use Apple Token.  I think you will need to use a type of MD5 Challenge-Response or Password.

  • Compiling Apache 2.2 and php 5.2 from source on Arch

    Hi there
    Wanting to compile Apache 2 with PHP 5 on my Arch server. I figure this must be frequently done by people out there wanting more control over how their servers are setup, and was wondering if anyone had some good documentation for this? If none exists I'm keen to work on putting it up on the Arch Wiki.
    I've compiled apache httpd-2.2.16 from source already, and have it running nicely.
    Apache compile options were:
    ./configure --prefix=/usr/local/apache \
    --enable-rewrite --enable-ssl --enable-so \
    --enable-mime-magic --enable-suexec \
    --enable-static-rotatelogs \
    --disable-imap --disable-userdir --enable-cgi \
    --disable-dav \
    --disable-proxy-connect --disable-proxy-ftp --disable-proxy-http --disable-proxy \
    --disable-authnz-ldap
    $ /usr/local/apache/bin/httpd -Vvv
    Server version: Apache/2.2.16 (Unix)
    Server built: Sep 6 2010 06:10:41
    Server's Module Magic Number: 20051115:24
    Server loaded: APR 1.4.2, APR-Util 1.3.9
    Compiled using: APR 1.4.2, APR-Util 1.3.9
    Architecture: 32-bit
    Server MPM: Prefork
    threaded: no
    forked: yes (variable process count)
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D DYNAMIC_MODULE_LIMIT=128
    -D HTTPD_ROOT="/usr/local/apache"
    -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
    -D DEFAULT_PIDLOG="logs/httpd.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="logs/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
    -D SERVER_CONFIG_FILE="conf/httpd.conf"
    Now installing PHP from source is proving to not work out so easily.
    root@server: ~/source-programs/apache/httpd-2.2.16/php-5.2.14
    $ ./configure with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php
    configure: warning: with-apxs2=/usr/local/apache/bin/apxs: invalid host type
    loading cache ./config.cache
    checking for Cygwin environment... (cached) no
    checking for mingw32 environment... (cached) no
    checking for egrep... (cached) grep -E
    checking for a sed that does not truncate output... (cached) /bin/sed
    checking host system type... with-apxs2=/usr/local/apache/bin/apxs
    checking target system type... with-apxs2=/usr/local/apache/bin/apxs
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking how to run the C preprocessor... (cached) gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether gcc and cc understand -c and -o together... (cached) yes
    checking how to run the C preprocessor... gcc -E
    checking for AIX... no
    checking whether ln -s works... (cached) yes
    checking for system library directory... lib
    checking whether to enable runpaths... yes
    checking if compiler supports -R... (cached) no
    checking if compiler supports -Wl,-rpath,... (cached) yes
    checking for gawk... (cached) gawk
    checking for bison... (cached) bison -y
    checking for bison version... (cached) invalid
    configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
    checking for flex... (cached) flex
    checking for yywrap in -lfl... (cached) yes
    checking lex output file root... (cached) lex.yy
    checking whether yytext is a pointer... (cached) yes
    checking for working const... (cached) yes
    checking for flex version... (cached) invalid
    configure: warning: flex versions supported for regeneration of the Zend/PHP parsers: 2.5.4 (found: )
    checking for re2c... no
    configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking whether to force non-PIC code in shared modules... no
    checking whether /dev/urandom exists... yes
    checking for pthreads_cflags... (cached) -pthread
    checking for pthreads_lib... (cached)
    Configuring SAPI modules
    checking for AOLserver support... no
    checking for Apache 1.x module support via DSO through APXS... no
    checking for Apache 1.x module support... no
    checking whether to enable Apache charset compatibility option... no
    checking for Apache 2.0 filter-module support via DSO through APXS... no
    checking for Apache 2.0 handler-module support via DSO through APXS... no
    checking for Apache 1.x (hooks) module support via DSO through APXS... no
    checking for Apache 1.x (hooks) module support... no
    checking whether to enable Apache charset compatibility option... no
    I end up with the PHP bin files, but just can't get the module to compile.
    $ /usr/local/apache/php/bin/php -v     
    PHP 5.2.14 (cli) (built: Sep  6 2010 05:37:45)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    Have tried to make Apache execute php bin via CGI without any luck, but I think I'd rather work on compiling PHP into a module properly.
    Any help or pointers in the right direction would be greatly appreciated.
    Thanks
    Last edited by craig_nz (2010-09-08 08:07:13)

    Thanks for this!
    Using:
    ./configure \
    --with-apxs2=/usr/local/apache/bin/apxs \
    --prefix=/usr/local/apache/php \
    --disable-cgi
    --enable-so \
    --enable-rewrite \
    make
    libtool --finish /root/source-programs/apache/httpd-2.2.16/php-5.2.14/libs
    In /usr/local/apache/modules I get:
    libphp5.a  libphp5.la
    No libphp5.so yet but closer.. Also looking at how I can use ABS just to compile php.

Maybe you are looking for

  • How to tigger SISCSO01 Idoc for sales order confirmation

    Hello Experts, I have a requirement where in I need to send the sales order confirmation as an IDoc. I need to use SISCSO01 IDoc type for that. Can any please tell me how to configure SAP to trigger this IDoc when ever a sales order is confirmed. In

  • Uploading Access split database to Sharepoint Site.

    Hi, I'm having trouble finding instructions on how exactly you would upload a split database to SharePoint. If I split my database locally i can't then move the back end. I want to upload my the back end of the Access database to "mysitesname".sharep

  • SSL client authentication: how to get the cert used in call?

    Hi ! I'd like to authenticate my clients based on their certificate. Unfortunately, there doesn't seem to be an easy way to get the client certificate that was used for the current method call. I am thinking of something like this: SomeClass dosometh

  • Creating a fill-in calculating form

    I am trying to create a fill-in form that will calculate figures (addition, subtraction). It's a 3 column form, with the last column as a total column. I would like it to calculate automatically.  This is going to be a network form.  Is this possible

  • 9.3.1 to ????

    All, At present on 9.3.1 with EPMA As Corporate is moving to IE8, I have to upgrade to Mixed Release(9.3.3 all products except SharedService/EPMA/WorkSpace to 11.1.1.3) or all products to 11.1.1.3 (11.1.1.3 IE8 included all the products we use) Which