php-install Digest 6 Mar 2003 13:14:14 -0000 Issue 1279
Topics (messages 10294 through 10300):
PHP 4.3.1 installation problem under Mac OS X 10.2.4 and Apache 2.0.44
10294 by: todd kennedy
Session Problems
10295 by: Ian Pushee
PHP ODBC
10296 by: Patrick LOK
Re: session expire problem
10297 by: Pavol Eisenberg
Re: PHP script stars downloading
10298 by: Chris Hewitt
10299 by: Chris Hewitt
Re: php.ini changes not taking
10300 by: Stembridge, Michael
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 ---
Phew. That's a subject and a half.
I am having problems compiling PHP 4.3.1 under OS 10.2.4 and Apache
2.0.44
my configure line is:
./configure --with-apxs2=/opt/bin/apxs --with-gd --with-mysql
--with-zlib-dir=/usr/lib --with-xml
it runs through configure just fine, but when i do a make, i get:
gcc: /Users/todd/Desktop/httpd-2.0.44/srclib/apr-util-lexpat: No such
file or directory
make: *** [libs/libphp4.bundle] Error 1
about half way through. it compiles the CLI version without a problem,
but chokes at this.
the file does not exist in my Apache source, so I'm confused why it
would be looking to find this in the Apache source (also, since i'm
using apxs shouldn't i not even need my Apache source?)
I compiled Apache 2.0.44 (which runs 100%) with:
./configure --prefix=/opt --enable-so
If anyone has an idea of what is going on, that would be great. I'm
going to try it in my Mandrake 7.3 PPC install and see if I get the
same error or if it's a mac os specific error.
Thanks!
Todd
--- End Message ---
--- Begin Message ---
I just installed php-4.3.1 on my linux box, and I'm having some troubles getting
the sessions to work. No matter what options in php.ini I set, session variables
refuse to be reused. When I check the error logs, thses are the errors I see:
(using 'session_start()')
[error] PHP Warning: session_start() [<a href='http://www.php.net/
function.session-start</a>]: read returned less bytes than requested in /home/
httpd/html/test.php on line 10
(with session.auto_start)
[error] PHP Warning: Unknown(): read returned less bytes than requested in
Unknown on line 0.
Anyone have any ideas that could help?
-Ian
--- End Message ---
--- Begin Message ---
Is there ODBC for PHP4 for LINUX to connect MS-SQL?
p.s. other than openlink software
rgds
./pl
--- End Message ---
--- Begin Message ---
Hi there,
I have problems with my php sessions. I use cookies to autorize session
(e.g.) to get into admin interface. After varios time the session is
disconnected and does not start again so people have to login again.
Could anybody help ?
sincerly
Pavol Eisenberg
configuration :
linux - Mandrake kernel 2.4.19-16mdk
apache - 1.3.22 with gd2-2.0.1 ,php-4.2.3, mysql 3.23.52
part of my config :
session.save_handler = files
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /tmp
; Whether to use cookies.
session.use_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
; Initialize session on request startup.
session.auto_start = 0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
; The path for which the cookie is valid.
session.cookie_path = /
; Specified here to create the session id.
session.entropy_file = /dev/urandom
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
; Set to {nocache,private,public} to determine HTTP caching aspects.
session.cache_limiter = nocache
; Document expires after n minutes.
session.cache_expire = 90
; use transient sid support if enabled by compiling with --enable-trans-sid.
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
mssql.max_persistent = -1
; Maximum number of links (persistent+non persistent). -1 means no limit.
mssql.max_links = -1
; Minimum error severity to display.
mssql.min_error_severity = 10
; Minimum message severity to display.
mssql.min_message_severity = 10
; Compatability mode with old versions of PHP 3.0.
mssql.compatability_mode = Off
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textsize = 4096
; Limits the number of records in each batch. 0 = all records in one batch.
;mssql.batchsize = 0
--- End Message ---
--- Begin Message ---
Jitendra Rane wrote:
Hi ppl,
I am using redhat Linux 8.0 as operating system. I have installed apache 2.0 and PHP
using the packet manager of the Redhat Linux 8. (which by default comes with the
operating system).
But it is giving error. When i try to run php script. It starts downloading the
script instead of executing it.
I only enabled the SSI on the apache and other settings are default.
Error_log is also not showing any error.
Any help in this matter is appreciated.
I think that either you did not install php or the changes you made
since have messed it up. Do you have the file
/etc/httpd/conf.d/php.conf? This is installed by the php-4.2.2-8.0.3
package. To check, from the Gnome penguin, select "System Settings",
"Packages". In the "Web Server" section, click on "Details" and see if
"php" is ticked.
HTH
Chris
--- End Message ---
--- Begin Message ---
Chris Hewitt wrote:
Jitendra Rane wrote:
Hi ppl,
I am using redhat Linux 8.0 as operating system. I have installed
apache 2.0 and PHP using the packet manager of the Redhat Linux 8.
(which by default comes with the operating system).
But it is giving error. When i try to run php script. It starts
downloading the script instead of executing it.
I only enabled the SSI on the apache and other settings are default.
Error_log is also not showing any error.
Any help in this matter is appreciated.
I think that either you did not install php or the changes you made
since have messed it up. Do you have the file
/etc/httpd/conf.d/php.conf? This is installed by the php-4.2.2-8.0.3
package. To check, from the Gnome penguin, select "System Settings",
"Packages". In the "Web Server" section, click on "Details" and see if
"php" is ticked.
HTH
Chris
The other possibility is that you test php file does not have the
extension ".php". This is the only extension catered for in the standard
/etc/httpd/conf.d/php.conf file.
Chris
--- End Message ---
--- Begin Message ---
I'm not sure if my question was worded vaguely or if this is one of the
mysteries of the great uknown. Am I asking this on the right list?
Instead of troubleshooting this issue further is there a configuration
option which will force register_globals to be "On" when I compile php? If
there is I'll just rebuild and be done with it.
Thanks for any and all assistance.
- Mike
> -----Original Message-----
> From: Stembridge, Michael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 7:48 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] php.ini changes not taking
>
>
> I'm almost at my wits end with this problem. This is a new install
> of PHP 4.3 & Apache 1.3.27 on a Redhat 8.0 machine. Php works fine
> with the exception of configuration file changes...
>
> This is a local network not seen by the rest of the world and I would
> like to register_globals in the ini file as opposed to using ini_set
> or recoding several large projects to use $_GET[var] and $_POST[var].
>
> On to the diagnosis.
>
> From phpinfo()...
>
> PHP Version 4.3.1
>
> Configure Command './configure' '--with-mysql'
> '--with-informix=/opt/informix' '--enable-track-vars'
> '--with-apache=/share/source/apache/apache_1.3.27'
> '--with-config-file-path=/usr/local/apache/conf'
>
> Configuration File (php.ini) Path /usr/local/apache/conf
>
> register_globals Off Off
>
> ...........................
>
>
> from command line...
> ls -l /usr/local/apache/conf/php.ini
> -rw-r--r-- 1 mstembri mstembri 23723 Mar 5 19:33 php.ini
>
> -- note apache runs as user mstembri (confirmed in httpd.conf)
>
> ...........................
>
> from /usr/local/apache/conf/php.ini ...
>
> register_globals = On
>
> ...........................
>
>
> I've also tried using ini_set("register_globals", "On"); but this also
> doesn't work.
>
> For kicks I tried chowning the file to nobody then restarted apache,
> however this did not help.
>
> Even though phpinfo() says apache looks for the file in
> /usr/local/apache/conf I copied the php.ini to /usr/local/bin and /etc
> - no luck there either.
>
> I also copied the working php.ini file from another RH server using
> php 4.0.6, but still no luck with changing php configuration.
>
> I've spent the past two hours reading google and google groups trying
> everything that has worked for others. I'm running out of options.
>
> Any other ideas or suggestions?
>
> Michael Stembridge
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---