php-install Digest 18 Jul 2003 07:02:33 -0000 Issue 1465

Topics (messages 11291 through 11301):

php binary too big
        11291 by: Bhavin Modi
        11293 by: Yann Larrivee
        11299 by: Michael Mauch

New Member
        11292 by: nsr pergas

Re: php 4.3.2 and apache 1.3.27?
        11294 by: Adam Voigt

Re: Help for PHP Newbie!
        11295 by: Neo Ah Too
        11296 by: Neo Ah Too

Re: httpd.conf  not found
        11297 by: Neo Ah Too

Installation problem
        11298 by: Dinesh Anchan

PHP, Mysql 4.0.13 and HPUX 11.00
        11300 by: Madhu

New User Creation.
        11301 by: Rajendra Kumar

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I tried to compile php 4.3 with apache2 and found out that the binary
(libphp4.so) was almost 7.5MB. Then figured out that I had compiled-in a few
modules(gd,openssl,domxml,bz2,iconv,curl) so I recompiled PHP to make all
the modules shared and still the libphp4.so is almost 6.5MB. I dont
understand why is the binary so fat even with all the modules shared. I
compiled on redhat 8.0.

One more thing I noticed was the mcrypt module(mcrypt.so) when compiled as
shared with PHP is almost double the size then the one compiled separately.
Why is this happening.

Here is my configure command
./configure \
--with-apxs2=/usr/sbin/apxs \
--host=i686-pc-linux-gnu \
--build=i686-pc-linux-gnu \
--target=i686-redhat-linux-gnu \
--prefix=/usr \
--with-layout=GNU \
--with-config-file-path=/etc \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2=shared \
--with-db3=shared \
--with-curl=shared \
--with-dom=shared,/usr \
--with-exec-dir=/usr/bin \
--with-freetype-dir=/usr \
--with-png-dir=/usr \
--with-gd=shared \
--enable-gd-native-ttf \
--with-ttf \
--with-gdbm \
--with-gettext \
--with-iconv=shared \
--with-jpeg-dir=/usr \
--with-openssl=shared \
--with-png \
--with-regex=system \
--with-xml=shared \
--with-expat-dir=/usr \
--with-zlib=shared \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx \
--with-pear=/usr/share/pear \
--with-imap=shared \
--with-imap-ssl \
--with-kerberos=/usr/kerberos \
--with-ldap=shared \
--with-mysql=shared,/usr \
--with-mssql=shared,/usr \
--with-mhash=shared,/usr \
--with-mcrypt=shared,/usr/local \
--enable-ucd-snmp-hack \
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-versioning \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mcal

Thanks

~Bhavin


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 7/14/2003


--- End Message ---
--- Begin Message ---
It's not because it's with shared. It's more because it's with all the
module !

On Thu, 2003-07-17 at 00:24, Bhavin Modi wrote:
> I compiled php 4.3 with apache2 and found out that the binary (libphp4.so)
> was almost 7.5MB. Then figured out that I had compiled in a few
> modules(gd,openssl,domxml,bz2,iconv,curl) so I recompiled PHP to make all
> the modules shared and still the libphp4.so is almost 6.5MB. I dont
> understand why is the binary so fat even with all the modules shared. I
> compiled on a Redhat 8.0 system.
> 
> Here is my configure command
> ./configure \
> --with-apxs2=/usr/sbin/apxs \
> --host=i686-pc-linux-gnu \
> --build=i686-pc-linux-gnu \
> --target=i686-redhat-linux-gnu \
> --prefix=/usr \
> --with-layout=GNU \
> --with-config-file-path=/etc \
> --enable-force-cgi-redirect \
> --disable-debug \
> --enable-pic \
> --disable-rpath \
> --enable-inline-optimization \
> --with-bz2=shared \
> --with-db3=shared \
> --with-curl=shared \
> --with-dom=shared,/usr \
> --with-exec-dir=/usr/bin \
> --with-freetype-dir=/usr \
> --with-png-dir=/usr \
> --with-gd=shared \
> --enable-gd-native-ttf \
> --with-ttf \
> --with-gdbm \
> --with-gettext \
> --with-iconv=shared \
> --with-jpeg-dir=/usr \
> --with-openssl=shared \
> --with-png \
> --with-regex=system \
> --with-xml=shared \
> --with-expat-dir=/usr \
> --with-zlib=shared \
> --enable-bcmath \
> --enable-exif \
> --enable-ftp \
> --enable-magic-quotes \
> --enable-safe-mode \
> --enable-sockets \
> --enable-sysvsem \
> --enable-sysvshm \
> --enable-discard-path \
> --enable-track-vars \
> --enable-trans-sid \
> --enable-wddx \
> --with-pear=/usr/share/pear \
> --with-imap=shared \
> --with-imap-ssl \
> --with-kerberos=/usr/kerberos \
> --with-ldap=shared \
> --with-mysql=shared,/usr \
> --with-mssql=shared,/usr \
> --with-mhash=shared,/usr \
> --with-mcrypt=shared,/usr/local \
> --enable-ucd-snmp-hack \
> --enable-memory-limit \
> --enable-bcmath \
> --enable-shmop \
> --enable-versioning \
> --enable-calendar \
> --enable-dbx \
> --enable-dio \
> --enable-mcal
> 
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.501 / Virus Database: 299 - Release Date: 7/14/2003
> 
> 


