How to make my php support ftp and mssql functions on the Solaris 2.7 platform?!

I want my system support ftp functions, but with phpinfo() , it show nothing in the 

Additional Modules column. How can I compile my php4.0.4 on the Solaris 2.7 platform?!

Pls. help me!!!

    I follow the steps to install my system:

    cd /usr/src/apache_1.3.12
    ./configure --prefix=/usr/local/apache
    cd ../php-4.0.4pl1
    ./configure --with-sybase-ct=/usr/local/freetds --with-apache=../apache_1.3.12 --enable-track-vars --enable-ftp
    make
    make install
    cd ../apache_1.3.12
    ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libmodphp4.a

    make

    but when I make my apache, it worked error. The error messages are the following:


    gcc -c -I../../os/unix -I../../include -DSOLARIS2=270 -DUSE_EXPAT -I../../lib
    /expat-lite -DNO_DL_NEEDED ../../apaci mod_php4.c
    mod_php4.c:28: zend.h: Not find the file or directory
    mod_php4.c:29: php.h: Not find the file or directory
    mod_php4.c:30: php_variables.h: Not find the file or directory
    mod_php4.c:47: php_ini.h: Not find the file or directory
    mod_php4.c:48: php_globals.h: Not find the file or directory
    mod_php4.c:49: SAPI.h: Not find the file or directory
    mod_php4.c:50: php_main.h: Not find the file or directory
    mod_php4.c:52: zend_compile.h: Not find the file or directory
    mod_php4.c:53: zend_execute.h: Not find the file or directory
    mod_php4.c:54: zend_highlight.h: Not find the file or directory
    mod_php4.c:55: zend_indent.h: Not find the file or directory
    mod_php4.c:57: ext/standard/php_standard.h: Not find the file or directory
    Error code 1
    make: Fatal error: Command failed for target mod_php4.o'
    Current working directory /backup/apache_1.3.12/src/modules/php4
    *** Error code 1
    make: Fatal error: Command failed for target
    all'
    Current working directory /backup/apache_1.3.12/src/modules

    *** Error code 1


    I don't know why..

    Please help me and thanks!!

      a month later

      okay, first of all please do the configure properly ie - use the --prefix and other options at all steps - do not assume that the script will take care of the default locations.
      secondly cc or the c compiler is not available under solaris. try to download the gcc and install it before u proceed. you can obtain gcc as follows
      1. ftp mirrors.xmission.com (login as anonymous)
      2. cd sunfreeeware/sparc/8 (check the right directory)
      3. do a "dir gcc*" and get the relative gcc.
      4. make sure you have a /usr/local/ directory.
      5. gunzip the gcc and issue this command - pkgadd -d gcc-sparc-whatever-file-name

      and gcc will be added to your system. then proceed to install php/apache etc

      cheers,
      nilesh.

        Thank you for your help!!
        But I couldn't install them successfully yet!
        There is GCC in my system Solaris 2.7.

        I found the error was occured when I installed apache with freetds parameters.

        If I delete the freetds options when I install apache, all is ok!

        The following steps worked well:
        1. configure php:
        ./configure --with-apache=../apache_1.3.19 --with-imap=../imap-4.4 --enable-track-vars --enable-ftp
        2. configure apache
        ./configure --prefix=/usr/local/apache --enable-module=so --enable-rule=SHARED_CORE --activate-module=src/modules/php4/libphp4.a

        But I followed the following steps, it worked wrong:
        1. configure & make & make instll php
        ./configure --with-apache=../apache_1.3.19 --with-imap=../imap-4.4 --with-sybase-ct=/usr/local/freetds --enable-track-vars --enable-ftp

        this step worked well.

        2.configure apache
        ./configure --prefix=/usr/local/apache --enable-module=so --enable-rule=SHARED_CORE --activate-module=src/modules/php4/libphp4.a

        this step worked wrong.

        So I think the freetds has some problem, but I don't know how to resolve them!

          Write a Reply...