php-install Digest 13 Nov 2001 15:34:40 -0000 Issue 552
Topics (messages 4914 through 4927):
pdflib 4.0.1 & php 4.0.6
4914 by: Brent Meshier
Re: PHP 4.0.2 : Can't access memory
4915 by: edward.ita.org.mo
Re: 4.0.2 on RH 6.2
4916 by: edward.ita.org.mo
Re: apache reconfig question
4917 by: edward.ita.org.mo
Re: PHP3 compat with PHP4
4918 by: edward.ita.org.mo
Re: PHP4+ Mod_SSL
4919 by: edward.ita.org.mo
Re: RedHat Install
4920 by: edward.ita.org.mo
Re: Problem with php4 install
4921 by: edward.ita.org.mo
Re: php4 install
4922 by: edward.ita.org.mo
Re: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
4923 by: Ermanno Iannacci
4927 by: Ross Fleming
Re: Installing a dynamic module in Apache with GD support
4924 by: edward.ita.org.mo
Re: PHP4 configure cant find imap
4925 by: edward.ita.org.mo
PHP script problem
4926 by: Celso G. Correa
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've tried just about every configuration possible to compile pdflib for php
as a shared module. The result is libpdf_php.so with a size of 47k. I
restart apache (1.3.20) and get the following error:
PHP Warning: Invalid library (maybe not a PHP library) 'libpdf_php.so' in
Unknown on line 0
Any ideas? I've been trying for over 4 hours now!
Brent Meshier
http://www.meshier.com/
--- End Message ---
--- Begin Message ---
Mohamed Said Lokhat wrote:
> Hi,
> I did compile PHP4 as DSO with apache 1.3.12 on a RH6.2 platform.
> The supports of PHP are :
> -FTP,
> - Calendar,
> - Imap,
> - Sockets,
> - Oracle 8,
> - Informix,
> - Sybase,
> - Session,
> - Mysql,
> - PostgreSql,
> - PDFlib,
> - Zlib,
> - GD
>
> apache has =
> - DSO,
> - mod_SSL,
> - Jserv,
> - mod_perl
>
> compile work fine, but when I try to start apache , it can't .
> I tried to use gdb httpd
> run -X ou run -X -DSSL gives the same error :
> Can't access memory at 0x44........ ( I forget the exact value)
>
> When I disable Php , apache can start finely.
> Can anyone help me .
> I don't want to reinstall all the system.
>
> Thanks,
>
> Mohamed said LOKHAT
Hello,
Can I ask you some questions ?
1, When you run /etc/rc.d/init.d/httpd restart , what error messages ?
2, How many ( MB ) memory in your computer machine ?
3, What program are you running with you RH 6.2 System ?
4, Where can you get the mod_ssl install it into you 6.2 system ?
Edward.
--- End Message ---
--- Begin Message ---
Dustin Rue wrote:
> Maybe this has been asked before but I am having trouble installing
> php-4.0.2 on a RedHat 6.2 box. I am compiling with these options:
>
> --with-apxs=/usr/sbin/apxs --with-imap --with-mysql --with-psql
> --enable-ftp
>
> When then try to restart httpd I get the following error.
>
> undefined symbol: gss_mech_krb5.
>
> If I re-configure without imap support things work fine. If anyone has
> seen this before and can help...
>
> Thanks in advance
>
> Dustin Rue
> =====================================
> Student Technology Team
>
> Contact Me:
> 218-236-2125
> =====================================
Hello,
I have also this error message , and I guess if re-configure
--with-kerberos , it may be okay !
If you re-configure ( re-compile ) your php4 with the option
--with-kerberos , then your apache is good for work, please let me know ,
okay ?
Thanks,
Edward.
--- End Message ---
--- Begin Message ---
Micah Huerta wrote:
> Hi list, I have Apache 1.3.12 and php 4.0.2 installed on RedHat 7.
> When I try to re-configure apache for php support, (./configure
> --prefix=/usr/local/etc/httpd/ --sysconfigdir=/www/conf/
> --activate-module=src/modules/php4/libmodphp4.a --enable-module=status)
> I get the following error: mod_php4.c:28:18: No such file or directory
> for zend.h, php.h, php_variables.h, SAPI.h, php_ini.h, php_globals.h,
> php_main.h, zend_compile.h, zend_execute.h, zend_highlight.h,
> zend_ident.h, ext/standard/php_standard.h. make[4]: *** [mod_php4.o]
> Error 1, make[3]: *** [all] Error 1, make[2]: *** [subdirs] Error 1,
> Leaving dirs, etc..etc..
>
> Can anyone please help me on this one?
>
> TIA,
> Micah
Hello,
Please remove the config.cache , then type "make clean"...
If any question , please read the documentation of php4 ( INSTALL ) !
Edward.
--- End Message ---
--- Begin Message ---
Andrew Banman wrote:
> I have an Appache server with PHP successfully
> installed (or seems to be anyway) and I wish to use an
> older application that was written for PHP3. Is there
> a way to use the PHP3 files with PHP4? It seems to
> execute url.php just fine but just spits PHP code to
> the browser when I try url.php3
>
> Suggestions for a newbee?
In your httpd.conf :
# setting of php4 ( compat with php3 )
AddType application/x-httpd-php .php3 .php
AddType application/x-httpd-php-source .phps
or
when you compile and install php4 :
----------------------------------------------------------------------------
USING PHP 3 AND PHP 4 AS CONCURRENT APACHE MODULES
Recent operating systems provide the ability to perform versioning
and
scoping. This features make it possible to let PHP 3 and PHP 4 run as
concurrent modules in one Apache server.
This feature is known to work on the following platforms:
- Linux with recent binutils (binutils 2.9.1.0.25 tested)
- Solaris 2.5 or better
- FreeBSD (3.2, 4.0 tested)
- IRIX64 6.5
To enable it, configure PHP 3 and PHP 4 to use APXS (--with-apxs) and
the
necessary link extensions (--enable-versioning). Otherwise, all
standard
installations instructions apply. For example:
$ ./configure \
--with-apxs=/apache/bin/apxs \
--enable-versioning \
--with-mysql \
--enable-track-vars
----------------------------------------------------------------------------------
INSTALL ( documentation of php4 )
--- End Message ---
--- Begin Message ---
Mohamed Said Lokhat wrote:
> Hi,
> I installed Apache 1.3.12+ Mod_ssl 2.6.6 built statically on a RH6.2 box.
> Apache can start successfully ( http and https)
> I added mod_perl 1.24, ApacheJserv 1.1.2 and php4.0.2 .
> Now, I can't use ssl with php . If I start apache without ssl, it can start
> and I can use mod_perl, servlets, php.
> to use ssl, i must disable php unless apache crashs with a SIGSERV
> I tried to start apache with gdb httpd and it stop with an error in math.c
> Why I get this error?
> My config :
> Apache 1.3.12 + Mod_ssl 2.6.6
> mod_Perl 1.24
> ApacheJServ 1.1.2
> PHP with options : mysql(3.23.25), postgres(6.3), oracle 8, sybase,
> informix7.3, pdflib, zlib, gd, imap, java1.2.2 (jdk), session, sockets,
> ftp, calendar, ccvs
> compile works fine.
>
> Thanks
Hello,
How did you install mod_ssl with your apache 1.3.12 ?
So, can you tell me ?
Thanks,
Edward.
--- End Message ---
--- Begin Message ---
Matt McNichols wrote:
> Hi,
>
> I installed PHP3 and Apache(their secure SSL Server) using RPM on RedHat
> Linux 6.1
>
> I made sure in httpd.conf to uncomment all the following:
> AddModule mod_php3.c
> LoadModule php3_module modules/libphp3.so
> AddType application/x-httpd-php3 .php3
> I make a test page as /home/httpd/html/test.php3 and then run it as
> http://myserver/test.php3 and the page runs without error BUT does not
> process the php3 (it just list the source of the page.)
> The source is just a simple
> <html><body> <?php echo ("test"); ?> </body></html>
> Thanks for any help.
Hello,
I guess you may creat test.php3 using <?phpinfo()?> , then you will know
does your apache working with your php ?
I hope I can help you !
Edward.
--- End Message ---
--- Begin Message ---
Emmanuel Halphen wrote:
> Hi,
>
> I have install php 4.0.3 on apache 1.3.12.
>
> I have add the .php extension in the httpd.conf file.
>
> But when I try to load a .php file on a website, my browser ask me to
> download the file, and the server don't execute it.
>
> Does anyone have a solution ?
>
> Emmanuel
Hello,
What is your system ( Linux / Window ) ?
But , anyway :
In your httpd.conf :
LoadModule php3_module modules/libphp4.so
ClearModuleList
AddModule mod_php.c
AddType application/x-httpd-php .php3 .php
AddType application/x-httpd-php-source .phps
Then you can use php3 and php4...
Edward.
--- End Message ---
--- Begin Message ---
Hello,
Can you tell me what is Apache Compile kit ?
In additional , gd is necessary with php ?
Edward.
Matthew Mundy wrote:
> I highly recommend Apache Compile kit (just search on freshmeat) It is
> relatively painless, though you might have to edit the PHP config module
> to add --without-gd.
> ---Matt
>
> On Mon, 16 Oct 2000, Clive Storey wrote:
>
> > (This is the second posting of the same problem I apologise the return
> > email address on the first is incorrect)
> >
> > Hi
> >
> > We need help!!!
> >
> > Can anybody give us simple in plain English the install proceedure for
> > PHP4 + MYSQL + APACHE using O/S RedHat 6.2 .
> >
> > We have Apache 1.3.12 installed as by RPM, mysql 3.22.23 installed by
> > RPM & php4 4.0.3 install by compilling and configuring the source.
> >
> > We have followed the INSTALL & README details which come with PHP4 as
> > follows:
> > After gunzipping the tar file etc and moving to the directory created we
> >
> > did
> > ./configure --with mysql --apxs
> > make
> > make install
> > this installed with no problems but on checking the httpd.conf file the
> > install programme placed the LoadModule php4_module
> > lib/apache/libphp4.so & AddModule mod_php4.c instructions way down in
> > the httpd section which caused problems with apache not running in
> > addition we did not have the libphp4.so in the path as specified.
> >
> > We moved the 2 lines up to the section where all the other LoadModules &
> >
> > AddModules were located. We changed the path to the libphp4.so to
> > modules/libsophp4.so and when this did not work we changed to the
> > absolute path to where the file was listed, this also did not work
> > giving us a message that there was no directory.
> >
> > In between these attempts we used httpd -t to monitor the results on
> > each occasion we got SYNTAX OK Segmentation fault (core dump).
> >
> > After 4 long days of reading FAQ's emails ect, we tried to configure
> > with the following:
> > ./configure --with-mysql=/usr/include/mysql/mysql.h
> > --with-apxs=/usr/sbin/apxs
> > the compile programme could not find the paths.
> >
> > The one way we did get the compile programme to accept the path was:
> > ./configure --with-mysql=/usr --with-apxs
> > but this then gave us the same problems with the httpd.conf file as
> > detailed above.
> >
> > We have tried every variation of the paths possible but nothing works.
> >
> > Can anybody assist your help would be most welcome.
> >
> > regards
> >
> >
> >
> >
> > --
> > 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]
> >
--- End Message ---
--- Begin Message ---
I did this, but do I have to load some .c file?
----- Original Message -----
From: "Ross Fleming" <[EMAIL PROTECTED]>
To: "Ouster" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 11:40 PM
Subject: RE: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php
>
> not php4.
>
> -----Original Message-----
> From: Ouster [mailto:[EMAIL PROTECTED]]
> Sent: 12 November 2001 21:49
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
>
>
> Do I need all the lines that load .c files?
> Is it not enough to load only .so files?
> I receive an error, after I wrote LoadModule php4, because there is a
> ClearModuleList instruction that (I think) removes what I loaded.
>
> Thanks
>
>
> --
> PHP Windows 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]
>
>
>
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
No. Have you copied php4ts.dll to winnt/system32 as well? It won't
work otherwise. What error you getting?
R
Ermanno Iannacci wrote:
>
> I did this, but do I have to load some .c file?
>
> ----- Original Message -----
> From: "Ross Fleming" <[EMAIL PROTECTED]>
> To: "Ouster" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Monday, November 12, 2001 11:40 PM
> Subject: RE: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
>
> > LoadModule php4_module c:/php/sapi/php4apache.dll
> > AddType application/x-httpd-php .php
> >
> > not php4.
> >
> > -----Original Message-----
> > From: Ouster [mailto:[EMAIL PROTECTED]]
> > Sent: 12 November 2001 21:49
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
> >
> >
> > Do I need all the lines that load .c files?
> > Is it not enough to load only .so files?
> > I receive an error, after I wrote LoadModule php4, because there is a
> > ClearModuleList instruction that (I think) removes what I loaded.
> >
> > Thanks
> >
> >
> > --
> > PHP Windows 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]
> >
> >
> >
> >
>
> _________________________________________________________
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> PHP Windows 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]
--- End Message ---
--- Begin Message ---
Patrik Carlsson wrote:
> I've succesfully installed Apache(1.3.14) with --enable-module=so, it works.
> configures php(4.0.3pl)to use snmp and mysql --without gd.
> make and make install works,
> httpd starts fine, phpinfo() produces right information compared to what i
> installed.
> When using --with-gd=/path/to/gd, make and make install works fine.
> But when starting httpd it reports
> <QUOTE>
> Syntax error on line 207 of /www/conf/httpd.conf:
> Cannot load /www/libexec/libphp4.so into server: /www/libexec/libphp4.so:
> undefined symbol: gd_module_entry
> bin/apachectl start: httpd could not be started
> </QUOTE>
>
> Environment is RedHat 6.2, with GD 1.8.3.
>
> Any ideas?
>
> Regards Patrik
>
> Patrik Carlsson
> Ph.D Student
> Dept. Telecommunications & Signalprocessing
> Blekinge Institute of Technology
> +46(0)455-385664
> +46(0)733-800312
Hello,
I guess you may try --without-gd !
Edward.
--- End Message ---
--- Begin Message ---
David Rogers wrote:
> Hi,
>
> I'm trying to install php4 with imap support so I can use the IMP webmail
> system. I added this to my configure command: --with-imap=../imap-4.7c/
>
> PHP3 compiles just fine with the same command. I compared the configure
> scripts and php4 looks for different things. Have they changed what is
> required for imap support? If so, I can't find any docs on it anywhere.
>
> Any help is greatly appreciated,
>
> Thanks,
>
> Dave Rogers
Hello,
You may try just "--with-imap"
Edward.
--- End Message ---
--- Begin Message ---
Dear Srs,
A few days ago, I upgraded my PHP installation from 3.0.18 to 4.0.6 version.
I tested the new version with the following script :
<html>
<head>
<title>Links</title>
</head>
<?
session_cache_limiter('public');
$cc = session_start();
session_register("cont");
$cont = session_id();
$ssid = session_id();
echo "Sessão01 : " . $ssid;
session_destroy();
?>
<body>
</body>
</html>
When I run this script, I'm receiving back the following warning :
Warning: Cannot send session cache limiter - headers already sent (output started at
D:\Websites\Php\teste2_sess.php:6) in D:\Websites\Php\teste2_sessphp on line 8
Sessão01 : cfe7f6288656774275396fcaebf9754e
My environment is :
- OS : Windows NT 4.0
- PHP version : 4.0.6
- Web Server : IIS 4.0
Part of php.ini configuration is :
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = Off
track_errors = Off
;error_prepend_string = "<font color=ff0000>"
;error_append_string = "</font>"
;error_log = filename
;error_log = syslog
warn_plus_overloading = Off
[Session]
session.save_handler = files
session.save_path = C:/Temp/php
session.use_cookies = 0
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 20
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
Thanks.
Celso G. Corrêa
--- End Message ---