--- End Message ---
--- Begin Message ---
Bhavin Modi wrote:

> I compiled php 4.3 with apache2 and found out that the binary (libphp4.so)
> was almost 7.5MB. Then figured out that I had compiled in a few
> modules(gd,openssl,domxml,bz2,iconv,curl) so I recompiled PHP to make all
> the modules shared and still the libphp4.so is almost 6.5MB. I dont
> understand why is the binary so fat even with all the modules shared. I
> compiled on a Redhat 8.0 system.

Did you strip the file ("strip libphp4.so")?

Regards...
                Michael

--- End Message ---
--- Begin Message ---

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail



--- End Message ---
--- Begin Message ---
We run that exact setup on one of the boxes,
zero problems.


On Wed, 2003-07-16 at 15:37, Gedanken wrote:
> I asked my isp to upgrade their 4.1.2 php to 4.3.2 because I am working on 
> a code porting project that I am told 'needs' 4.3.2.  It definitely doesnt 
> seem to work so far with out it... socket code problems. 
> 
> anyway, i sent a note to my admin and he replied with the following 
> (edited by me):
> 
> ---
> 
> We also have Apache 1.3.27 on RedHat 7.3 running on those same webservers 
> and I don't believe that PHP 4.3.2 will run on those versions.  We 
> recently attempted to build a webserver running RedHat 8.0, Apache 2.0, 
> and PHP 4.2.1.  The build failed because the versions of Apache and PHP 
> were unstable together.  
> 
> We plan on consolidating our webservers into one large, powerful server, 
> one which hopefully will be running the latest and greatest versions of 
> apache and php.  If you konw of any successful builds of Redhat, apache 
> and php or if there is a build of php 4.3.2 that will work with Apache 
> 1.3, then I'll be more than happy to upgrade.  
> 
> ---
> 
> what can i tell him?  How is the current 4.3.2 php with apache 1.3.27 and 
> redhat 7.3?
> 
> also, to get into more detail, im not even sure why i need apache.  its 
> not a web based application... its just a little script that opens sockets 
> and polls either other socket apps or other webservers to download pages 
> for me.  its run as a daemon, not executed as a cgi.  in perl lingo (my 
> background), its a script not a cgi.  can i try installing some CLI only 
> version of php and just skip this webserver issue?  seems crazy i am 
> forced to have a webserver installed to install a scripting interpreter 
> that will never use it.
> 
> 
> 
> -- 
> gedanken
-- 
Adam Voigt ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


--- End Message ---
--- Begin Message ---
Continuing with exactly the same server preferences only on Windows XP; why
i was instead prompted for DOWNLOAD the info.php file which contain the
<?php phpinfo(); ?> code.

Just even a link to another related letter will help!
Henry

