php-install Digest 7 Aug 2001 21:52:18 -0000 Issue 401
Topics (messages 3876 through 3887):
I not instaling cobalt server
3876 by: Mehmet COKCEVIK
ld cannot find -lmysqlclient
3877 by: Patrice Garbe
3879 by: Jani Taskinen
Mysql and PHP
3878 by: matt
Apache, php and secure socket layer
3880 by: Armando Colpa
Re: MIME types
3881 by: Jan-Erik Bullett
3882 by: Steve Brazill
V_FOPEN changed to VCWD_FOPEN?
3883 by: Jon Wagoner
PHP and Solaris 8 / iPlanet
3884 by: Dale Wright
Re: problems compiling php 4.0.6 into apache 1.3.20
3885 by: Jon Wagoner
php.ini is not there after installation !!????
3886 by: Siamak Amirghodsi
3887 by: Jeff Wiegley, Ph.D.
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]
----------------------------------------------------------------------
Hello,
I not instaling PHP 4 in Cobalt server . I having problems.
Pls help me
Server : Cobatl RAQ3
OS : Cobalt 5.0
:
Hello !
I compiled PHP with the mysql external support but I had
a "mysql ran out of memory" error perfoming a big query.
As I didn't find a way to extend the mysql client cache
(if you have a solution don't hesitate...) I decided to compile
PHP again this time with the mysql built-in support.
You can imagine how surprised I was when "make" exited
with an error telling : ld cannot find -lmysqlclient.
If ld is searching for mysqlclient.a It won't find It because It
doesn't exist. The are only libmysqlclient* files.
Note that I installed mysql correctly !
What's the problem ?
Thank you.
Patrice
# rm -f config.cache
# ./configure <your options>
# make clean
# make
--Jani
On Tue, 7 Aug 2001, Patrice Garbe wrote:
>Hello !
>
>I compiled PHP with the mysql external support but I had
>a "mysql ran out of memory" error perfoming a big query.
>As I didn't find a way to extend the mysql client cache
>(if you have a solution don't hesitate...) I decided to compile
>PHP again this time with the mysql built-in support.
>
>You can imagine how surprised I was when "make" exited
>with an error telling : ld cannot find -lmysqlclient.
>If ld is searching for mysqlclient.a It won't find It because It
>doesn't exist. The are only libmysqlclient* files.
>Note that I installed mysql correctly !
>
>What's the problem ?
>
>Thank you.
>
>Patrice
>
>
Sorry to sound dim, I currently rent a space on a web server that has Mysql
installed and support for PHP. I am new to this but do I need Mysql and php
installed on my own servers to make use of the web space. For me to create a
database and PHP pages on the web server what will I need to install locally
and how do I begin.
Guys
Do you have to use port 80 when starting apache with ssl? I have a number of
apache binaries on a box, and need to test one with ssl. However, I can't
use port 80, as more critical stuff already has access to it. Any
suggestions? Thanks in advance.
Armando
Aha. Response. Not a very good one, methinks.
My Apache is installed from rpm. I have the /etc/httpd/conf/ dir with
apache-mime.types, httpd.conf and commonhttpd.conf files. I for some reason
copied the commonhttpd.conf to httpd.conf and edited the bit about AddType...
...x-httpd-php (removed the # to activate it -scriptguru or what!). I did an
apachectl restart
Starting httpd: Syntax error on line 75 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not
included in the server configuration [FAILED]
Is this good?
Adding the Addtype stuff to any of the three config files in their original
state does pretty much nothing on restart, but then I'm still not sure where to
place the addtype lines inthe httpd.conf, if that's where it goes. I must say,
mine looks nothing like the one you sent me.
I attach the three files above.
Much appreciation.
Jan-Erik
Steve Brazill wrote:
> Yes, I believe that the placement of the lines is important (mostly to make
> sure you're not placing them in a 'subsection' that's dealing with a
> specific 'location' or 'directive')
>
> I've attached a copy of my "httpd.conf" that was created by the PHP
> installation (but beware... there's other stuff installed, such as SSL,
> and "mod_perl" - which I believe you also need installed for PHP)
>
> I use the 'source' installation, so I know that the "httpd.conf" file
> belongs in "/usr/local/apache/conf"... If you've used the RPM installation
> method, I'd guess that the file goes in "/etc"...
>
> Good luck...
>
> ----- Original Message -----
> From: "Jan-Erik Bullett" <[EMAIL PROTECTED]>
> To: "Steve Brazill" <[EMAIL PROTECTED]>
> Sent: Thursday, July 26, 2001 11:04 PM
> Subject: Re: [PHP-INST] MIME types
>
> > Hi again, not quite there yet
> >
> > Steve Brazill wrote:
> >
> > > Do you mean the 2 lines that should be in your "httpd.conf" file ??
> > >
> > > AddType application/x-httpd-php .php .php3 .php4 .htm
> > > AddType application/x-httpd-php-source .phps
> > >
> >
> > Ok, I added the above two files to the BOTTOM of my
> /etc/httpd/conf/httpd.comf
> > file
> > is there a certain place to add these lines, or will the very bottom do?
> >
> > then, where do I copy the php.ini to? my /usr/local/lib directory is
> empty.
> > should it go here, in the php dir (where it already is) or somewhere
> different
> > entirely?
> > I don't think it needs editing.
> >
> > Jan (getting even more grateful)
> >
>
> ------------------------------------------------------------------------
> Name: httpd.conf.php4
> httpd.conf.php4 Type: unspecified type (application/octet-stream)
> Encoding: quoted-printable
The problem may be that the 'common' "httpd.conf" you put into place, does
not take into account any other 'modules' or changes made to your Apache
installation.
That's why I always use the 'source' distribution and method of configuring
and installation. You'd have total control over the configuration, as well
as know what 'modules' you've built into the apache installation.
If you can't get it to work, consider removing the RPM's for
Apache/PHP/MySQL, etc, and I'll send you a copy of my 'webdocs' which will
show you have to reinstall them using the source method. (which has always
worked for my, and others who have requested them)...
good luck...
P.S. I didn't recieve any 'attachments' with your message...
----- Original Message -----
From: "Jan-Erik Bullett" <[EMAIL PROTECTED]>
To: "Steve Brazill" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 07, 2001 12:52 AM
Subject: Re: [PHP-INST] MIME types
> Aha. Response. Not a very good one, methinks.
>
> My Apache is installed from rpm. I have the /etc/httpd/conf/ dir with
> apache-mime.types, httpd.conf and commonhttpd.conf files. I for some
reason
> copied the commonhttpd.conf to httpd.conf and edited the bit about
AddType...
> ...x-httpd-php (removed the # to activate it -scriptguru or what!). I did
an
> apachectl restart
> Starting httpd: Syntax error on line 75 of /etc/httpd/conf/httpd.conf:
> Invalid command 'Order', perhaps mis-spelled or defined by a module not
> included in the server configuration [FAILED]
>
> Is this good?
>
> Adding the Addtype stuff to any of the three config files in their
original
> state does pretty much nothing on restart, but then I'm still not sure
where to
> place the addtype lines inthe httpd.conf, if that's where it goes. I must
say,
> mine looks nothing like the one you sent me.
>
> I attach the three files above.
>
> Much appreciation.
>
> Jan-Erik
>
> Steve Brazill wrote:
>
> > Yes, I believe that the placement of the lines is important (mostly to
make
> > sure you're not placing them in a 'subsection' that's dealing with a
> > specific 'location' or 'directive')
> >
> > I've attached a copy of my "httpd.conf" that was created by the PHP
> > installation (but beware... there's other stuff installed, such as SSL,
> > and "mod_perl" - which I believe you also need installed for PHP)
> >
> > I use the 'source' installation, so I know that the "httpd.conf" file
> > belongs in "/usr/local/apache/conf"... If you've used the RPM
installation
> > method, I'd guess that the file goes in "/etc"...
> >
> > Good luck...
> >
> > ----- Original Message -----
> > From: "Jan-Erik Bullett" <[EMAIL PROTECTED]>
> > To: "Steve Brazill" <[EMAIL PROTECTED]>
> > Sent: Thursday, July 26, 2001 11:04 PM
> > Subject: Re: [PHP-INST] MIME types
> >
> > > Hi again, not quite there yet
> > >
> > > Steve Brazill wrote:
> > >
> > > > Do you mean the 2 lines that should be in your "httpd.conf" file ??
> > > >
> > > > AddType application/x-httpd-php .php .php3 .php4 .htm
> > > > AddType application/x-httpd-php-source .phps
> > > >
> > >
> > > Ok, I added the above two files to the BOTTOM of my
> > /etc/httpd/conf/httpd.comf
> > > file
> > > is there a certain place to add these lines, or will the very bottom
do?
> > >
> > > then, where do I copy the php.ini to? my /usr/local/lib directory is
> > empty.
> > > should it go here, in the php dir (where it already is) or somewhere
> > different
> > > entirely?
> > > I don't think it needs editing.
> > >
> > > Jan (getting even more grateful)
> > >
> >
>
------------------------------------------------------------------------
> > Name: httpd.conf.php4
> > httpd.conf.php4 Type: unspecified type (application/octet-stream)
> > Encoding: quoted-printable
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
I was trying out some modules, just experimenting, and tried to use the Ming
module with PHP 4.0.6. PHP compiled fine, but then when I went to compile
Apache (1.3.20) with php as a module, apache complained about:
modules/php4/libphp4.a(ming.o): In function `php_if_swfmovie_save':
/usr/src/php-4.0.6/ext/ming/ming.c:1567: undefined reference to `V_FOPEN'
Searching throught the code and web, it looks like other stuff that was V_*
has changed to VCWD_*, and there is a VCWD_FOPEN defined. Should the
references to V_FOPEN in ming.c be changed to VCWD_FOPEN?
Jon
After installing PHP on Solaris 8 with iPlanet 4, the web server will not
restart -- the error is -- start failed. (2: unknown early startup error)
I have looked through a lot of the discussion groups and recommended web
sites to no avail. Can anyone give me some clues? If I comment out the
init stuff in the obj.conf file the server will start but will not shutdown.
If I don't get this working soon, my PHP project may get the axe!!
Arrrgggghhh!
Thanks in advance,
Dale Wright
Integration Manager
Saffron Technology, Inc.
http://www.saffrontech.com
It seems that --enable-xslt and --with-xslt-sablot are mutually exclusive.
This together with the V_FOPEN/VCWD_FOPEN I e-mailed about earlier got it up
and running.
-----Original Message-----
From: Jon Wagoner [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 5:29 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-INST] problems compiling php 4.0.6 into apache 1.3.20
I am trying to compile php with many of the options, to try different things
out. So far, I have managed to get PHP to compile. Apache seems to compile
okay until what seems like the last step, then I start getting errors. The
last part of the make returns this:
Any help would be appreciated.
Jon
<=== src/modules
gcc -c -I./os/unix -I./include -DLINUX=22 -DMOD_SSL=208104
-I/usr/src/php-4.0.6 -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6/main
-I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/Zend
-I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6
-DEAPI -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` modules.c
gcc -c -I./os/unix -I./include -DLINUX=22 -DMOD_SSL=208104
-I/usr/src/php-4.0.6 -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6/main
-I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/Zend
-I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6
-DEAPI -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` buildmark.c
gcc -DLINUX=22 -DMOD_SSL=208104 -I/usr/src/php-4.0.6
-I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6/main
-I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/Zend
-I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6
-DEAPI -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`
-L/usr/local/ssl/lib \
-o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/ssl/libssl.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a
ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib
-Wl,-rpath,/usr/X11R6/lib -Wl,-rpath,/usr/local/mysql/lib
-Wl,-rpath,/usr/local/pgsql/lib -rdynamic -L/usr/local/lib -L/usr/X11R6/lib
-L/usr/local/mysql/lib -L/usr/local/pgsql/lib -Lmodules/php4
-L../modules/php4 -L../../modules/php4 -lmodphp4 -L/usr/local/lib -liodbc
-lc-client -ldl -lexpat -lsablot -lexpat -lswf -lexpat -lsablot -lpspell
-lpq -liodbc -lmysqlclient -lz -lming -lmhash -lmcrypt -lltdl -lgmp -lgd
-lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lz -lxml2 -lcurl -ldl -lcpdf
-lbz2 -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lm -lcrypt -lssl
-lcrypto
modules/php4/libphp4.a(sablot.o): In function `php_if_xslt_create':
/usr/src/php-4.0.6/ext/xslt/sablot.c:156: multiple definition of
`php_if_xslt_create'
modules/php4/libphp4.a(sablot.o):/usr/src/php-4.0.6/ext/sablot/sablot.c:566:
first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_create' changed from 208
to 180 in sablot.o
modules/php4/libphp4.a(sablot.o): In function
`php_if_xslt_set_error_handler':
/usr/src/php-4.0.6/ext/xslt/sablot.c:324: multiple definition of
`php_if_xslt_set_error_handler'
modules/php4/libphp4.a(sablot.o):/usr/src/php-4.0.6/ext/sablot/sablot.c:1084
: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_set_error_handler' changed
from 586 to 105 in sablot.o
modules/php4/libphp4.a(sablot.o): In function `php_if_xslt_set_base':
/usr/src/php-4.0.6/ext/xslt/sablot.c:342: multiple definition of
`php_if_xslt_set_base'
modules/php4/libphp4.a(sablot.o):/usr/src/php-4.0.6/ext/sablot/sablot.c:968:
first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_set_base' changed from 271
to 260 in sablot.o
modules/php4/libphp4.a(sablot.o): In function `php_if_xslt_set_encoding':
/usr/src/php-4.0.6/ext/xslt/sablot.c:362: multiple definition of
`php_if_xslt_set_encoding'
modules/php4/libphp4.a(sablot.o):/usr/src/php-4.0.6/ext/sablot/sablot.c:943:
first defined here
modules/php4/libphp4.a(sablot.o): In function `php_if_xslt_process':
/usr/src/php-4.0.6/ext/xslt/sablot.c:417: multiple definition of
`php_if_xslt_process'
modules/php4/libphp4.a(sablot.o):/usr/src/php-4.0.6/ext/sablot/sablot.c:497:
first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_process' changed from 578
to 982 in sablot.o
modules/php4/libphp4.a(sablot.o): In function `php_if_xslt_error':
/usr/src/php-4.0.6/ext/xslt/sablot.c:532: multiple definition of
`php_if_xslt_error'
modules/php4/libphp4.a(sablot.o):/usr/src/php-4.0.6/ext/sablot/sablot.c:1017
: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_error' changed from 347 to
138 in sablot.o
modules/php4/libphp4.a(sablot.o): In function `php_if_xslt_errno':
/usr/src/php-4.0.6/ext/xslt/sablot.c:515: multiple definition of
`php_if_xslt_errno'
modules/php4/libphp4.a(sablot.o):/usr/src/php-4.0.6/ext/sablot/sablot.c:1060
: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_errno' changed from 123 to
102 in sablot.o
modules/php4/libphp4.a(sablot.o): In function `php_if_xslt_free':
/usr/src/php-4.0.6/ext/xslt/sablot.c:549: multiple definition of
`php_if_xslt_free'
modules/php4/libphp4.a(sablot.o):/usr/src/php-4.0.6/ext/sablot/sablot.c:808:
first defined here
/usr/local/lib/libswf.a(swfimage.o): In function `swf_definebitmap':
swfimage.o(.text+0x672): the use of `mktemp' is dangerous, better use
`mkstemp'
modules/php4/libphp4.a(ming.o): In function `php_if_swffont_init':
/usr/src/php-4.0.6/ext/ming/ming.c:1135: undefined reference to `V_FOPEN'
modules/php4/libphp4.a(ming.o): In function `php_if_swfmovie_save':
/usr/src/php-4.0.6/ext/ming/ming.c:1567: undefined reference to `V_FOPEN'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/src/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/apache_1.3.20'
make: *** [build] Error 2
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello,
When I Install PHP with apache, it does not install the php.ini !!!!
The path is defined as /usr/local/apache, but nothing is there after
make install.
Every thing else is OK.
Do I have to copy the php.ini from somewhere ?
Thanks,
Sam
You do have to install one yourself as far as I know.
Pick one of:
./php-4.0.6/php.ini-dist
./php-4.0.6/php.ini-optimized
and copy it to php.ini wherever you need it to be.
- Jeff
Siamak Amirghodsi wrote:
> Hello,
>
> When I Install PHP with apache, it does not install the php.ini !!!!
> The path is defined as /usr/local/apache, but nothing is there after
> make install.
> Every thing else is OK.
>
> Do I have to copy the php.ini from somewhere ?
>
> Thanks,
> Sam
>
>
>