"Stephen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Sounds like your Apache is not correctly set to pass php files. Heres how
it
> should be done:
>
> Open httpd.conf
>
> Search for "# Dynamic Shared Object (DSO) Support"
> This should show a long list of commented (lines with # in front) lines.
> Scroll to the bottom of the list and add:
>
> LoadModule php4_module C:/server/PHP/php4apache.dll
>
> Ensure that this command actually points to php4apache.dll. Also, you need
> to find and copy php4ts.dll into EXACTLY the same directory as
> php4apache.dll.
>
> If you continue to scroll down, the next session after the "LoadModule"
> lines should be "AddModule". At the bottom of this list, you need to add
the
> line
>
> AddModule mod_php4.c
>
> Okay, so that is php installed, but next you need to set it so that .php
> files are run using php! To do this, search for
> "# AddType allows you to tweak mime.types without actually editing it, or
> to"
> You may already have a short list of options here, all you need to add is
>
> AddType application/x-httpd-php .php
>
> This tells Apache that all files that end in .php should be parsed using
> php. Your files should now be working! One other feature you might like...
> by default Apache will search for an index.html file to be display. You
can
> change this to load any file you like. Just search for
> "# DirectoryIndex: Name of the file or files to use as a pre-written HTML"
> Below it you should see this
>
> <IfModule mod_dir.c>
>     DirectoryIndex index.html
> </IfModule>
>
> Simply add the files you would like to be displayed by default. Apache
works
> from left to right so this:
> <IfModule mod_dir.c>
>     DirectoryIndex index.php index.html
> </IfModule>
> Would first look for an "index.php" file, and if it was not found, then
> search for an "index.html"
>
> Good Luck
>
> Stephen
>
> ----- Original Message -----
> From: "Bud Roble" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 03, 2003 6:23 AM
> Subject: [PHP-INST] Help for PHP Newbie!
>
>
> > I've installed PHP 4.3.2 with Apache 1.3 and believe I've followed all
the
> > configuring instructions to the letter.    I create the phpinfo.php
script
> > file for testing and placed it in the C:/program files/apache
> > group/apache/htdocs folder for testing.    When I type
> localhost/phpinfo.php
> > in my browser, the script is not being parsed.    The script is simply
> > displayed in the browser window as raw text.   I can display all of the
> html
> > documents in the htdocs folder fine but any php document I browse to
> simply
> > displays the raw text in the browser.    It acts the same whether I try
at
> > the localhost or from another computer on the network.   What am I doing
> > wrong?
> >
> > Any help will be greatly appreciated!
> >
> > Bud Roble
> > [EMAIL PROTECTED]
> > (805)794-3027
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>



--- End Message ---
--- Begin Message ---
is your file called *filename*.php, *filename*.php3 or *filename.phtml? if
it isn't php cannot parse those documents :(

"Emily Wrenholt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Stephen:
>
> I'm having exactly the same problems as Bud...and I
> *have* followed all Installation instructions
> (Numerous times) But my php files still are not parsed
> and are displayed as text only.
>
> When I start the Apache server from the Apache icon
> (Not the short cut) It prints in the command prompt
> "Apache/1.3.27 <Win32> PHP/4.3.2 running..." So I feel
> like I've done something right. :)
>
> Any idea what I'm doing wrong?
> I'm on WinXP.
>
> Thanks,
>
> Emily
> [EMAIL PROTECTED]
>
>
> ----- Original Message -----
> From: "Stephen" <[EMAIL PROTECTED]>
> Newsgroups: php.install
> To: "Bud Roble" <[EMAIL PROTECTED]>
> Cc: "Installation Helplist (PHP)"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, June 03, 2003 4:07 AM
> Subject: Re: [PHP-INST] Help for PHP Newbie!
>
>
> > Sounds like your Apache is not correctly set to pass
> php files. Heres how it
> > should be done:
> >
> > Open httpd.conf
> >
> > Search for "# Dynamic Shared Object (DSO) Support"
> > This should show a long list of commented (lines
> with # in front) lines.
> > Scroll to the bottom of the list and add:
> >
> > LoadModule php4_module C:/server/PHP/php4apache.dll
> >
> > Ensure that this command actually points to
> php4apache.dll. Also, you need
> > to find and copy php4ts.dll into EXACTLY the same
> directory as
> > php4apache.dll.
> >
> > If you continue to scroll down, the next session
> after the "LoadModule"
> > lines should be "AddModule". At the bottom of this
> list, you need to add the
> > line
> >
> > AddModule mod_php4.c
> >
> > Okay, so that is php installed, but next you need to
> set it so that .php
> > files are run using php! To do this, search for
> > "# AddType allows you to tweak mime.types without
> actually editing it, or
> > to"
> > You may already have a short list of options here,
> all you need to add is
> >
> > AddType application/x-httpd-php .php
> >
> > This tells Apache that all files that end in .php
> should be parsed using
> > php. Your files should now be working! One other
> feature you might like...
> > by default Apache will search for an index.html file
> to be display. You can
> > change this to load any file you like. Just search
> for
> > "# DirectoryIndex: Name of the file or files to use
> as a pre-written HTML"
> > Below it you should see this
> >
> > <IfModule mod_dir.c>
> >     DirectoryIndex index.html
> > </IfModule>
> >
> > Simply add the files you would like to be displayed
> by default. Apache works
> > from left to right so this:
> > <IfModule mod_dir.c>
> >     DirectoryIndex index.php index.html
> > </IfModule>
> > Would first look for an "index.php" file, and if it
> was not found, then
> > search for an "index.html"
> >
> > Good Luck
> >
> > Stephen
> >
> > ----- Original Message -----
> > From: "Bud Roble"
> <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 03, 2003 6:23 AM
> > Subject: [PHP-INST] Help for PHP Newbie!
> >
> >
> > > I've installed PHP 4.3.2 with Apache 1.3 and
> believe I've followed all the
> > > configuring instructions to the letter.    I
> create the phpinfo.php script
> > > file for testing and placed it in the C:/program
> files/apache
> > > group/apache/htdocs folder for testing.    When I
> type
> > localhost/phpinfo.php
> > > in my browser, the script is not being parsed.
> The script is simply
> > > displayed in the browser window as raw text.   I
> can display all of the
> > html
> > > documents in the htdocs folder fine but any php
> document I browse to
> > simply
> > > displays the raw text in the browser.    It acts
> the same whether I try at
> > > the localhost or from another computer on the
> network.   What am I doing
> > > wrong?
> > >
> > > Any help will be greatly appreciated!
> > >
> > > Bud Roble
> > > [EMAIL PROTECTED]
> > > (805)794-3027
> > >
> > >
> > >
> > > --
> > > PHP Install Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > >
> > >
> >
> >
>
> =====
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com



--- End Message ---
--- Begin Message ---
it is for, as described in its extension, the configuration file for apache.
"Mr Nius" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> During compilation I got the error like follow:
>
> + pushd build-cgi
> /r/rpms/BUILD/php-4.3.2/build-cgi /r/rpms/BUILD/php-4.3.2
> + make install INSTALL_ROOT=/r/rpms/TMP/php-root
> Installing PHP CLI binary:        /r/rpms/TMP/php-root/usr/bin/
> Installing PHP CLI man page:      /r/rpms/TMP/php-root/usr/share/man/man1/
> Installing PHP SAPI module
> apxs:Error: Config file /r/rpms/TMP/php-root/etc/httpd/conf/httpd.conf
> not found
> make: *** [install-sapi] Error 1
> error: Bad exit status from /r/rpms/TMP/rpm-tmp.94946 (%install)
>
> What for is needed httpd.conf file and how to resolve this problem?
>
> Reg.
> Kazek
>
>
>
>



--- End Message ---
--- Begin Message ---
Hi,

I am having trouble in building php on Solaris 9 with Informix.  I installed
all the recommended packages including bison. m4, autoconf, automake,
libxml, glib.

Following is the configure command I ran:
./configure --with-informix=/export/home/informix/ids \
            --with-apxs=/home/apache_1.3.27/bin/apxs \
            --without-dom \
            --with-zlib-dir=/usr/local

configure completes with an warning and make fails with an error "make: ***
[ext/informix/libphpifx.a] Error 1

I am running Informix 9.30.UC3 and have the latest Client SDK installed.

Attached please find debug.log

Any help would be appreciated.

Thanks

Dinesh


--- End Message ---
--- Begin Message ---
I was able to compile php with Apache as a DSO module in HP 11.00 WITHOUT
mysql support.

When I tried to compile with-mysql (Mysql 4.0.13), I am getting some
configure time messages if  I use Mysql supplied binary file

This is the config time message

checking for mysql_close in -lmysqlclient... no

checking for mysql_error in -lmysqlclient... no

configure: error: mysql configure failed. Please check config.log for more
infor

mation.

*******************

Last 30 lines of config.log

configure:49332: checking for mysql_error in -lmysqlclient

configure:49351: gcc -o conftest -g -O2

-L/usr/local/lib -L/usr/local/mysql/lib

-L/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2.3 -L/usr/local/lib/gcc-li
b/hppa2.0n-hp-hpux11.00/3.2.3 -L/usr/local/lib -L/usr

/local/lib -L/usr/local -L/usr/local
conftest.c -lmysqlclient -lz -lz -lm -lnsl -lgcc 1>&5

/usr/ccs/bin/ld: Unsatisfied symbols:

gethostbyname_r (first referenced in
/usr/local/mysql/lib/libmysqlclient.a(my_gethostbyname.o)) (code)

collect2: ld returned 1 exit status

configure: failed program was:

#line 49340 "configure"

#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */

/* We use char because int might match the return type of a gcc2

builtin and then its argument prototype would still apply. */

char mysql_error();

int main() {

mysql_error()

; return 0; }

Then I created my own mysql binary

Then configure part was OK. While making gmake , I am getting this error
message.

I used the configure options which mysql has recommended to compile mysql

(CFLAGS="-fomit-frame-pointer -O3 -fpic"

CXX=gcc

CXXLFAGS="-felide-constructors -fno-exceptions -fno-rtti -O3"

./configure --prefix=/usr/local/mysql --disable-shared)

/usr/ccs/bin/ld: DP relative code in file
.libs/libphp4.lax/libmysqlclient.a/libmysql.o - shared

library must be position independent. Use +z or +Z to recompile.

gmake: *** [libphp4.la] Error 1



Any idea. Did you tried compiling with Mysql 4 version.?

Thanks in advance




--- End Message ---
--- Begin Message ---
Hello List,
 
   i am new to php programming. can anyone help me to create a linux user using php 
program and also i want to assign passwd to the new created user. just like New User 
Sign Up form for an email. i use squirrel mail they din't provided the new user sign 
up.
 
  any help will be appreciated.
 
thank,
Kumar.

Catch all the cricket action. Download Yahoo! Score tracker

--- End Message ---

Reply via email to