Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-15 Thread php

Now that you are on Apache 2.0.55 would you like me to email 
a copy of my 2.0.55 httpd.conf to see if that works?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Tue, 14 Mar 2006, Matt G. wrote:

> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G. 
> <[EMAIL PROTECTED]> Subject: Re: [PHP-INSTALL] php 
> returning completely empty documents on new
> apache install
> 
> Oh, and at this point I'm working under the theory that my 
> php.ini is not being found correctly.  I gave the path to 
> the directory containing the file on the ./configure 
> commandline like this:
> 
> ./configure  --with-apxs2=$MYDIR/bin/apxs --with-mysql=$MYDIR
> --prefix=$MYDIR --without-pear --with-libxml-dir=$MYDIR
> 
> My php.ini is in $MYDIR/lib which is where php will look 
> for it according to ./configure --help.
> 
> Is there any way I can find out if my php.ini is being 
> read?  I've tried putting syntax errors in it, but see 
> nothing come out in the logs indicating as such.
> 
> -Matt
> 
> 
> On 14/03/06, Matt G. <[EMAIL PROTECTED]> wrote:
> >
> > Here's my apache startup message from my error log:
> >
> > [Tue Mar 14 15:40:19 2006] [notice] Apache/2.0.55 (Unix) PHP/5.1.2
> > configured -- resuming normal operations
> >
> > Here's the server signature from a 404 document:
> >
> > Apache/2.0.55 (Unix) PHP/5.1.2 Server at MYHOSTNAME Port MYPORT
> >
> > You might notice that I've switched over to apache 2.0 in an effort to get
> > this working.  Unfortunately, the exact same problem exists even with my
> > 2.0 install.  Regarding the httpd.conf, I'm reasonably sure I'm editing
> > the correct file because the other options I've changed in there (like
> > server port number) have taken effect properly.  The other thing I thought
> > about was that perhaps there's a firewall or cache in-between my browser and
> > the server that's doing something funky, but to make sure there wasn't, I
> > tried a wget of my hello.php from the exact server where my httpd is.  The
> > doc returned was still 0 bytes.
> >
> > G.
> >
> > On 14/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Are you sure that you are editing the right httpd.conf file
> > > Matt?
> > >
> > > I've edited the wrong file before, then wondered why my
> > > changes have no effect.
> > >
> > > You could try adding something to your httpd.conf that will
> > > generate an error, such as the wrong path to the php module.
> > >
> > > Then do apachectl -t to do a syntax error on your httpd.conf
> > > file.
> > >
> > > If you get 'syntax OK' and no error message then this may
> > > be the problem.
> > >
> > > Keith
> > >
> > >
> > > In theory, theory and practice are the same;
> > > In practice they are not.
> > >
> > > On Tue, 14 Mar 2006 [EMAIL PROTECTED] wrote:
> > >
> > > > To: php-install@lists.php.net
> > > > From: [EMAIL PROTECTED]
> > > > Subject: Re: [PHP-INSTALL] php returning completely empty documents on
> > > new
> > > > apache install
> > > >
> > > >
> > > > One more thing Matt, before I ask on the apache mailing
> > > > list:
> > > >
> > > > Can you check your apache error_log please, and see if it
> > > > says that php is starting ok.
> > > >
> > > > This is what it says in my Apache 2.2.0 error_log when it
> > > > starts up:
> > > >
> > > > [Sun Mar 12 05:52:45 2006] [info] mod_unique_id: using ip
> > > > addr 10.0.0.1
> > > > [Sun Mar 12 05:52:46 2006] [notice] Digest: generating
> > > > secret for digest authentication ...
> > > > [Sun Mar 12 05:52:46 2006] [notice] Digest: done
> > > > [Sun Mar 12 05:52:46 2006] [info] mod_unique_id: using ip
> > > > addr 10.0.0.1
> > > > [Sun Mar 12 05:52:47 2006] [notice] Apache/2.2.0 (Unix)
> > > > PHP/5.1.2 configured
> > > >  -- resuming normal operations
> > > >
> > > > What do you have in your error_log?
> > > >
> > > > Keith
> > > >
> > > > In theory, theory and practice are the same;
> > > > In practice they are not.
> > > >
> > > > On Tue, 14 Mar 2006 [EMAIL PROTECTED] wrote:
> > > 

Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-15 Thread php

On Tue, 14 Mar 2006, Matt G. wrote:

> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G. 
> <[EMAIL PROTECTED]> Subject: Re: [PHP-INSTALL] php 
> returning completely empty documents on new
> apache install
> 
> Oh, and at this point I'm working under the theory that my 
> php.ini is not being found correctly.  I gave the path to 
> the directory containing the file on the ./configure 
> commandline like this:
> 
> ./configure --with-apxs2=$MYDIR/bin/apxs 
> --with-mysql=$MYDIR --prefix=$MYDIR --without-pear 
> --with-libxml-dir=$MYDIR

Try compiling php5 with absolute pathnames, instead of the 
$MYDIR variable, such as:

Do 'make clean' then try:

#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/usr/local/apache-2.2.0/bin/apxs' \
'--prefix=/usr/local/php-5.1.2' \
"$@"

Change the above paths to absolute paths to where you have 
put apache 2.0.55, and to the directory path you want php5 
installed into.

You can use the same installation path for php5, or a new 
path. If you choose to use the same php installation path, 
it may help to delete the existing php5 installation, rather 
than overwritting the old one.

To keep things simple, don't bother about mysql or any 
other extension for now. This will give you an ample php5 
module to play around with.

If you can get phpinfo() working, then you will be able to 
see what is happening. phpinfo() is part of the php core, 
and works whether or not you have a php.ini file.

HTH

Keith


Re: [PHP-INSTALL] php returning completely empty documents on newapache install

2006-03-15 Thread php

Details are already posted Jim.

Please follow the instructions here.

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Wed, 15 Mar 2006, Jim Douglas wrote:
> 
> How do I unsubscribe from this list?


[PHP-INSTALL] Very quiet today

2006-03-16 Thread php

Has everyone unsubscribed from the list since I posted the 
details for getting off the list - LOL.

Keith

In theory, theory and practice are the same;
in practice they are not.

To unsubscribe from this list, please see detailed 
instructions already posted at:

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2


Re: [PHP-INSTALL] Very quiet today

2006-03-16 Thread php

Are you sure you are using the same address you used to 
subscribe to the list to unsubscribe with Duncan?

Keith

In theory, theory and practice are the same;
in practice they are not.

To unsubscribe from this list, please see detailed 
instructions already posted at:

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2

On Thu, 16 Mar 2006, Duncan Adams wrote:

> To: [EMAIL PROTECTED]
> From: Duncan Adams <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] Very quiet today
> 
> warning dyslexic speller ahead.
> 
> no i bielive that it is impossible to get off the list, well for me at
> any rate, must have fucked u my profile or something and now i am stuck
> with it.  i see they sent u the detailed instructions at the bottom
> of the page.
> 
> wait lets do this again.
> 
> ok loaded up into the revers black and white page clicked the link and
> got the php page 
> 
> find item number 4 "Installation issues and problems
> How to install PHP with partiucular configurations, and servers" 
> 
> and click the radio button under normal cose i is not in digest mode
> 
> right scroll to bottom of page and past email address
> 
> [EMAIL PROTECTED] into the nice little box called email and
> click the second button called unsubscribe 
> 
> pagechanges and goes to 
> 
> "A request has been entered into the mailing list processing queue. You
> should receive an email at [EMAIL PROTECTED] shortly
> describing how to complete your request."
> 
> yea baby we only been this far about 20 times now 
> 
> off for a quick cup of java in the time it normaly takes for he
> confermation to come back.
> 
> ahh 
> 
> right on time 
> 
> Hi! This is the ezmlm program. I'm managing the
> php-install@lists.php.net mailing list.
> 
> I'm working for my owner, who can be reached
> at [EMAIL PROTECTED]
> 
> bla bla etc 
> 
> just give it a quick once over again just to make sure that every thing
> is how i remember it and send mail to
> "[EMAIL PROTECTED]"
> empty mail 
> no subject
> 
> ok some thing i have done for the first time is read all the headder
> information just incase the mai adderss or some thing was wronge. cant
> find any thing so hit send.
> 
> ok it is an hour after my home time and i am on leave so i am out of
> here.


Re: [PHP-INSTALL] Q: apache 2.2 and php 5.1.2 don't interact properly.

2006-03-17 Thread php

Yuo need to add the following to httpd.conf to tell Apache 
to sent files ending with .php to the php apache server 
module.

AddType application/x-httpd-php .php

then if you write a testpage called 'getphpinfo.php'

and add this into it:



that should return alot of usefull information about your 
php and Apache installation.

Keith


In theory, theory and practice are the same;
in practice they are not.

To unsubscribe from this list, please see detailed 
instructions already posted at:

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2

On Thu, 16 Mar 2006, vb wrote:

> To: php-install@lists.php.net
> From: vb <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] Q: apache 2.2 and php 5.1.2 don't interact properly.
> 
> Hello all:
> 
> Sorry if this is FAQ - I don't seem to be able to find any.
> 
> I just installed the latest Apache (2.2) and PHP (5.2.1) on a Sun Sparc
> Linux platform.
> 
> It was a vanilla installation, followed almost to the letter the
> instructions at http://www.php.net/manual/en/install.unix.apache2.php
> (although this is for apache 2.0, not 2.2). The only difference was that
> mysql path was required for php ./configure, even though mysql is installed
> in the standard place.
> 
> The problem is that the server does not process php properly. Putting the
> code below into index.php
> 
>  echo "";
> echo "It works";
> echo "";
> ?>
> 
> and trying to browse this page I see an empty screen in the browser, 'view
> source' shows exactly this code. That is the server does not interpret the
> php code - it just dumps it into the page!
> 
> I noticed that /usr/local/bin/php when invoked with -i returns php(cli) - in
> my previous installations it was php(cgi).
> 
> Can anyone please help me to understand what is going on here - from that
> little info I managed to find it looks like the server is using php in cli
> mode instead of cgi mode - is this the case? What needs to be done to get it
> working?
> 
> 
> All hints would be highly appreciated,
> 
> TIA,
> /vb
> 


Re: [PHP-INSTALL] Q: apache 2.2 and php 5.1.2 don't interact properly.

2006-03-17 Thread php

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2

On Fri, 17 Mar 2006, Vadim Bendebury wrote:

> To: Malcolm Evans <[EMAIL PROTECTED]>, Brad Kowalczyk <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> From: Vadim Bendebury <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] Q: apache 2.2 and php 5.1.2 don't interact
> properly.
> 
> Yes, this was it. I actually was amazed to find out that Keith's suggestion
> about putting  started perusing httpd.conf to find out what was missing in the server
> config - this is when your emails came very timely.
> 
> I find it counterintuitive that the setting is in php.ini, but whatever
> works.. ;-)
> 
> Thank you all, gentlemen,
> 
> regards,
> Vadim
> 
> - Original Message - 
> From: "Malcolm Evans" <[EMAIL PROTECTED]>
> To: "vb" <[EMAIL PROTECTED]>
> Sent: Friday, March 17, 2006 6:04 PM
> Subject: Re: [PHP-INSTALL] Q: apache 2.2 and php 5.1.2 don't interact
> properly.
> 
> 
> > You should be using  > interpreted, which I gather from
> > your email is what you're seeing.
> >
> > Regards,
> >
> > Malcolm
> >
> > On 17/03/2006, at 15:03, vb wrote:
> >
> > > Hello all:
> > >
> > > Sorry if this is FAQ - I don't seem to be able to find any.
> > >
> > > I just installed the latest Apache (2.2) and PHP (5.2.1) on a Sun Sparc
> > > Linux platform.
> > >
> > > It was a vanilla installation, followed almost to the letter the
> > > instructions at http://www.php.net/manual/en/install.unix.apache2.php
> > > (although this is for apache 2.0, not 2.2). The only difference was
> > > that
> > > mysql path was required for php ./configure, even though mysql is
> > > installed
> > > in the standard place.
> > >
> > > The problem is that the server does not process php properly. Putting
> > > the
> > > code below into index.php
> > >
> > >  > > echo "";
> > > echo "It works";
> > > echo "";
> > > ?>
> > >
> > > and trying to browse this page I see an empty screen in the browser,
> > > 'view
> > > source' shows exactly this code. That is the server does not interpret
> > > the
> > > php code - it just dumps it into the page!
> > >
> > > I noticed that /usr/local/bin/php when invoked with -i returns
> > > php(cli) - in
> > > my previous installations it was php(cgi).
> > >
> > > Can anyone please help me to understand what is going on here - from
> > > that
> > > little info I managed to find it looks like the server is using php in
> > > cli
> > > mode instead of cgi mode - is this the case? What needs to be done to
> > > get it
> > > working?
> > >
> > >
> > > All hints would be highly appreciated,
> > >
> > > TIA,
> > > /vb
> > >
> >
> 
> 


[PHP-INSTALL] Optimum configuration for Apache and PHP

2006-03-18 Thread php
Hello all,
We are building a new LAMP system, which will contain lots of virtualhosts
(most of them are Typo3 vhosts).
Hardware:
Processors: 2 x Xeon(TM) CPU 3.20GHz, 2048 KB
(EM64T, HyperThreading)
RAM: 4GB

Im wondering what would be the best solution to setup apache and PHP
(we want install php4 and php5 on the same machine)
I thought about the following possibilities

(Configuration_1)
- apache2 compiled with "worker mpm" and "threads"
- php compiled as "cgi" and "threads"
? what about fastcgi in this configuartion ?
? what about eaccelerator or pecl-apc in this configuartion ?
(/Configuration_1)

(Configuration_2)
- apache2 compiled with "prefork mpm"
- php compiled as "cgi"
(all without threads)
? what about fastcgi in this configuartion ?
? what about eaccelerator or pecl-apc in this configuartion ?
(/Configuration_2)

(Configuration_3)
- apache2 compiled with "prefork mpm"
- php compiled as "mod_php"
? what about eaccelerator or pecl-apc in this configuartion ?
(/Configuration_3)


Which one is the way to go regarding stability, performance and security?
How does mod_suphp affect performance and stability?

Thanks for helping us.


Re: [PHP-INSTALL] Optimum configuration for Apache and PHP

2006-03-18 Thread php
>From what I've read in the documentation.

You can only use 1 type of Apache core MPM module at a time.

PHP is a bit fussy about the MPM you use under Linux.

PHP Manual

Chapter 4. Installation on Unix systems

Apache 2.0 on Unix systems

This section contains notes and hints specific to Apache 
2.0 installs of PHP on Unix systems. 

Warning

We do not recommend using a threaded MPM in production with 
Apache2. Use the prefork MPM instead, or use Apache1. For 
information on why, read the related FAQ entry on using 
Apache2 with a threaded MPM

I think you need to use a php module for apache, - not CGI, 
as AFAIK the Apache php module would be faster than the 
external cgi program.

You can just use the php5 Apache module and tell it to run 
in php 4 mode using the following php directive:

zend.ze1_compatibility_mode boolean (0 | 1)

// default is off - 0
zend.ze1_compatibility_mode 0

Enable compatibility mode with Zend Engine 1 (PHP 4). It 
affects the cloning, casting, and comparing of objects. 

This can be set anywhere, in the php.ini file, or on a page 
by page basis. So in theory, you should be able to just use 
php5, and switch into php4 mode as required.

You cannot use the Apache php4 and php5 modules together in 
1 server instance.

PHP Manual

Appendix B. Migrating from PHP 4 to PHP 5

Table of Contents
What has changed in PHP 5
Backward Incompatible Changes
CLI and CGI
Migrating Configuration Files
New Functions
New Directives
Databases
New Object Model
Error Reporting

What has changed in PHP 5

PHP 5 and the integrated Zend Engine 2 have greatly 
improved PHP's performance and capabilities, but great care 
has been taken to break as little existing code as possible. 
So migrating your code from PHP 4 to 5 should be very easy. 
Most existing PHP 4 code should be ready to run without 
changes, but you should still know about the few differences 
and take care to test your code before switching versions in 
production environments. 

For php accelerators you may be able to use the following 
with php5:

http://www.php-accelerator.co.uk/

They also sell a commercial php encoder, which is amazingly 
fast, and reasonably priced.

http://www.ioncube.com/sa_encoder.php

You also need to be familiar with optimal database design 
techniques, and how to write efficient SQL queries, and fine 
tune and squeeze as much performance out of mysql as possible.

See chapter 7 from the mysql manual.

7. Optimization
7.1. Optimization Overview
7.1.1. MySQL Design Limitations and Tradeoffs
7.1.2. Designing Applications for Portability
7.1.3. What We Have Used MySQL For
7.1.4. The MySQL Benchmark Suite
7.1.5. Using Your Own Benchmarks
7.2. Optimizing SELECT and Other Statements
7.2.1. Optimizing Queries with EXPLAIN
7.2.2. Estimating Query Performance
7.2.3. Speed of SELECT Queries
7.2.4. WHERE Clause Optimization
7.2.5. Range Optimization
7.2.6. Index Merge Optimization
7.2.7. IS NULL Optimization
7.2.8. DISTINCT Optimization
7.2.9. LEFT JOIN and RIGHT JOIN Optimization
7.2.10. Nested Join Optimization
7.2.11. Outer Join Simplification
7.2.12. ORDER BY Optimization
7.2.13. GROUP BY Optimization
7.2.14. LIMIT Optimization
7.2.15. How to Avoid Table Scans
7.2.16. Speed of INSERT Statements
7.2.17. Speed of UPDATE Statements
7.2.18. Speed of DELETE Statements
7.2.19. Other Optimization Tips
7.3. Locking Issues
7.3.1. Locking Methods
7.3.2. Table Locking Issues
7.3.3. Concurrent Inserts
7.4. Optimizing Database Structure
7.4.1. Design Choices
7.4.2. Make Your Data as Small as Possible
7.4.3. Column Indexes
7.4.4. Multiple-Column Indexes
7.4.5. How MySQL Uses Indexes
7.4.6. The MyISAM Key Cache
7.4.7. MyISAM Index Statistics Collection
7.4.8. How MySQL Opens and Closes Tables
7.4.9. Drawbacks to Creating Many Tables in the Same Database
7.5. Optimizing the MySQL Server
7.5.1. System Factors and Startup Parameter Tuning
7.5.2. Tuning Server Parameters
7.5.3. Controlling Query Optimizer Performance
7.5.4. How Compiling and Linking Affects the Speed of MySQL
7.5.5. How MySQL Uses Memory
7.5.6. How MySQL Uses DNS
7.6. Disk Issues
7.6.1. Using Symbolic Links

I'm sure others on the list can add alot more to my 2 cents 
worth.

HTH

Keith

In theory, theory and practice are the same;
in practice they are not.

To unsubscribe from this list, please see detailed 
instructions already posted at:

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2

On Sat, 18 Mar 2006 [EMAIL PROTECTED] wrote:

> To: php-install@lists.php.net
> From: [EMAIL PROTECTED]
> Subject: [PHP-INSTALL] Optimum configuration for Apache and PHP 
> 
> Hello all, We are building a new LAMP system, which will 
> contain lots of virtualhosts (most of them are Typo3 
> vhosts). Hardware: Processors: 2 x Xeon(TM) CPU 3.20GHz, 
> 2048 KB (EM64T, HyperThreading) RAM: 4GB
> 
> Im wondering what would be the best solution to setup apache and PHP
> (we want install php4 and php5 on the 

Re: [PHP-INSTALL] can't access mysql from a php script

2006-03-22 Thread php

remove --without-mysql:

You need to explicitly enable mysql like this:

./configure
--with-apxs2=/usr/local/apache-2.2.0/bin/apxs'
--prefix=/usr/local/php-5.1.2'
--with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686'
--with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config'
--with-mysql-sock=/var/lib/mysql/mysql.sock'
--with-mhash'
--enable-shared=yes'
--enable-all=shared'

and anything else you want to compile php with.

Alter the paths to suite your environment.

Keith


In theory, theory and practice are the same;
in practice they are not.

To unsubscribe from this list, please see detailed 
instructions already posted at:

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2

On Wed, 22 Mar 2006, Jahislove wrote:

> To: php-install@lists.php.net
> From: Jahislove <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] can't access mysql from a php script
> 
> hello all ,
> 
> i am under NetBSD 3.0
> and i have installed apache/php/mysql as described on this wiki
> http://wiki.onetbsd.org/index.php/How_to_install_a_LAMP_Server
> 
> /usr/pkgsrc/www/apache2
> /usr/pkgsrc/databases/mysql5-server
> /usr/pkgsrc/www/ap-php  (Installing the PHP Module for Apache)
> 
> apache work fine
> php work fine
> mysql work fine
> 
> but it seem that i can't access database from a php script
> 
> this little script (test.php) return only "test1" and not 
> "test2" without any error
> 
>  $host = "localhost";
> $login = "compteur";
> $password = "xx";
> $database = "compteur";
> $table = "nb_connect";
> 
> echo "test1";
> 
> $db = mysql_connect($host, $login, $password)
> or die("Impossible de se connecter : ".mysql_error());
> 
> echo "test2";
> 
> mysql_select_db($database,$db);
> 
> mysql_query("INSERT INTO $table VALUES('','blabla','30')")
> or die("error : ".mysql_error());
> 
> $update = mysql_insert_id();
> mysql_close($db);
> ?>
> 
> 
> a phpinfo() return :
> Configure Command  './configure' '--without-mysql' '--without-iconv'
> '--disable-posix' '--with-config-file-path=/usr/pkg/etc'
> '--with-exec-dir=/usr/pkg/libexec/php4' '--with-regex=system'
> '--enable-memory-limit' '--enable-track-vars' '--enable-ipv6'
> '--with-openssl=/usr' '--with-apxs2=/usr/pkg/sbin/apxs'
> '--prefix=/usr/pkg' '--host=mipsel--netbsd' '--mandir=/usr/pkg/man'
> 
> any idea of the problem?
> is it possible that the problem  come from '--without-mysql'  ?
> and so how can i install that?


Re: [PHP-INSTALL] can't access mysql from a php script

2006-03-22 Thread php

OK, forget the last mail - lets start again.

Does the output from phpinfo() say you have the mysql module 
loaded?

If yes, you may need to tell php to speak to mysql on the 
socket that mysql is listening on, so php can connect to the 
mysql database.

You may need to alter the following directive in your 
php.ini file.

; Default socket name for local MySQL connects.  If empty, 
; uses the built-in MySQL defaults.
mysql.default_socket = /var/lib/mysql/mysql.sock

set the above value to the same path and filename that mysql 
is using. That should get things working ok.

Keith

On Thu, 23 Mar 2006, Jahislove wrote:

> To: php-install@lists.php.net
> From: Jahislove <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] can't access mysql from a php script
> 
> Sorry , i don't understand what you mean :
> 
> i installed php with a NetBSD package:
> #  cd /usr/pkgsrc/www/ap-php
> #  ls -l
> drwxr-xr-x  2 root  wheel  512 Mar  2 19:08 CVS
> -rw-r--r--  1 root  wheel  368 Nov  4  2004 DESCR
> -rw-r--r--  1 root  wheel  821 Mar 30  2005 MESSAGE
> -rw-r--r--  1 root  wheel  909 Feb  5 23:11 Makefile
> -rw-r--r--  1 root  wheel  108 Nov  4  2004 PLIST
> # make install clean
> 
> and i have no idea  where to remove --without-mysql and where to add the
> ./configure...
> 
> [EMAIL PROTECTED] a écrit :
> > remove --without-mysql:
> > 
> > You need to explicitly enable mysql like this:
> > 
> > ./configure
> > --with-apxs2=/usr/local/apache-2.2.0/bin/apxs'
> > --prefix=/usr/local/php-5.1.2'
> > --with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686'
> > --with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config'
> > --with-mysql-sock=/var/lib/mysql/mysql.sock'
> > --with-mhash'
> > --enable-shared=yes'
> > --enable-all=shared'
> > 
> > and anything else you want to compile php with.
> > 
> > Alter the paths to suite your environment.
> > 
> > Keith
> > 
> > 
> > In theory, theory and practice are the same;
> > in practice they are not.
> > 
> > To unsubscribe from this list, please see detailed instructions
> > already posted at:
> > 
> > http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2
> > 
> > On Wed, 22 Mar 2006, Jahislove wrote:
> > 
> > > To: php-install@lists.php.net
> > > From: Jahislove <[EMAIL PROTECTED]>
> > > Subject: [PHP-INSTALL] can't access mysql from a php script
> > > 
> > > hello all ,
> > > 
> > > i am under NetBSD 3.0
> > > and i have installed apache/php/mysql as described on this wiki
> > > http://wiki.onetbsd.org/index.php/How_to_install_a_LAMP_Server
> > > 
> > > /usr/pkgsrc/www/apache2
> > > /usr/pkgsrc/databases/mysql5-server
> > > /usr/pkgsrc/www/ap-php  (Installing the PHP Module for
> > > Apache)
> > > 
> > > apache work fine
> > > php work fine
> > > mysql work fine
> > > 
> > > but it seem that i can't access database from a php script
> > > 
> > > this little script (test.php) return only "test1" and not "test2"
> > > without any error
> > > 
> > >  > > $host = "localhost";
> > > $login = "compteur";
> > > $password = "xx";
> > > $database = "compteur";
> > > $table = "nb_connect";
> > > 
> > > echo "test1";
> > > 
> > > $db = mysql_connect($host, $login, $password)
> > > or die("Impossible de se connecter : ".mysql_error());
> > > 
> > > echo "test2";
> > > 
> > > mysql_select_db($database,$db);
> > > 
> > > mysql_query("INSERT INTO $table VALUES('','blabla','30')")
> > > or die("error : ".mysql_error());
> > > 
> > > $update = mysql_insert_id();
> > > mysql_close($db);
> > > ?>
> > > 
> > > 
> > > a phpinfo() return :
> > > Configure Command  './configure' '--without-mysql'
> > > '--without-iconv'
> > > '--disable-posix' '--with-config-file-path=/usr/pkg/etc'
> > > '--with-exec-dir=/usr/pkg/libexec/php4' '--with-regex=system'
> > > '--enable-memory-limit' '--enable-track-vars' '--enable-ipv6'
> > > '--with-openssl=/usr' '--with-apxs2=/usr/pkg/sbin/apxs'
> > > '--prefix=/usr/pkg' '--host=mipsel--netbsd'
> > > '--mandir=/usr/pkg/man'
> > > 
> > > any idea of the problem?
> > > is it possible that the problem  come from '--without-mysql'  ?
> > > and so how can i install that?
> > 
> 
> 

Re: [PHP-INSTALL] can't access mysql from a php script

2006-03-22 Thread php
On Thu, 23 Mar 2006, Jahislove wrote:

> To: php-install@lists.php.net
> From: Jahislove <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] can't access mysql from a php script
> 
> [EMAIL PROTECTED] a écrit :
> > OK, forget the last mail - lets start again.
> > 
> > Does the output from phpinfo() say you have the mysql module loaded?
> 
> No there is nothing about mysql in my phpinfo()

Look at the following setting, about the 6th entry down in 
phpinfo output:

Configuration File (php.ini) Path 
/usr/local/php-5.1.2/lib/php.ini 

That tells you where your current installation of php will 
look for it's configuration file, php.ini.

Make sure that your php.ini is in the correct location for 
your installation of php. You may need to copy php.ini or 
move it from another location to the one where your php 
looks for it.

There are two settings you will need to alter in php.ini to 
load the mysql extension - assuming that the mysql 
extension exists on your sysyem.

If you are not sure where mysql.so is on your system, you 
could use something like mc (Midnight Commander) to do a 
search with:

F9->C->F (Function Key F9->Command->Find File)

Start at: /

Filename: mysql.so

Content: (leave empty)

[ ] case Sensitive

Then hit OK.

Hopefully, this will tell you where mysql.so is on your 
system. If it does not show up, you may have to go into your 
Linux distro's setup program, and install the mysql.so php 
extension if it is available there.

Set the following directive to point to the directory where 
your php extensions are.

; Directory in which the loadable extensions (modules) reside.
;extension_dir = ./
extension_dir = /usr/local/php-5.1.2/lib/php/extensions/

Further down in php.ini you you need to tell php to look in 
the above directory, and load the mysql.so extension with:

;extension=mime_magic.so
extension=mysql.so
;extension=ncurses.so

Don't forget to restart Apache server to make any changes to 
php.ini come into effect. The apache php module only reads 
php.ini at server startup time.

There should be a section for the mysql module appear in 
phpinfo output, when the mysql module has loaded.

Hopefully, this will help you to get the mysql.so module 
loaded into php.

Regards

Keith

Re: [PHP-INSTALL] can't access mysql from a php script

2006-03-23 Thread php

Well you've got me stumped now.

I don't know if anyone else on the list has any suggestions.

All I can suggest is that you download the php sources from 
the php website, and try and compile php yourself. It's not 
that difficult to do.

You will also have the advantage of being able to compile 
the latest version to use on your distro, as upgrades are 
made available.

You will need the mysql development libraries to compile php 
against.

Keith

In theory, theory and practice are the same;
in practice they are not.

To unsubscribe from this list, please see detailed 
instructions already posted at:

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2

On Thu, 23 Mar 2006, Jahislove wrote:

> To: php-install@lists.php.net
> From: Jahislove <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] can't access mysql from a php script
> 
> [EMAIL PROTECTED] a écrit :
> > 
> > Look at the following setting, about the 6th entry down in phpinfo
> > output:
> > 
> > Configuration File (php.ini) Path /usr/local/php-5.1.2/lib/php.ini 
> > That tells you where your current installation of php will look for
> > it's configuration file, php.ini.
> 
> /usr/pkg/etc/php.ini
> 
> 
> > 
> > Make sure that your php.ini is in the correct location for your
> > installation of php. You may need to copy php.ini or move it from
> > another location to the one where your php looks for it.
> 
> yes php.ini is in the correct location
> 
> > 
> > There are two settings you will need to alter in php.ini to load the
> > mysql extension - assuming that the mysql extension exists on your
> > sysyem.
> > 
> > If you are not sure where mysql.so is on your system, you could use
> > something like mc (Midnight Commander) to do a search with:
> > 
> > F9->C->F (Function Key F9->Command->Find File)
> > 
> > Start at: /
> > 
> > Filename: mysql.so
> > 
> > Content: (leave empty)
> > 
> > [ ] case Sensitive
> > 
> > Then hit OK.
> > 
> # find / -name mysql.so
> /usr/pkgsrc/databases/php-mysql/work/php-4.4.1/ext/mysql/.libs/mysql.so
> /usr/pkgsrc/databases/php-mysql/work/php-4.4.1/ext/mysql/modules/mysql.so
> /usr/pkg/lib/php/20020429/mysql.so
> 
> 
> > Hopefully, this will tell you where mysql.so is on your system. If it
> > does not show up, you may have to go into your Linux distro's setup
> > program, and install the mysql.so php extension if it is available
> > there.
> > 
> > Set the following directive to point to the directory where your php
> > extensions are.
> > 
> > ; Directory in which the loadable extensions (modules) reside.
> > ; extension_dir = ./
> > extension_dir = /usr/local/php-5.1.2/lib/php/extensions/
> > 
> extension_dir = /usr/pkg/lib/php/20020429/mysql.so
> 
> 
> > Further down in php.ini you you need to tell php to look in the above
> > directory, and load the mysql.so extension with:
> > 
> > ; extension=mime_magic.so
> > extension=mysql.so
> > ; extension=ncurses.so
> > 
> but there is something strange here , there is a lot of ;extension=dll
> for windows , but there no ;extension=so
> 
> anyway i add
> extension=mysql.so
> 
> 
> 
> > Don't forget to restart Apache server to make any changes to php.ini
> > come into effect. The apache php module only reads php.ini at server
> > startup time.
> > 
> done
> 
> > There should be a section for the mysql module appear in phpinfo
> > output, when the mysql module has loaded.
> 
> still no mysql section :(
> > 
> > Hopefully, this will help you to get the mysql.so module loaded into
> > php.
> > 
> > Regards
> > 
> > Keith
> 
> 

Re: [PHP-INSTALL] php and lighttpd

2006-03-24 Thread php

>From a web browser, does phpinfo() show a section for mysql 
directives?

Keith

In theory, theory and practice are the same;
in practice they are not.

To unsubscribe from this list, please see detailed 
instructions already posted at:

http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2

On Fri, 24 Mar 2006, James Nachlin wrote:

> To: php-install@lists.php.net
> From: James Nachlin <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] php and lighttpd
> 
> Hi,
> 
> I have php running under llighty, but am unable to connect to mysql with
> php.  The strange thing is, when I look at the phpinfo() output via
> lighty, the configure line is like
> 
>'./configure' '--enable-fastcgi'
> 
> whereas running it on the command line, the line is
> 
> './configure' '--enable-fastcgi'
>             '--with-mysql=/usr/local/mysql'
> More data:
> # which php
> /usr/local/bin/php
> # php --version
> PHP 5.1.2 (cgi-fcgi) (built: Mar 25 2006 05:03:03) [...]
> 
> and lighttpd.conf points to that php:
> fastcgi.server = ( ".php" =>
> ( "localhost" =>
> (
> "socket" => "/tmp/php-fastcgi.socket",
> "bin-path" => "/usr/local/bin/php"
> ) 
> ) 
> ) 
> 
> The error I get is a "Call to undefined function: mysql_pconnect".
> 
> Any help appreciated!
> 


[PHP-INSTALL] test

2006-05-25 Thread php
sorry


[PHP-INSTALL] PHP INSTALLATION HELP NEEDED PLEASE

2006-05-25 Thread php
HELLO ANYONE

I downloaded and installed xampp version win32 1.5.2-instaler with apache
2.2.0 and php 5.1.2.

I'm a beginner in this field so:
The problem is with the starting page for default file phptest.php. when I
type localhost everything is ok, but when I type the testing php file
(localhost/phptest.php)an error occurs:

Error 404
localhost
05/26/06 00:34:50
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a PHP/5.1.2
mod_autoindex_color

I was trying to configure the httpd.conf as its written in my book (which is
for the version of php 5.0 but tried also the manual) and all is the same,
my directory is c:/program files/xampp/ <- everything is in this folder, I'm
attaching my httpd.conf file, the testing php file (phptest.php) and
error.log for your screening so please help me with this problem I'll be
very grateful for any advices.

Cheers



begin 666 httpd.conf
M(PT*(R!4:&ES(&ES('1H92!M86EN($%P86-H92!(5%10('-E2!A2!F;W(@
M;6%N>0T*(R!O9B!T:&4@&%M<' O87!A8VAE(B!W:6QL(&)E(&EN=&5R<')E=&5D(&)Y('1H90T*(R!S
M97)V97(@87,@(D,Z+U!R;[EMAIL PROTECTED],O>&%M<' O87!A8VAE+VQO9W,O
M9F]O+FQO9R(N#0HC#0HC($Y/5$4Z(%=H97)E(&9I;&5N86UE2!D969A=6QT+B @270@:7,@6]U('=I6]U
M('=I;&P@;F5E9"!T;R!C:&[EMAIL PROTECTED]@;&5A<[EMAIL PROTECTED]&]C:T9I;&[EMAIL 
PROTECTED](%!I
M9$9I;&4N#0HC#0I397)V97)2;V]T(")#.B]0&%M
M<&[EMAIL PROTECTED](R!,;V%D36]D=6QE(&9O;U]M;V1U;&4@;6]D=6QEE]L9&%P7VUO9'5L92!M;V1U;&5S+VUO9%]A=71H
M;GI?;&1A<"YS;PT*(TQO861-;V1U;&[EMAIL PROTECTED]:'I?9&)M7VUO9'5L92!M;V1U
M;&5S+VUO9%]A=71H>E]D8FTNE]GE]H;W-T7VUO9'5L92!M
M;V1U;&5S+VUO9%]A=71H>E]H;W-T+G-O#0I,;V%D36]D=6QE(&%U=&AZ7W5S
M97)?;6]D=6QE(&UO9'5L97,O;6]D7V%U=&AZ7W5S97(N%]M;V1U;&4@;6]D=6QE'!I'!I'1?9FEL=&5R7VUO9'5L92!M;V1U;&5S+VUO9%]E>'1?9FEL=&5R
M+G-O#0HC3&]A9$UO9'5L92!H96%D97)S7VUO9'5L92!M;V1U;&5S+VUO9%]H
M96%D97)S+G-O#0HC3&]A9$UO9'5L92!I9&5N=%]M;V1U;&4@;6]D=6QE'E?;6]D=6QE(&UO9'5L97,O;6]D7W!R;WAY+G-O#0HC3&]A9$UO9'5L
M92!P5]A:G!?;6]D=6QE(&UO9'5L97,O;6]D7W!R;WAY7V%J<"YS;PT*
M(TQO861-;V1U;&4@<')O>'E?8F%L86YC97)?;6]D=6QE(&UO9'5L97,O;6]D
M7W!R;WAY7V)A;&%N8V5R+G-O#0HC3&]A9$UO9'5L92!P5]C;VYN96-T
M7VUO9'5L92!M;V1U;&5S+VUO9%]P5]C;VYN96-T+G-O#0HC3&]A9$UO
M9'5L92!P5]H='1P7VUO9'5L92!M;V1U;&5S+VUO9%]P5]H='1P
M+G-O#0HC3&]A9$UO9'5L92!P5]F='!?;6]D=6QE(&UO9'5L97,O;6]D
M7W!R;WAY7V9T<"YS;PT*(TQO861-;V1U;&4@7!E(&%P<&QI8V%T:[EMAIL PROTECTED]:'1T<&0M<&AP
M("YP:' -"B,@8V]N9FEG=7)E('1H92!P871H('1O('!H<"YI;FD-"E!(4$EN
M:41I'E?:'1M;%]M;V1U;&4@;6]D=6QE'E?:'1M
M;"YS;PT*(TQO861-;V1U;&4@>&UL;G-?;6]D=6QE(&UO9'5L97,O;6]D7WAM
M;&YS+G-O#0HC3&]A9$UO9'5L92!P5]X;6Q?;6]D=6QE(&UO9'5L97,O
M;6]D7W!R;WAY7WAM;"YS;PT*(TQO861-;V1U;&[EMAIL PROTECTED];6]D=6QE(&UO9'5L
M97,O;6]D7V)W+G-O#0H-"@T*(R G36%I;B<@2!R97%U97-T0T*(R!I="!E>'!L
M:6-I=&QY('1O('!R979E;G0@<')O8FQE;7,@9'5R:6YG('-T87)T=7 N#0HC
M#0HC($EF('EO=7(@:&]S="!D;V5S;B=T(&[EMAIL PROTECTED]2!D969A=6QT+"!A;&P@6UB;VQI8R!L:6YK&%M
M<' O87!A8VAE+W1E2!R97-T6U,:6YK3X-"@T*(PT*(R!.;W1E('[EMAIL PROTECTED])O;2!T:&ES('!O
M:6YT(&9O6]U(&UU'!E8W0L(&UA
M:V4@2!E;F%B;&5D(&ET
M#0HC(&)E;&[EMAIL PROTECTED](PT*#0HC#0HC(%1H:7,@6]U('-E="!$;V-U;65N=%)O;[EMAIL 
PROTECTED]&\N#0HC#0H\1&ER
M96-T;W)Y(")#.B]02!C
M;VUB:6YA=&EO;B!O9CH-"B @(" C(" @26YD97AE6U,:6YK6U,:6YK&5C0T=)($UU;'1I
M5FEE=W,-"B @(" C#0H@(" @(R!.;W1E('1H870@(DUU;'1I5FEE=W,B(&UU
M<[EMAIL PROTECTED]@;[EMAIL PROTECTED]<&QI8VET;'DJ("TM+2 B3W!T:6]N[EMAIL PROTECTED](" @(",-"B @(" 
C(%1H
M92!/<'1I;VYS(&1I7=O<[EMAIL 
PROTECTED](" @(",@
M("!/<'1I;VYS($9I;&5);F9O($%U=&A#;VYF:6<@3&EM:70-"B @(" C#0H@
M(" @06QL;W=/=F5R3X-"@T*(PT*(R!$:7)E8W1O#H@4EN9&5X(&EN9&5X+G!H<"!I;F1E>"YP:' T(&EN9&5X+G!H
M<#,@:[EMAIL PROTECTED](&EN9&5X+G!L(&EN9&5X+FAT;6P@:[EMAIL PROTECTED]:'1M(&EN
M9&5X+G-H=&UL(&EN9&5X+G!H=&UL#0H\+TEF36]D=6QE/@T*#0HC#0HC(%1H
M92!F;VQL;W=I;F<@;&EN97,@<')E=F5N=" N:'1A8V-E6]U("ID;[EMAIL PROTECTED]&5F:6YE(&%N
M(&5RU5S97(M06=E
M;G1]:5PB(B!C;VUB:6YE9 T*(" @($QO9T9O6]U("ID
M;RH-"B @(" C(&1E9FEN92!P97(M/%9I6

[PHP-INSTALL] php.ini doesn't get loaded

2007-07-06 Thread php
Hello,

I'm trying to compile PHP 5.2.3 on CentOS with the following configure:

'./configure' '--prefix=/usr/local/php' '--with-xml' '--enable-bcmath'
'--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr'  
'--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr'
'--with-openssl' '--enable-discard-path' '--without-pear'
'--enable-sockets' '--enable-track-vars' '--with-ttf'
'--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-zlib'
'--with-apxs2=/usr/sbin/apxs';

Everything is compiled and installed correctely. I can run php scripts
normally. But i need to change display_errors = on and install
eaccelerator. So i created a page with phpinfo() to find out where is
php.ini.

I got this

Configuration File (php.ini) Path   /usr/local/php/lib
Loaded Configuration File   (none)

It seens like php.ini is not being loaded. What can i do?

Thanks,

Fernando.


[PHP-INSTALL] errors when compiling 5.2.4RC2

2007-08-18 Thread php
Hello,

I try to compile php-5.2.4RC2 on a debian-etch and i got the following
errors when i launch "make" :

ext/libxml/.libs/libxml.o: In function `zm_deactivate_libxml':
/usr/local/php-5.2.4RC2/ext/libxml/libxml.c:671: undefined reference to
`xmlParserInputBufferCreateFilenameDefault'
/usr/local/php-5.2.4RC2/ext/libxml/libxml.c:672: undefined reference to
`xmlOutputBufferCreateFilenameDefault'
ext/libxml/.libs/libxml.o: In function `zm_activate_libxml':
/usr/local/php-5.2.4RC2/ext/libxml/libxml.c:651: undefined reference to
`xmlParserInputBufferCreateFilenameDefault'
/usr/local/php-5.2.4RC2/ext/libxml/libxml.c:652: undefined reference to
`xmlOutputBufferCreateFilenameDefault'
ext/dom/.libs/document.o: In function `zif_dom_document_xinclude':
/usr/local/php-5.2.4RC2/ext/dom/document.c:1772: undefined reference to
`xmlXIncludeProcessFlags'
ext/xmlreader/.libs/php_xmlreader.o: In function `zim_xmlreader_setSchema':
/usr/local/php-5.2.4RC2/ext/xmlreader/php_xmlreader.c:983: undefined
reference to `xmlTextReaderSchemaValidate'
ext/xmlwriter/.libs/php_xmlwriter.o: In function
`zif_xmlwriter_end_dtd_entity':
/usr/local/php-5.2.4RC2/ext/xmlwriter/php_xmlwriter.c:1357: undefined
reference to `xmlTextWriterEndDTDEntity'
ext/xmlwriter/.libs/php_xmlwriter.o: In function
`zif_xmlwriter_end_dtd_attlist':
/usr/local/php-5.2.4RC2/ext/xmlwriter/php_xmlwriter.c:1260: undefined
reference to `xmlTextWriterEndDTDAttlist'
ext/xmlwriter/.libs/php_xmlwriter.o: In function
`zif_xmlwriter_end_dtd_element':
/usr/local/php-5.2.4RC2/ext/xmlwriter/php_xmlwriter.c:1200: undefined
reference to `xmlTextWriterEndDTDElement'
ext/xmlwriter/.libs/php_xmlwriter.o: In function
`zif_xmlwriter_end_comment':
/usr/local/php-5.2.4RC2/ext/xmlwriter/php_xmlwriter.c:1035: undefined
reference to `xmlTextWriterEndComment'
ext/xmlwriter/.libs/php_xmlwriter.o: In function
`zif_xmlwriter_set_indent_string':
/usr/local/php-5.2.4RC2/ext/xmlwriter/php_xmlwriter.c:533: undefined
reference to `xmlTextWriterSetIndentString'
ext/xmlwriter/.libs/php_xmlwriter.o: In function
`zif_xmlwriter_start_comment':
/usr/local/php-5.2.4RC2/ext/xmlwriter/php_xmlwriter.c:1021: undefined
reference to `xmlTextWriterStartComment'
ext/xmlwriter/.libs/php_xmlwriter.o: In function `zif_xmlwriter_set_indent':
/usr/local/php-5.2.4RC2/ext/xmlwriter/php_xmlwriter.c:519: undefined
reference to `xmlTextWriterSetIndent'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Erreur 1


I've the following packages installed :

lindows:/usr/local/php-5.2.4RC2# dpkg -l libxml* |grep '^ii'
ii  libxml++2.6-22.14.0-0.1A C++ interface to the GNOME XML
library (libxml2)
ii  libxml++2.6-dev  2.14.0-0.1A C++ interface to the GNOME XML
library (libxml2)
ii  libxml2  2.6.27.dfsg-1 GNOME XML library
ii  libxml2-dev  2.6.27.dfsg-1 Development files for the GNOME XML
library
ii  libxmlrpc++-dev  0.7+cvs20040713-2 C++ library for XML-RPC - Development
files
ii  libxmlrpc++0 0.7+cvs20040713-2 C++ library for XML-RPC
ii  libxmlrpc-c3 0.9.10-4  A lightweight RPC library based on
XML and HTTP fo
ii  libxmlrpc-c3-dev 0.9.10-4  A lightweight RPC library based on
XML and HTTP fo
ii  libxmltok1   1.2-2 XML Parser Toolkit, runtime libraries

I've tried
--with-xmlrpc
--with-xmlrpc=/usr
--with-xmlrpc=shared,/usr



I join my config.txt.

Thanks for your help.

Patrick




--enable-bcmath 
--enable-calendar 
--enable-exif 
--enable-ftp 
--enable-shmop 
--enable-soap 
--enable-sockets 
--enable-sysvmsg 
--enable-sysvsem 
--enable-sysvshm 
--enable-wddx 
--enable-fastcgi 
--enable-dmalloc 
--enable-force-cgi-redirect 
--enable-discard-path 
--with-gmp=shared,/usr
--with-gettext=shared,/usr
--with-mysql=shared,/usr
--with-pdo-mysql=shared,/usr
--with-mysqli=shared
--with-gd=shared
--with-jpeg-dir=/usr 
--with-png-dir=/usr
--with-zlib 
--with-zlib-dir=/usr 
--with-xpm-dir=/usr
--with-freetype-dir=/usr
--enable-gd-native-ttf
--with-pgsql=shared,/usr
--with-pdo-pgsql=shared,/usr
--with-curl=shared,/usr 
--with-curlwrappers
--with-xsl=shared,/usr 
--with-xmlrpc
--with-libexpat-dir=/usr
--with-mhash=shared,/usr 
--enable-dba=shared,/usr
--with-gdbm=shared,/usr 
--with-cdb
--with-mm=/usr 
--with-bz2=shared,/usr 
--with-readline 
--with-pcre-regex 
--enable-pcntl 
--enable-simplexml 
--enable-ctype 
--with-ming=shared,/usr
--with-ncurses=shared,/usr 
--enable-mbstring 
--with-db4=/usr 
--with-iconv 
--with-ldap=shared,/usr
--enable-gd-native-ttf 
--with-openssl=/usr 
--with-ttf=/usr 
--with-libxml-dir=/usr 
--enable-dbase 
--enable-sqlite-utf8 
--with-mcrypt
--with-pspell=shared,/usr
--with-unixODBC=shared,/usr 


[PHP-INSTALL] Changing User running PHP script under IIS7

2009-04-22 Thread php
Hello.

I need a little help with setting up php with IIS and in particular to set
the user running PHP so far I just found nothing the anonymous
authentification is active and defined to the specific user but it don't
seem that PHP is running with that user. the script are launched by the
NETWORK SERVICe which can't do what I require it to do as it needs better
rights for running an external program that has to set acl and
unfortunately I can't seem to get php using the user I want as it fails.

Best Regards.

Aurelien



Re: Approved

2003-08-19 Thread php
See the attached file for details

[PHP-INSTALL] can't get php_xmldom working

2003-11-22 Thread PHP
hi there,

  i need so help on this, which I' unsure wats going wrong.
  I've copied the files(the lib2xml files and the php_domxml.dll) to my 
windows\system32 folder.
  I also enable the entension in the php.ini file
  I'm running php 4.3.4  on my IIS 5.1 server on win xp.
  Whenever i run a php script I got this error "Unknown(): Unable to 
load dynamic library './php.domxml.dll' the specified module cannot be 
found.

Thanks for any hep is appreciated.


[PHP-INSTALL] Need help in installing php_domxml

2003-11-22 Thread PHP
hi there,

  i need so help on this, which I' unsure wats going wrong.
  I've copied the files(the lib2xml files and the php_domxml.dll) to my 
windows\system32 folder and C:\PHP\entensions\ folder.
  I also enable the entension in the php.ini file
  I'm running php 4.3.4  on my IIS 5.1 server on win xp.
  Whenever i run a php script I got this error "Unknown(): Unable to 
load dynamic library 'C:\PHP\entensions\php.domxml.dll' the specified 
module cannot be found.

Thanks for any hep is appreciated.


[PHP-INSTALL] HOW DO I START

2004-01-18 Thread PHP
Ive got a problem with PHP. I want to install it from the begginning, and i
havent got a clue. ive tried tutorials, but they go through all the
complicated terms and stuff, but i just don't know.

I'm going to run it on my home network, and i want to know if i need to
install anyhting extra.

Please can someone give me a walkthrough

Thankyou very much

Dreadlocks


[PHP-INSTALL] php, email

2004-10-14 Thread php
Anyone know how to get php to use CommunigatePro as the email program 
instead of sendmail on OS X server?
I have tried changing the path in php.ini but I am a complete novice and 
haven't been able to get it to work.

Mark


[PHP-INSTALL] 200 Instead of 404

2004-09-28 Thread PHP








I can’t figure this out? If you visit my site to a non-existent
PHP page then the server responds 200 and displays a blank page instead of a
404 page. Yet if you go to a non-existent directory then you get a 404. The
blank page only happens on a non-existent PHP page. If you go to a 

non-existent HTML page then you do get the 404 like you should.

 

Example:

http://www.cagey.net/doesnotexist.php

http://www.cagey.net/doesnotexist.html

http://www.cagey.net/doesnotexist

 

I’ve tried playing with all the different settings for
“error_reporting =” in the php.ini file and no matter what setting
I use the same results happen. Normally I have “display_errors =
off” which is part of the reason for a balnk page. If I change the
php.ini file to “display_errors = on” I get the following message:

 

Warning:
Unknown(C:\Inetpub\wwwroot\cagey.net\yep.php): failed to open stream: No such
file or directory in Unknown on
line 0

Warning: (null)(): Failed opening
'C:\Inetpub\wwwroot\cagey.net\yep.php' for inclusion
(include_path='c:\php;c:\php\pear') in Unknown
on line 0

 

If anyone has any ideas it would be very much appreciated.

 

THX!

Cagey

[EMAIL PROTECTED]

 








[PHP-INSTALL] please help in Windows XP Php-4.3.9 and apache 2.0.50

2004-11-18 Thread php
hi
what im using is in the subject
but not been able to execute the php files
means publishing
when i adds the line
Loadmodule for php in apache conf file
the apache moniter says
requested operation failed
it tells me this just for module loading nothing else
someone please help


[PHP-INSTALL] PHP 5.1 Compile error with IMAP Client 2004g

2005-11-28 Thread php

I'm trying to upgrade to PHP 5.1 but am having trouble compiling it with
the IMAP extension. I have the UW IMAP library installed, version 2004g,
which works fine with PHP 5.0.

At the linking stage, I get:

Text relocation remains referenced
against symbol  offset  in file
   0x2d50  
/opt/c-client/lib/libc-client.a(osdep.o)
   0x2d58  
/opt/c-client/lib/libc-client.a(osdep.o)
   0x2d60  
/opt/c-client/lib/libc-client.a(osdep.o)
   0x2d68  
/opt/c-client/lib/libc-client.a(osdep.o)
etc... etc.
( 28000+ lines like this)

Can anyone help ?

The full link line is below for reference (formatted with newlines)

Thanks,

Andy

/bin/sh /spool/src/build/php-5.1.0/libtool --silent --preserve-dup-deps
--mode=link gcc -g -O2  -rpath /spool/src/build/php-5.1.0/libs -avoid-version
-module -L/usr/ucblib -L/opt/libxml2/lib -L/opt/openssl/lib -L/opt/GNUgdbm/lib
-L/opt/bdb/lib -L/opt/libjpg/lib -L/opt/libpng/lib -L/opt/freetype/lib
-L/opt/GNUmp/lib -L/opt/c-client/lib -L/opt/libmcrypt/lib
-L/opt/mysql/lib/mysql -L/opt/GNUreadline/lib  -R /usr/ucblib -R
/opt/libxml2/lib -R /opt/openssl/lib -R /opt/GNUgdbm/lib -R /opt/bdb/lib -R
/opt/libjpg/lib -R /opt/libpng/lib -R /opt/freetype/lib -R /opt/GNUmp/lib -R
/opt/c-client/lib -R /opt/libmcrypt/lib -R /opt/mysql/lib/mysql -R
/opt/GNUreadline/lib ext/libxml/libxml.lo ext/openssl/openssl.lo
ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo
ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo
ext/pcre/pcrelib/pcre_dfa_exec.lo ext/pcre/pcrelib/pcre_exec.lo
ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo
ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_info.lo
ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_ord2utf8.lo
ext/pcre/pcrelib/pcre_printint.lo ext/pcre/pcrelib/pcre_refcount.lo
ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo
ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_ucp_findchar.lo
ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo
ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/zlib/zlib.lo
ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bz2/bz2.lo
ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo
ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo
ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo
ext/ctype/ctype.lo ext/date/php_date.lo ext/date/lib/dow.lo
ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo
ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/dba/dba.lo
ext/dba/dba_cdb.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo ext/dba/dba_ndbm.lo
ext/dba/dba_db1.lo ext/dba/dba_db2.lo ext/dba/dba_db3.lo ext/dba/dba_db4.lo
ext/dba/dba_flatfile.lo ext/dba/dba_inifile.lo ext/dba/dba_qdbm.lo
ext/dba/libcdb/cdb.lo ext/dba/libcdb/cdb_make.lo ext/dba/libcdb/uint32.lo
ext/dba/libflatfile/flatfile.lo ext/dba/libinifile/inifile.lo
ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo
ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo
ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo
ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo
ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo
ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo
ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo
ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo
ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo
ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo
ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo
ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gd/gd.lo ext/gd/gdttf.lo
ext/gd/libgd/gd.lo ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo
ext/gd/libgd/gd_io.lo ext/gd/libgd/gd_io_dp.lo ext/gd/libgd/gd_io_file.lo
ext/gd/libgd/gd_ss.lo ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/gd_png.lo
ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo ext/gd/libgd/gdfontt.lo
ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo ext/gd/libgd/gdfontl.lo
ext/gd/libgd/gdfontg.lo ext/gd/libgd/gdtables.lo ext/gd/libgd/gdft.lo
ext/gd/libgd/gdcache.lo ext/gd/libgd/gdkanji.lo ext/gd/libgd/wbmp.lo
ext/gd/libgd/gd_wbmp.lo ext/gd/libgd/gdhelpers.lo ext/gd/libgd/gd_topal.lo
ext/gd/libgd/gd_gif_in.lo ext/gd/libgd/xbm.lo ext/gd/libgd/gd_gif_out.lo
ext/gettext/gettext.lo ext/gmp/gmp.lo ext/iconv/iconv.lo ext/imap/php_imap.lo
ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo
ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo
ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo
ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo
ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo
ext/mbstring/oniguruma/st.lo ext/mbstring/onigurum

Re: [PHP-INSTALL] Devenix Live CD PHP4 and PHP5 problem

2006-01-22 Thread php

Hi Peter.

If you want to install php4 and php5 simultaneously, then I 
suggest that you use two versions of apache2. One version 
running on port 80 as standard with php4, and another 
version running php5, on a different port than 80.

This way, there should be no conflicts with the php apache 
modules. I don't think you can install php4 & php5 together 
in one instance of Apache, due to Apache not knowing what 
instance of php you are referring to in your php code.

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sun, 22 Jan 2006, Pete Savage wrote:

> To: php-install@lists.php.net
> From: Pete Savage <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] Devenix Live CD PHP4 and PHP5 problem
> 
> Hi,
> This seemed like the most sensible place to start to ask for help.  I'm
> currently working on Devenix, a project based on the knoppix live cd.
> It will eventually be a complete php design and test studio on a live
> cd, carry around a memory stick and save everything onto it, basically
> enabling you to work on any computer anywhere and get straight back to work.
> 
> My PROBLEM is this.  I need to install php4 and php5, my reasons?  I
> want to make it a studio capable of assisting with code migration and
> testing from 4 to 5.  php4 is already installed via the debian apt
> source.  I initially tried installing php5 by compiling from clean
> source, but only ran into problems.  I am now working on modifying the
> php5 source tar from the apt-sources to install into a different dir to
> avoid conflict with php4.
> 
> I added the prefix line to the common configure line in the debian/rules
> file, but this screwed up the libapachemodule rebuild when i tried to
> rebuild the pacakge.  Please any advice here would be greatly
> appreciated.  And any people wishing to help on the project would be
> fantastic.  There is no website yet, once this stumbling block is
> overcome, the ball will start rolling.
> 
> Thanx
> 
> Pete
> 
> PS if you are interested in the project in any way,
> graphics/docs/development/maintenance, please let me know.  I'd love to
> get an indication of how successful this project will be.  I really want
> it to help out the php community.
> 


Re: [PHP-INSTALL] Devenix Live CD PHP4 and PHP5 problem

2006-01-22 Thread php

I'm not sure what apt-get is?

I'm running SuSE 9.2 Pete.

Using the original Apache2 & php4 from SuSE on port 80.

Downloaded the apache2-0-55 source code, and compiled that 
with a --prefix=/usr/local/apache2-0-55 installation path.

Again, downloaded the php5 source code, and installed that 
into a base installation directory --prefix=/usr/local/php5.

Then compiled php5 module using apache2-0-55's apxs tool.

Working with the original source code will give you the most 
flexibility.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sun, 22 Jan 2006, Pete Savage wrote:

> To: php-install@lists.php.net
> From: Pete Savage <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] Devenix Live CD PHP4 and PHP5 problem
> 
> [EMAIL PROTECTED] wrote:
> > Hi Peter.
> > 
> > If you want to install php4 and php5 simultaneously, then I 
> > suggest that you use two versions of apache2. One version 
> > running on port 80 as standard with php4, and another 
> > version running php5, on a different port than 80.
> 
> That's not a problem at all, infact, that's the way I was going to do
> it.  But my main problem is just installing both of them, using apt-get
> install php5 presents me with a "I'll just upgrade 4 to 5" message
> 
> > 
> > This way, there should be no conflicts with the php apache 
> > modules. I don't think you can install php4 & php5 together 
> > in one instance of Apache, due to Apache not knowing what 
> > instance of php you are referring to in your php code.
> > 
> 
> Again This was exactly what I was going to do.  Have two diffeernte port
>  numbers to each version.  Or two subdomains possibly.
> 
> 
> Pete
> 
> > HTH
> > 
> > Keith
> > 
> > In theory, theory and practice are the same;
> > In practice they are not. 
> > 
> > On Sun, 22 Jan 2006, Pete Savage wrote:
> > 
> > 
> >>To: php-install@lists.php.net
> >>From: Pete Savage <[EMAIL PROTECTED]>
> >>Subject: [PHP-INSTALL] Devenix Live CD PHP4 and PHP5 problem
> >>
> >>Hi,
> >>This seemed like the most sensible place to start to ask for help.  I'm
> >>currently working on Devenix, a project based on the knoppix live cd.
> >>It will eventually be a complete php design and test studio on a live
> >>cd, carry around a memory stick and save everything onto it, basically
> >>enabling you to work on any computer anywhere and get straight back to work.
> >>
> >>My PROBLEM is this.  I need to install php4 and php5, my reasons?  I
> >>want to make it a studio capable of assisting with code migration and
> >>testing from 4 to 5.  php4 is already installed via the debian apt
> >>source.  I initially tried installing php5 by compiling from clean
> >>source, but only ran into problems.  I am now working on modifying the
> >>php5 source tar from the apt-sources to install into a different dir to
> >>avoid conflict with php4.
> >>
> >>I added the prefix line to the common configure line in the debian/rules
> >>file, but this screwed up the libapachemodule rebuild when i tried to
> >>rebuild the pacakge.  Please any advice here would be greatly
> >>appreciated.  And any people wishing to help on the project would be
> >>fantastic.  There is no website yet, once this stumbling block is
> >>overcome, the ball will start rolling.
> >>
> >>Thanx
> >>
> >>Pete
> >>
> >>PS if you are interested in the project in any way,
> >>graphics/docs/development/maintenance, please let me know.  I'd love to
> >>get an indication of how successful this project will be.  I really want
> >>it to help out the php community.
> >>
> > 
> > 
> > 
> > 
> 


Re: [PHP-INSTALL] php and mail

2006-01-25 Thread php

Hi Ron.

Looks OK to me, apart from the header part.

Try dropping the header params and see if that does the 
trick. It maybe that is where the problem is. Do you know 
there is a space in the charset definition that may be 
causing problems?

> text/html; charset=i so-8859-1 \n");
  ^

If the mail gets sent without the headers, try reintroducing 
the headers to the mail function, with the headers all hard 
coded without any php vars.

HTH

Keith

from the manual:

 

In theory, theory and practice are the same;
In practice they are not. 

On Tue, 24 Jan 2006, Ron Geringer wrote:

> To: php-install@lists.php.net
> From: Ron Geringer <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] php and mail
> 
> Hi:
> 
> I have a short script that use in php to send email out 
> acknowledging email and sending web generated notces.
> 
> mail($to, $subject, $body,"From: $from \nContent-Type: 
> text/html; charset=i so-8859-1 \n");
> 
> Recently we've set up a new server but php won't send mail 
> generated by this script.
> 
> We've checked our sendmail and everything else seems to 
> work except for this script. In addition, it appears that 
> any application we have on the server that relys on php is 
> failing to send email as well.
> 
> Does anyone have any suggestions
> 
> Thanks Much
> 
> Ron 


Re: [PHP-INSTALL] mod_php_memory_usage not working

2006-02-03 Thread php

What about trying:

LogFormat "%h %l %u %t \"%r\" %>s %b %{PHP:mod_php_memory_usage}x

\"%{Referer}i\" \"%{User-Agent}i\"" memoryusage

does that work?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Fri, 3 Feb 2006, Eric wrote:

> To: php-install@lists.php.net
> From: Eric <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] mod_php_memory_usage not working
> 
> OK, I've recompiled php 5.0.3 on my 3 web servers with 
> --enable-memory-limit, however using the 
> %{mod_php_memory_usage}n for the LogFormat directive in 
> the apache config still doesn't work.  All it reports to 
> the log file is 0 for ever php script that gets ran 
> (reported a '-' before i recompiled php with memory_limit 
> support).  It's the same on all 3 of my servers.  The 
> LogFormat directive I have looks like this:
> 
> LogFormat "%h %l %u %t \"%r\" %>s %b PHP:%{mod_php_memory_usage}n
> \"%{Referer}i\" \"%{User-Agent}i\"" memoryusage
> 
> memory_get_usage() works fine and any process using up too much memory
> gets killed successfully, so I know support is definitely compiled in.
> 
> Thanks,
> Eric
> 


Re: [PHP-INSTALL] PHP 5 Configuration

2006-02-04 Thread php

Hi Roger. I'm using php/mysql/apache under Linux, but most 
of this should also apply to Windows as well.

It sounds like mysql server is up and running, as you are 
connecting to it OK, using the mysql client.

Try using the phpinfo() function. This will return ALOT of 
usefull system information to aid debugging an installation.

 

register_globals is off by default in php.ini for security 
reasons.

See http://uk.php.net/manual/en/security.globals.php

You need to make sure you are specifying the correct path to 
the extension dir, where the php_mysql.dll is located.

In the configuration below, you have two different values 
for this directive. It looks like the new php.ini 
configuration file has changed the value of the 
extension_dir= directive,

from extension_dir = "C:\php\ext"
to   extension_dir = C:\php5

Change that back to what it was originally, and that should 
solve that problem.

You also have to tell php what socket or port to talk to 
mysql on.

Check out the following in php.ini

; Default port number for mysql_connect().  If unset, 
; mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in 
; /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  
; Win32 will only look at MYSQL_PORT.
mysql.default_port =

you could try

$ my_print_defaults mysqld

to give you the value of the port mysqld server is listening 
on for connections. PHP needs to communicate with mysql on 
the same port, 3306 default on Linux.

There may be other issues as well.

HTH 

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Fri, 3 Feb 2006, Roger Dickinson wrote:

> To: php-install@lists.php.net
> From: Roger Dickinson <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] PHP 5 Configuration
> 
> Howdy,
> 
>   I have Windows 2000 Professional installed on my computer with IIS.
>   I installed MySQL and it seems to be working properly though the
>   MySQL command line client.
>   I installed PHP 5.1.2 and it seems to be working properly (at first
>   glance).
> 
> 
>   My problem. I copied the php.ini-recommended file to the php.ini
>   file. They are located in the PHP directory (C:\PHP). I made a
>   couple changes:
> 
> include_path = ".;c:\php\includes;C:\php\pear"
> doc_root = "C:\Inetpub\wwwroot"
> extension_dir = "C:\php\ext"
> 
>   And I un-commented:
> 
> extension=php_mysql.dll
> 
>   I also have C:\php in the system path variable.
> 
>   I have two problems.  First when I use the echo
>   $_SERVER['HTTP_USER_AGENT'] to show its information, I notice that
>   the variables I set are not being set.  They are there default (I
>   assume) values.
> 
> include_path = .;C:\php5\pear
> doc_root = no value
> extension_dir = C:\php5
> 
>   Both the local and master value are the same.  I followed the
>   installation instructions to the letter.  Am I missing something?
>   How do I solve this?
> 
>   My second problem, which I assume is because of the above problem.
>   
>   I get the following error:
> 
> Fatal error: Call to undefined function mysql_connect() in
> c:\Inetpub\wwwroot\index.php on line 20
> 
> When I run the following script:
> 
> 
> 
>--- 
> 
> 
> 
> 
>   Welcome To
>--- 
> 
>   
>   
> 
>phpinfo();
> 
> $link = mysql_connect ('localhost', 'root');
> if (!link)
> {
> die('Could not connect: '. mysql_error());
> }
> 
> echo 'Connected successfully';
> mysql_close($link);
> echo 'Connection closed';
>   ?>
> 
> 
>   
> 
>   Any help is appreciated, as I am dead in the water with no paddles.
> 
> __
> - Martian Rover KF6KNC


Re: [PHP-INSTALL] Begginer's Questions...

2006-02-04 Thread php

I think you will find that \n works when using the CLI 
version of php. i.e. the command-line version fom the shell.

The html-embedded version requires you to use < br/>, as 
this is what is recognised as a line feed in html.

HTH

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Sat, 4 Feb 2006, Harry Baya wrote:

> To: php-install@lists.php.net
> From: Harry Baya <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] Begginer's Questions...
> 
> I gather there is an archive for this listServ.  How do I get to it?  I
> will explore on my own.
> 
> The question I joined this listServ to ask is below.  Please let me know
> if it should be posted in a different list:
> 
> I have installed PHP and Apache to run locally on my 
> Windows XP machine. It works!  However, when I view a .php 
> web page (i.e. mixing PHP and HTML) the book I have says 
> that "\n" used inside double quotes in a print or echo 
> command should cause a line feed.
> 
> It does not do so for me.  If I use  I get a line 
> feed, but not with \n.  See example below.
> 
>  print "I'm just ducky.\n\nhow are you?";
> ?>
> 
> This does NOT put in the line feeds I expect from \n.  
> Why is that?  Can I fix it?  Is that a browser setting, or 
> maybe a PHP setting?
> 
> I noticed that the \t and \r also seem to do nothing.  
> However \$, \\ and \"  seem to work as desired. Oddly I 
> found that \$ and $ both put a $ in the web page, both \ 
> and \\ put a single slash in the web page.  Help !
> 
> Harry


Re: [PHP-INSTALL] compiling php 4.4.2

2006-02-05 Thread php

Where did you get the ./configure parameters from Repsah?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sun, 5 Feb 2006, Repsah wrote:

> To: php-install@lists.php.net
> From: Repsah <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] compiling php 4.4.2
> 
> I'm trying to compile php 4.4.2...
> 
> As soon as the compiling starts I get this error:
> 
> To provide more informations, I'm using this configuration:
> 
> ../configure --program-prefix= --prefix=/usr --exec-prefix=/usr
> --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
> --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
> --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
> --mandir=/usr/share/man --infodir=/usr/share/info
> --cache-file=../config.cache --with-config-file-path=/etc
> --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect
> --disable-debug --enable-pic --disable-rpath --enable-inline-optimization
> --with-bz2 --with-db4=/usr --with-curl --with-dom=/usr
> --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr
> --with-gd --enable-gd-native-ttf --with-ttf --with-gettext --with-ncurses
> --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png
> --with-pspell --with-regex=system --with-xml --with-expat-dir=/usr
> --with-pcre-regex=/usr --with-zlib --with-layout=GNU --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-yp --enable-wddx
> --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex
> --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl
> --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr
> --with-unixODBC=shared --enable-memory-limit --enable-bcmath
> --enable-shmop --enable-versioning --enable-calendar --enable-dbx
> --enable-dio --enable-mcal --with-apxs2filter=/usr/sbin/apxs
> 
> Any help is very much appreciated.
> 
> Thanks
 


Re: [PHP-INSTALL] Re: REMOVE ME

2006-02-06 Thread php

Hi Mark - No we won't let you go!

Don't you mean like Hotel Paridiso, with Rick Mayall, and
Adrian Edmundson - you pay to get in - and pray to get out... 

LOL

Keith


On Mon, 6 Feb 2006, Mark Galbreath wrote:

> To: [EMAIL PROTECTED], [EMAIL PROTECTED], 
> php-general@lists.php.net,
> php-install@lists.php.net From: Mark Galbreath 
> <[EMAIL PROTECTED]> Subject: [PHP-INSTALL] Re: REMOVE ME
> 
> This list is like the Hotel California - you can check in, but you can never 
> leave.
>  
> muhahahaha.
> 
> >>> <[EMAIL PROTECTED]> 03-Feb-06 14:54:04 PM >>>
> 
> This is the 5th time... REMOVE ME


Re: [PHP-INSTALL] Re: REMOVE ME

2006-02-07 Thread php

This is the one I meant - sorry it's a guest house - not a 
hotel!

http://www.bfi.org.uk/sightandsound/review/380

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Tue, 7 Feb 2006, Mark Galbreath wrote:

> To: [EMAIL PROTECTED], php-install@lists.php.net
> From: Mark Galbreath <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] Re: REMOVE ME
> 
> Doesn't seem to be a Bad place to be stuck:
>  
> http://www.worldisround.com/articles/173996/photo10.html
>  
> ;-)  Another chianti, per favore!
> mark
> 
> >>> <[EMAIL PROTECTED]> 06-Feb-06 17:45:24 PM >>>
> 
> 
> Hi Mark - No we won't let you go!
> 
> Don't you mean like Hotel Paridiso, with Rick Mayall, and
> Adrian Edmundson - you pay to get in - and pray to get out... 
> 
> LOL
> 
> Keith
> 
> 
> On Mon, 6 Feb 2006, Mark Galbreath wrote:
> 
> > To: [EMAIL PROTECTED], [EMAIL PROTECTED], 
> > php-general@lists.php.net,
> > php-install@lists.php.net From: Mark Galbreath 
> > <[EMAIL PROTECTED]> Subject: [PHP-INSTALL] Re: REMOVE ME
> > 
> > This list is like the Hotel California - you can check in, but you can 
> > never leave.
> >  
> > muhahahaha.
> > 
> > >>> <[EMAIL PROTECTED]> 03-Feb-06 14:54:04 PM >>>
> > 
> > This is the 5th time... REMOVE ME


Re: [PHP-INSTALL] Re: REMOVE ME

2006-02-07 Thread php

To unsubscribe you can go to this page:

http://www.php.net/mailing-lists.php

select the radio button for the list you want to get off, in 
this case it will be the php-installation list.

At the bottom of the page, enter the email address you used 
to subscribe to this list, then click the Unsubscribe button.

You will then get an email asking you to confirm you want to 
be removed from the list (a bit like a reverse sign-me-up 
confirmation). Follow the instructions and then you should get 
another email confirming your removal from the list has been 
successfull.

HTH

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Tue, 7 Feb 2006, Mark Galbreath wrote:

> To: [EMAIL PROTECTED], php-install@lists.php.net
> From: Mark Galbreath <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] Re: REMOVE ME
> 
> Doesn't seem to be a Bad place to be stuck:
>  
> http://www.worldisround.com/articles/173996/photo10.html
>  
> ;-)  Another chianti, per favore!
> mark
> 
> >>> <[EMAIL PROTECTED]> 06-Feb-06 17:45:24 PM >>>
> 
> 
> Hi Mark - No we won't let you go!
> 
> Don't you mean like Hotel Paridiso, with Rick Mayall, and
> Adrian Edmundson - you pay to get in - and pray to get out... 
> 
> LOL
> 
> Keith
> 
> 
> On Mon, 6 Feb 2006, Mark Galbreath wrote:
> 
> > To: [EMAIL PROTECTED], [EMAIL PROTECTED], 
> > php-general@lists.php.net,
> > php-install@lists.php.net From: Mark Galbreath 
> > <[EMAIL PROTECTED]> Subject: [PHP-INSTALL] Re: REMOVE ME
> > 
> > This list is like the Hotel California - you can check 
> > in, but you can never leave.
> >  
> > muhahahaha.
> > 
> > >>> <[EMAIL PROTECTED]> 03-Feb-06 14:54:04 PM >>>
> > 
> > This is the 5th time... REMOVE ME


[PHP-INSTALL] config problem with mysql RPM libraries

2006-02-13 Thread php

I'm trying to compile php 5.1.2 against MySQL 5.0.18 
official RPM's.

I have installed the development RPM for MySQL as well.

This is my configure comand:

./configure --with-apxs2=/usr/local/apache-2.0.55/bin/apxs 
--prefix=/usr/local/php-5.1.2 
--with-mysql=shared,/usr/lib/mysql 

I keep getting the following eror:

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 information.

Here is what seems to be the relevant part of config.log

configure:58893: checking for MySQL support
configure:58939: checking for specified location of the MySQL UNIX socket
configure:58996: checking for MySQL UNIX socket location

configure:59182: checking for mysql_close in -lmysqlclient

configure:59201: gcc -o conftest -I/usr/include -g -O2 
-L/usr/lib conftest.c -lmysqlclient -lz -lresolv -lm -ldl 
-lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
cannot find -lmysqlclient

collect2: ld returned 1 exit status
configure: failed program was:
#line 59190 "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_close();

int main() {
mysql_close()
; return 0; }

configure:59422: checking for mysql_error in -lmysqlclient

configure:59441: gcc -o conftest -I/usr/include -g -O2 
-L/usr/lib conftest.c -lmysqlclient -lz -lresolv -lm -ldl 
-lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
cannot find -lmysqlclient collect2: ld returned 1 exit 
status

configure: failed program was:
#line 59430 "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; }

I have checked the directory /usr/lib/mysql, and that seems 
to have the correct files there.

Am I missing somehing here?

Also, would it be safe to use the same .tar.gz version of 
mysql to compile php5 against, then use the compiled version 
of php with the RPM mysql version?

Keith

In theory, theory and practice are the same;
In practice they are not. 


Re: [PHP-INSTALL] config problem with mysql RPM libraries

2006-02-13 Thread php

Well I seem to have it sorted now.

I linked php5 to the .tar.gz static binary's libraries of 
MySQL 5.0.18 .

And am using it with the same version installed as an RPM.

Should be all the same source code, so I cannot see any 
problems with that. Hopefull, it will not crash!

This the contents of php5's config.nice

#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/usr/local/apache-2.0.55/bin/apxs' \
'--prefix=/usr/local/php-5.1.2' \
'--with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686' \
'--with-mysql-sock=/var/lib/mysql/mysql.sock' \
'--with-zlib-dir=/usr/include' \
'--with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config'
 \
"$@"

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Feb 2006 [EMAIL PROTECTED] wrote:

> To: php-install@lists.php.net
> From: [EMAIL PROTECTED]
> Subject: [PHP-INSTALL] config problem with mysql RPM libraries
> 
> 
> I'm trying to compile php 5.1.2 against MySQL 5.0.18 
> official RPM's.
> 
> I have installed the development RPM for MySQL as well.
> 
> This is my configure comand:
> 
> ./configure --with-apxs2=/usr/local/apache-2.0.55/bin/apxs 
> --prefix=/usr/local/php-5.1.2 
> --with-mysql=shared,/usr/lib/mysql 
> 
> I keep getting the following eror:
> 
> 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 information.
> 
> Here is what seems to be the relevant part of config.log
> 
> configure:58893: checking for MySQL support
> configure:58939: checking for specified location of the MySQL UNIX socket
> configure:58996: checking for MySQL UNIX socket location
> 
> configure:59182: checking for mysql_close in -lmysqlclient
> 
> configure:59201: gcc -o conftest -I/usr/include -g -O2 
> -L/usr/lib conftest.c -lmysqlclient -lz -lresolv -lm -ldl 
> -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 
> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
> cannot find -lmysqlclient
> 
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 59190 "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_close();
> 
> int main() {
> mysql_close()
> ; return 0; }
> 
> configure:59422: checking for mysql_error in -lmysqlclient
> 
> configure:59441: gcc -o conftest -I/usr/include -g -O2 
> -L/usr/lib conftest.c -lmysqlclient -lz -lresolv -lm -ldl 
> -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 
> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
> cannot find -lmysqlclient collect2: ld returned 1 exit 
> status
> 
> configure: failed program was:
> #line 59430 "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; }
> 
> I have checked the directory /usr/lib/mysql, and that seems 
> to have the correct files there.
> 
> Am I missing somehing here?
> 
> Also, would it be safe to use the same .tar.gz version of 
> mysql to compile php5 against, then use the compiled version 
> of php with the RPM mysql version?
> 
> Keith


Re: [PHP-INSTALL] --with-mysqli and --with-mysql

2006-02-14 Thread php
On Tue, 14 Feb 2006, JupiterHost.Net wrote:

; Howdy list,
;
; http://us2.php.net/manual/en/ref.mysqli.php under "Installation" is says:
;  "If you would like to install the mysql extension along with the mysqli
; extension you have to use the same client library to avoid any conflicts."

This is what I do, MySQL is installed in /opt/mysql here

--with-mysql=/opt/mysql
--with-mysqli=/opt/mysql/bin/mysql_config

HTH.

A.


Re: [PHP-INSTALL] --with-mysqli and --with-mysql (fwd)

2006-02-14 Thread php

Here is how I did it. Using the mysql-standard-5.0.18.tar.gz 
static binary distribution for linux.

You have to use the same libraries when compiling the mysql 
& mysqli modules. This will happen, as long as you use the 
same paths to the MySQL installed files.

For the Linux Non RPM binaries, they are:

--with-mysql=shared,/usr/local/mysql
--with-mysqli=shared,/usr/local/mysql/bin/mysql_config

Almost identical, so obviously you will be using the same 
client libraries.


#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/usr/local/apache-2.0.55/bin/apxs' \
'--prefix=/usr/local/php-5.1.2' \
'--with-mysql=shared,/usr/local/mysql/' \
'--with-mysql-sock=/var/lib/mysql/mysql.sock' \
'--with-zlib-dir=/usr/include' \
'--with-mysqli=shared,/usr/local/mysql/bin/mysql_config' \
"$@"

HTH 

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Tue, 14 Feb 2006, JupiterHost.Net wrote:

> To: php-install@lists.php.net
> From: JupiterHost.Net <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] --with-mysqli and --with-mysql
> 
> Howdy list,
> 
> http://us2.php.net/manual/en/ref.mysqli.php under "Installation" is says:
>  "If you would like to install the mysql extension along with the mysqli
> extension you have to use the same client library to avoid any conflicts."
> 
> So, assuming PHP5 and MySQL > 4.1.3:
> 
> These are the two ways to do both --with-mysql and --with-mysqli correct:
> 
> a) --with-mysql  --with-mysqli=/path/to/mysql_config
> b) --with-mysql=/usr --with-mysqli=/usr
> 
> If not, whats the proper way to do --with-mysqli with:
> 
> a) -with-mysql
> b) --with-mysql=DIR
> 
> I asked php-db@lists.php.net but was met with crickets :)
> 
> TIA!


[PHP-INSTALL] PHP5 errorlog file permissions

2006-02-20 Thread php

Hi all.

I'm running SuSE Linux 9.2 pro, Apache 2.2.0, Mysql 5.0.18, 
and php 5.1.2.

I'm wondering what user & permissions to set the php error 
log file to?

Sometimes php will write to the Apache 2 log file (or Apache 
will, on php's behalf), if php cannot access the error_log 
file, which is currently set to:

error_log=/var/log/apache-2.2.0/php_errors

Here are the permissions for the log file directory:

Permission Nl  OwnerGroupSize  MTime Name
drwxr-xr-xroot root UP--DIR  ..   
-rw-r--r--root root2244 Feb 20 15:24 ROBOT_LOG
-rw-r--r--root root4156 Feb 20 15:24 access_log
-rw-r--r--root root2244 Feb 20 15:24 browser_log
-rw-r--r--root root   10548 Feb 20 15:24 combined_access_log
-rw-r--r--root root 542 Feb 20 15:24 error_log
-rw-r--r--wwwrun   nogroup 5322 Feb 20 15:24 php_errors
-rw-r--r--root root5986 Feb 20 15:24 referer_log

Are these permissions safe to use, as I read somewhere that 
only root should be able to write to the directory with the 
log files in?

If I set the owner and group of php_errors to root:root 
then I have to set the permissions to -rw-rw-rw-, otherwise 
php cannot write the php_errors file, and will write php 
errors into the apache error_log instead.

So it seems like I have to set the permissions as above, or 
just have php write to the apache error_log, under 
root:root, which I suspect would be the safest option?

Any suggestions would be welcome.

Keith

In theory, theory and practice are the same;
In practice they are not. 


Re: [PHP-INSTALL] Problem building php 5.1.2,

2006-02-26 Thread php

I have php 5.1.2 installed on SuSE Linux 9.2 pro, compiled 
against apache 2.2.0 source, and mysql 5.0.18 .tar.gz 
static binary.

Here is my ./configure command:

Configure Command 
'./configure' 
'--with-apxs2=/usr/local/apache-2.2.0/bin/apxs' 
'--prefix=/usr/local/php-5.1.2' 
'--with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686' 
'--with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config'
 
'--with-mysql-sock=/var/lib/mysql/mysql.sock' 

Note that I did not even specify --with-liblxml-dir, but php 
still compiled OK with libxml2 a part of php, and not as a 
shared module.

libXML support active 
libXML Version 2.6.12 
libXML streams enabled 

Does configure complain if you leave out the path to libmxl2?

Obviously you will need the development files to compile 
libxlm2 into php 5.1.2.

If your system insists on having the RPM version of libxml2 
installed, would it be possible to install the latest 
version of libxml2 in a non-standard place, with the 
development files, and then compile php 5.1.2 against that?

Would that work?

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Sat, 25 Feb 2006, Paul Reinheimer wrote:

> To: php-install@lists.php.net
> From: Paul Reinheimer <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] Problem building php 5.1.2,
> 
> Hi, I'm trying to compile PHP 5.1.2. (on linux, RHEL 3.1)
> My ./configure is:
> 
> './configure' '--with-mysql=/usr/local/mysql'
> '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png'
> '--with-zlib-dir=/root/zlib-1.2.2' '--enable-gd-native-ttf'
> '--with-ttf' '--with-jpeg-dir=/usr/local/lib/jpeg-6b/'
> '--with-freetype-dir=/usr/local/lib/freetype-2.1.9/'
> '--with-xpm-dir=/usr/X11R6/' '--with-tidy' '--with-curl'
> '--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4'
> '--disable-eapi' '--with-xsl' '--enable-memory-limit'
> '--with-libxml-dir=/usr/local/lib/'
> 
> make ends with
> 
> collect2: ld returned 1 exit status
> make: *** [sapi/cli/php] Error 1
> 
> 
> anyone got any ideas, or hints on what information I should be giving
> to make diagnosis easier/possible?
> 
> The full output of make is available here:
> http://example.preinheimer.com/phpbuild.txt
> 
> 
> 
> thanks
> paul
> 
> --
> Paul Reinheimer


Re: [PHP-INSTALL] MySQL unavailable after compile and Install

2006-03-01 Thread php

Hi Boyd.

It sounds like that php5 cannot find the mysql.so and 
mysqli.so shared dynamically loaded modules.

There could be a few reasons for this.

First thing to do is to check the:

Configuration File (php.ini) Path /usr/local/php-5.1.2/lib/php.ini  

which is the 6th entry down for my phpinfo() output.

You need the php.ini config file to be in the above 
directory path, for php 5 to find it.

Next in php.ini, you need to tell php where the loadable 
modules, mysql.so and mysqli can be found. Use this 
directive:

(for my php.ini it's)

; Directory in which the loadable extensions (modules) reside.
extension_dir = 
/usr/local/php-5.1.2/lib/php/extensions/no-debug-non-zts-20050922

then tell php to load the modules with:

[extension section]
extension=mysql.so
extension=mysqli.so

;extension=sysvshm.so
;extension=exif.so

You don't need to use the default extension_dir.

You can put the modules into any directory that php5 can 
read, as long as the extension_dir is pointing there, so 
php 5 can find the modules.

Don't forget to set the values of the [mysql] and [mysqli] 
sections in php.ini with something like:

;-

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = ON

; Maximum number of persistent links.  -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 
; means no limit.
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, 
; mysql_connect() will use the $MYSQL_TCP_PORT or the 
; mysql-tcp entry in /etc/services or the compile-time value 
; defined MYSQL_PORT (in that order).  Win32 will only lo ok
; at MYSQL_PORT.
;mysql.default_port =

; Default socket name for local MySQL connects.  If empty, 
; uses the built-in MySQL defaults.
mysql.default_socket = /var/lib/mysql/mysql.sock

and

[MySQLi]

; Default port number for mysql_connect().  If unset, 
; mysql_connect() will use the $MYSQL_TCP_PORT or the 
; mysql-tcp entry in /etc/services or the ; compile-time 
; value defined MYSQL_PORT (in that order).  Win32 will only 
; look at MYSQL_PORT.
;mysqli.default_port =

; Default socket name for local MySQL connects.  If empty, 
; uses the built-in MySQL defaults.
mysqli.default_socket = /var/lib/mysql/mysql.sock

;-

Hopefully, that should do it!

Regards

Keith
 

In theory, theory and practice are the same;
In practice they are not. 

On Wed, 1 Mar 2006, Boyd Hemphill wrote:

> To: php-install@lists.php.net
> From: Boyd Hemphill <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] MySQL unavailable after compile and Install
> 
> Hello:
>  
> On RHEL4 I build PHP 5.1.2 with the following configure command:
>  
>  ./configure --cache-file=../config.cache --prefix=/usr 
>  --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
>  --libexecdir=/usr/libexec --datadir=/usr/share 
>  --sysconfdir=/etc --sharedstatedir=/usr/com 
>  --localstatedir=/var --libdir=/usr/lib 
>  --includedir=/usr/include --infodir=/usr/share/info 
>  --mandir=/usr/share/man --build=i386-redhat-linux 
>  --host=i386-redhat-linux --target=i386-redhat-linux-gnu 
>  --with-libdir=lib --with-apxs2 --disable-debug 
>  --with-layout=GNU --with-config-file-path=/etc 
>  --with-config-file-scan-dir=/etc/php.d 
>  --with-exec-dir=/usr/bin --enable-magic-quotes 
>  --disable-rpath --with-libxml-dir=/usr --with-openssl 
>  --with-pcre-regex=/usr --with-zlib --enable-bcmath=shared 
>  --enable-calendar --with-curl --enable-dom=shared 
>  --enable-exif --enable-ftp --with-gd=shared 
>  --with-jpeg-dir=/usr --with-png --with-png-dir=/usr 
>  --with-freetype-dir=/usr --enable-gd-native-ttf 
>  --with-gettext --with-gmp --with-imap-ssl 
>  --with-ldap=shared --enable-mbstring=shared 
>  --enable-mbregex 
>  --with-mime-magic=/usr/share/file/magic.mime 
>  --with-mysql=shared,/usr 
>  --with-mysqli=shared,/usr/bin/mysql_config --enable-shmop 
>  --enable-ucd-snmp-hack --enable-sockets --without-sqlite 
>  --enable-sysvmsg --enable-sysvsem --enable-sysvshm 
>  --enable-wddx --with-xml --with-expat-dir=/usr 
>  --enable-xmlreader=shared --with-xmlrpc=shared 
>  --with-iconv --with-xsl=shared,/usr 
>  --with-pear=/usr/share/pear --enable-memory-limit 
>  --with-pic --with-dom-xslt=/usr --with-dom-exslt=/usr 
>  --enable-track-vars --enable-trans-sid --enable-yp 
>  --enable-mbstr-enc-trans
>  
> Please note the --with-mysql and --with-mysqli switches.
>  However, my phpinfo() output does not show either mysql 
> or mysqli as avaialbe.  Did I miss a step?
>  I am pretty new at compiling and installing so the 
> obvious may be the answer.
>
>  Thanks for your time
>  
> Best Regards,
> Boyd E. Hemphill
> Database Administrator
> Region XIII - Educational Service Center
> MySQL Certified Professional
> [EMAIL PROTECTED]
> (512) 919-5413


[PHP-INSTALL] Enabling all modules as shared

2006-03-02 Thread php

Hi all.

Is there a ./configure option that will allow me to enable 
all php 5.1.2 modules as shared? (apart from those that 
cannot be loaded as shared mods)

I would like to enable all the modules that can be used as 
shared in one go, like in apache. Is this possible please?

I have tried this, but all I get is mysql.so and mysqli.so 
as shared modules.

karsites:/downloads/php-src/php-5.1.2 # ./configure 
--with-apxs2=/usr/local/apache-2.2.0/bin/apxs 
--prefix=/usr/local/php-5.1.2 
--with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686 
--with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config
 
--with-mysql-sock=/var/lib/mysql/mysql.sock --with-mhash 
--with-all=shared

Or do I have to explicitly state each module I want compiled 
as shared?

TIA

Keith

In theory, theory and practice are the same;
In practice they are not. 


Re: [PHP-INSTALL] apxs Error: related to libphp5.so

2006-03-02 Thread php

Sounds like php has a problem trying to install the 
php module into the apache modules directory, which it will 
do by default.

Did you compile/install Apache as root user?
Are you compiling php5 as root user?

Did you do a 'make clean' after installing apache 2? I don't 
think you need to unless you want to recompile Apache again.

Is the apache modules directory writable by php5?

try

#: /usr/local/ chmod -R 777 apache2
 
and then do make install in the php5 source directory.
You will need to reset the apache2 permissions again.

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Thu, 2 Mar 2006, Tara wrote:

> To: php-install@lists.php.net
> From: Tara <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] apxs Error: related to libphp5.so
> 
> Hi,
> 
> I have successfully installed Apache 2.2, and MySQL 5. on RHEL 4. However, 
> having problems when installing php5. Your insights and help are greatly 
> appreciated.
> 
> The following steps were successful
> > ./configure --with-apxs2=/usr/local/apache2/bin/apxs 
> > --with-mysql=/usr/share/mysql
> > make
> 
> I'm getting the following error during php5 'make 
> install'. /usr/local/apache2/build/instdso.sh 
> SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la 
> /usr/local/apache2/modules libtool: install: warning: 
> remember to run `libtool --finish 
> /home/compliance/php-5.1.2/libs' chmod 755 
> /usr/local/apache2/modules/libphp5.so chmod: cannot access 
> `/usr/local/apache2/modules/libphp5.so': No such file or 
> directory apxs:Error: Command failed with rc=65536 .. 
> make: *** [install-sapi] Error 1
> 
> Thanks in advance,
> Tara


Re: [PHP-INSTALL] Enabling all modules as shared

2006-03-03 Thread php

Well, I managed to get things sorted with the following 
./configure command

contents of config.nice

#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/usr/local/apache-2.2.0/bin/apxs' \
'--prefix=/usr/local/php-5.1.2' \
'--with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686' \
'--with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config'
 \
'--with-mysql-sock=/var/lib/mysql/mysql.sock' \
'--with-mhash' \
'--enable-shared=yes' \
'--enable-all=shared' \
'--with-curl=no' \
'--with-fbsql=no' \
'--with-fdftk=no' \
'--with-hwapi=no' \
'--with-imap=no' \
'--with-informix=no' \
'--with-interbase=no' \
'--with-ldap=no' \
'--with-ming=no' \
'--with-msession=no' \
'--with-mssql=no' \
'--with-oci8=no' \
'--disable-pdo' \
'--with-pgsql=no' \
'--with-libedit=no' \
'--with-readline=no' \
'--disable-reflection' \
'--with-snmp=no' \
'--disable-spl' \
'--with-sybase=no' \
'--with-sybase-ct=no' \
'--with-tidy=no' \
'--with-recode=no' \
'--with-msql=no' \
"$@"

However, this tried to load the reflection module and spl 
module as shared. This made configure give up with an error, 
so I had to disable those two modules, as they cannot be 
loaded dynamically.

What I really want to do is tell configure 'Please compile 
all the default static modules into php, and compile all the 
others that can be loaded as dynamic *.so's

Or another way of looking at it - is there any way to enable 
all the available .so modules for dynamic loading, and still 
get all the static modules compiled into the php core?

I would have thought something like --enable-shared=yes 
--enable-static=yes would have done it - not tested this yet 
though!

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Thu, 2 Mar 2006 [EMAIL PROTECTED] wrote:

> To: php-install@lists.php.net
> From: [EMAIL PROTECTED]
> Subject: [PHP-INSTALL] Enabling all modules as shared
> 
> 
> Hi all.
> 
> Is there a ./configure option that will allow me to enable 
> all php 5.1.2 modules as shared? (apart from those that 
> cannot be loaded as shared mods)
> 
> I would like to enable all the modules that can be used as 
> shared in one go, like in apache. Is this possible please?
> 
> I have tried this, but all I get is mysql.so and mysqli.so 
> as shared modules.
> 
> karsites:/downloads/php-src/php-5.1.2 # ./configure 
> --with-apxs2=/usr/local/apache-2.2.0/bin/apxs 
> --prefix=/usr/local/php-5.1.2 
> --with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686 
> --with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config
>  
> --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mhash 
> --with-all=shared
> 
> Or do I have to explicitly state each module I want compiled 
> as shared?
> 
> TIA
> 
> Keith
> 
> In theory, theory and practice are the same;
> In practice they are not. 
> 


Re: [PHP-INSTALL] apxs Error: related to libphp5.so

2006-03-03 Thread php

Maybe it's a bad habit Sasha, but I generally always work as 
root user - I get fed up having to su to get something done.

Also, some other packages will refuse to install without 
working as root user ;-)

If I am going to trash a system, may as well do it at home 
and learn by my mistakes!

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Fri, 3 Mar 2006, Sasha Dolgy wrote:

> To: php-install@lists.php.net
> From: Sasha Dolgy <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] apxs Error: related to libphp5.so
> 
> I would tend to disagree with some of the suggestions that Keith has made.
> 
> 1.  You shouldn't use root until you do a make install.
> 2.  There isn't a need to chmod 777 a directory for the installation
> to be successful.
> 
> http://www.codecomments.com/archive214-2005-11-671834.html
> 
> Seems you aren't the only one with the problem.
> 
> http://forums.fedoraforum.org/archive/index.php/t-23665.html
> 
> Hope these links help.  Don't sacrifice system security for the sake
> of getting something installed :)
> 
> On 3/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Sounds like php has a problem trying to install the
> > php module into the apache modules directory, which it will
> > do by default.
> >
> > Did you compile/install Apache as root user?
> > Are you compiling php5 as root user?
> >
> > Did you do a 'make clean' after installing apache 2? I don't
> > think you need to unless you want to recompile Apache again.
> >
> > Is the apache modules directory writable by php5?
> >
> > try
> >
> > #: /usr/local/ chmod -R 777 apache2
> >
> > and then do make install in the php5 source directory.
> > You will need to reset the apache2 permissions again.
> >
> > HTH
> >
> > Keith
> >
> > In theory, theory and practice are the same;
> > In practice they are not.
> >
> > On Thu, 2 Mar 2006, Tara wrote:
> >
> > > To: php-install@lists.php.net
> > > From: Tara <[EMAIL PROTECTED]>
> > > Subject: [PHP-INSTALL] apxs Error: related to libphp5.so
> > >
> > > Hi,
> > >
> > > I have successfully installed Apache 2.2, and MySQL 5. on RHEL 4. 
> > > However, having problems when installing php5. Your insights and help are 
> > > greatly appreciated.
> > >
> > > The following steps were successful
> > > > ./configure --with-apxs2=/usr/local/apache2/bin/apxs 
> > > > --with-mysql=/usr/share/mysql
> > > > make
> > >
> > > I'm getting the following error during php5 'make
> > > install'. /usr/local/apache2/build/instdso.sh
> > > SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la
> > > /usr/local/apache2/modules libtool: install: warning:
> > > remember to run `libtool --finish
> > > /home/compliance/php-5.1.2/libs' chmod 755
> > > /usr/local/apache2/modules/libphp5.so chmod: cannot access
> > > `/usr/local/apache2/modules/libphp5.so': No such file or
> > > directory apxs:Error: Command failed with rc=65536 ..
> > > make: *** [install-sapi] Error 1
> > >
> > > Thanks in advance,
> > > Tara
> >
> 
> 
> --
> Sasha Dolgy
> [EMAIL PROTECTED]
> 


[PHP-INSTALL] Getting OFF the List

2006-03-03 Thread php

Hi Duncan.

Go to the this address:

http://www.php.net/mailing-lists.php

Check the bullet under the NORMAL Heading, next to this 
section (the fourth list down from the top of the page):

Installation issues and problems
How to install PHP with partiucular configurations,
and servers

Then enter the email address you subscribed to the list 
with, near the end of the page.

Click the Unsubscribe button.

You should then receive a confirmation email.

You MUST respond to that email, then you will get another 
email saying you are un-subscribed from the list.

NB. If you do not check the bullet next to the Install list,
you will not get un-subscribed.

HTH

Keith


On Fri, 3 Mar 2006, Duncan Adams wrote:

> To: [EMAIL PROTECTED]
> From: Duncan Adams <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] Enabling all modules as shared
> 
> can any one that actually tryed get off the list 
> 
> ok what i have done 
> 
> mailed that unsubscriber address (convermation not returned) 
> sent a mail to the list owner (no replie)
> 
> any other hints to get off the list.


Re: [PHP-INSTALL] apxs Error: related to libphp5.so

2006-03-03 Thread php

I have chosen to install and compile software for that very 
reason Sasha. Normally a sys admin would install user 
packages once, as root, to make the packages available 
globally to all other users, which is how I chose to do it.

So I cannot really comment on installing packages as a 
'normal' user. I have had problems going down this route 
before, which is why I do things as root user most of the 
time.

I know it's not the recommended way, but if I was working 
as Linux sys admin, then I would have to work as root user, 
so I thought I may as well get some practice on my own 
machine first.

Regards

Keith

On Fri, 3 Mar 2006, Sasha Dolgy wrote:

> To: php-install@lists.php.net
> From: Sasha Dolgy <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] apxs Error: related to libphp5.so
> 
> Hi Keith.
> 
> "Also, some other packages will refuse to install without working as root 
> user"
> 
> I am not disagreeing with this.  Infact, if you want the application
> available to other users other then yourself and without making your
> home directory open to the rest of the users on the system, it is
> required to have root or more priviledge then a normal user.
> 
> For compilation if you require root then something isn't quite right,
> in my opinion.
> 
> On 3/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Maybe it's a bad habit Sasha, but I generally always work as
> > root user - I get fed up having to su to get something done.
> >
> > Also, some other packages will refuse to install without
> > working as root user ;-)
> >
> > If I am going to trash a system, may as well do it at home
> > and learn by my mistakes!
> >
> > Keith
> 


Re: [PHP-INSTALL] PHP Snippet on a web page

2006-03-11 Thread php

You might be better off trying to do this directly within 
mysql.

Check out the mysql reference manual for the functions you 
have at your disposal.

Also, you could ask on a mysql forum, such as 
http://www.webdeveloper.com

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sat, 11 Mar 2006, Bluejays PC Services wrote:

> To: php-install@lists.php.net
> From: Bluejays PC Services <[EMAIL PROTECTED]>
> Subject: [PHP-INSTALL] PHP Snippet on a web page
> 
> I am not sure whether this is the right place to ask this but I have been
> having great hassle trying to get this to work
> 
> This script gets a snippet from a paragraph in a mysql database and
> displays it on a web page..I want it to display the first 10 words in
> a paragraph but what ever I have tried it will only give me one word
> in the case of the version of the script below, just the first word.
> 
> The *"1/10" *in this line should be what determines how many words will be
> displayed...
> *
> *stripslashes(nl2br(cut_string($row["comment"],*"1/10"*," href=\"full_summ.php?id=$row[id]\">
> 
> ===
> 
>  
> function cut_string($string,$wordnum,$trail)
> {
> $string_arr=explode(" ",$string);
> for($i=0;$i<$wordnum;$i++)
> 
> {
>$re_string=" ".$string_arr[$i];
> }
> $str=$re_string.$trail;
> 
>print $str;
> }
> 
> //connect, select db, create query, run query, close connection
> $conn=mysql_connect("localhost", "user", "password") or
> die(mysql_error());
> $database=mysql_select_db("fback", $conn)or die(mysql_error());
> $sql="SELECT * FROM customer_feedback ORDER by id DESC LIMIT 25";
> $result=mysql_query($sql);
> 
> //PHP goes into while loop to return summaries of comments
> while($row=mysql_fetch_array($result)){
>echo"Date: "
> ..strftime('%d/%m/%y',strtotime($row["date"]))."Comment
> By: ".Stripslashes($row["name"])."";
> echo"Comment: ";
> stripslashes(nl2br(cut_string($row["comment"],"1/10"," href=\"full_summ.php?id=$row[id]\"> Read More>>>")));
> echo"";
> }
> 
> //close database
> mysql_close($conn);
> ?>
> 
> Any Ideas?
> 
> Thanks!
> Jeremy
> 
> -- 
> Jeremy Oliver
> Bluejays PC Repair
> tel 020 8656 1056
> mob 07855833401
> www.bluejayspc.co.uk
> 


Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-11 Thread php

Try calling the following as a php file:



It's only 3 lines, but that returns alot of information for 
debugging your php installation.

Do you have the following directives set in php.ini?

; Enable the PHP scripting language engine under Apache.
engine = ON

; whether PHP may add its signature to the Web server header
expose_php = YES

Can you return a plain html document with Apache?

If not, is your apache DocRoot setup correctly?

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Sat, 11 Mar 2006, Matt G. wrote:

> To: php-install@lists.php.net From: Matt G. 
> <[EMAIL PROTECTED]> Subject: [PHP-INSTALL] php 
> returning completely empty documents on new apache
> install
> 
> I just built the latest apache 2.0 and php5 (shared apache module) on a
> linux 2.6.5 box.  After doing all of the setup from the INSTALL file, I'm
> unable to get a php hello world to work!  (Well, I get it to work with the
> CLI, but not through my web browser)  The apache server just returns a 0
> byte document.  No errors come out in the apache logs and it says the
> document was sent with a http 200 status.  It is as if the php interpreter
> is not getting called.
> 
> When the apache server starts up, it logs that php is in fact configured:
> 
> [Sat Mar 11 16:06:51 2006] [notice] Apache/1.3.34 (Unix) PHP/5.1.2
> configured -- resuming normal operations
> 
> I believe I have the correct lines in my httpd.conf:
> LoadModule php5_modulelibexec/libphp5.so
> AddModule mod_php5.c
> DirectoryIndex index.html index.php
> AddType application/x-httpd-php .php .phtml
> AddType application/x-httpd-php-source .phps
> 
> 
> Does anybody have any suggestions for how I can dig into this further?


[PHP-INSTALL] Re: [SPAM] Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-12 Thread php

Is it because you are using the AddModule directive.
I think that is only used in Apache 1.3.x series.

This is all I have in my httpd.conf for loading the php 
module.

##LoadModule speling_module  modules/mod_speling.so
##LoadModule userdir_module  modules/mod_userdir.so
LoadModule alias_module  modules/mod_alias.so
##LoadModule rewrite_module  modules/mod_rewrite.so
LoadModule php5_module   modules/libphp5.so

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sun, 12 Mar 2006, Matt G. wrote:

> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G. 
> <[EMAIL PROTECTED]> Subject: [SPAM] Re: [PHP-INSTALL] 
> php returning completely empty documents on
> new apache install
> 
> Hi Keith,
> 
> Thanks for the suggestions.  I had already tried the 
> phpinfo() call and it results in the same thing as my 
> hello world, just a 0 byte document returned from the 
> webserver.  The apache install is essentially working 
> correctly, it returns .html docs just fine.  Also, I 
> checked those php.ini keywords and they are both set to 
> on.  (in fact I'm using the exact sample php.ini that came 
> with the source distribution.)
> 
> I'm completely stumped...
> 
> On 11/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > Try calling the following as a php file:
> >
> >  >
> > phpinfo();
> >
> > ?>
> >
> > It's only 3 lines, but that returns alot of information for
> > debugging your php installation.
> >
> > Do you have the following directives set in php.ini?
> >
> > ; Enable the PHP scripting language engine under Apache.
> > engine = ON
> >
> > ; whether PHP may add its signature to the Web server header
> > expose_php = YES
> >
> > Can you return a plain html document with Apache?
> >
> > If not, is your apache DocRoot setup correctly?
> >
> > Keith
> >
> >
> > In theory, theory and practice are the same;
> > In practice they are not.
> >
> > On Sat, 11 Mar 2006, Matt G. wrote:
> >
> > > To: php-install@lists.php.net From: Matt G.
> > > <[EMAIL PROTECTED]> Subject: [PHP-INSTALL] php
> > > returning completely empty documents on new apache
> > > install
> > >
> > > I just built the latest apache 2.0 and php5 (shared 
> > > apache module) on a linux 2.6.5 box.  After doing all 
> > > of the setup from the INSTALL file,
> > I'm
> > > unable to get a php hello world to work!  (Well, I get it to work with
> > the
> > > CLI, but not through my web browser)  The apache 
> > > server just returns a 0 byte document.  No errors come 
> > > out in the apache logs and it says the document was 
> > > sent with a http 200 status.  It is as if the php
> > interpreter
> > > is not getting called.
> > >
> > > When the apache server starts up, it logs that php is in fact
> > configured:
> > >
> > > [Sat Mar 11 16:06:51 2006] [notice] Apache/1.3.34 (Unix) PHP/5.1.2
> > > configured -- resuming normal operations
> > >
> > > I believe I have the correct lines in my httpd.conf:
> > > LoadModule php5_modulelibexec/libphp5.so
> > > AddModule mod_php5.c
> > > DirectoryIndex index.html index.php
> > > AddType application/x-httpd-php .php .phtml
> > > AddType application/x-httpd-php-source .phps
> > >
> > >
> > > Does anybody have any suggestions for how I can dig into this further?
> >
> 


Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-12 Thread php

I've just noticed this as well Matt.

You say you are using Apache 2.0, but take a look at this:

> [Sat Mar 11 16:06:51 2006] [notice] Apache/1.3.34 (Unix) PHP/5.1.2
> configured -- resuming normal operations

It may be that Apache 1.3.34 is running instead of 2.0

Try using this visual process manager, to see how many 
instances of Apache are running:

http://www.student.nada.kth.se/~f91-men/qps/

That may help you solve your problem.

Regards 

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Sun, 12 Mar 2006 [EMAIL PROTECTED] wrote:

> To: php-install@lists.php.net
> From: [EMAIL PROTECTED]
> Subject: [PHP-INSTALL] Re: [SPAM] Re: [PHP-INSTALL] php returning completely
> empty documents on new apache install
> 
> 
> Is it because you are using the AddModule directive.
> I think that is only used in Apache 1.3.x series.
> 
> This is all I have in my httpd.conf for loading the php 
> module.
> 
> ##LoadModule speling_module  modules/mod_speling.so
> ##LoadModule userdir_module  modules/mod_userdir.so
> LoadModule alias_module  modules/mod_alias.so
> ##LoadModule rewrite_module  modules/mod_rewrite.so
> LoadModule php5_module   modules/libphp5.so
> 
> Keith
> 
> In theory, theory and practice are the same;
> In practice they are not. 
> 
> On Sun, 12 Mar 2006, Matt G. wrote:
> 
> > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G. 
> > <[EMAIL PROTECTED]> Subject: [SPAM] Re: [PHP-INSTALL] 
> > php returning completely empty documents on
> > new apache install
> > 
> > Hi Keith,
> > 
> > Thanks for the suggestions.  I had already tried the 
> > phpinfo() call and it results in the same thing as my 
> > hello world, just a 0 byte document returned from the 
> > webserver.  The apache install is essentially working 
> > correctly, it returns .html docs just fine.  Also, I 
> > checked those php.ini keywords and they are both set to 
> > on.  (in fact I'm using the exact sample php.ini that came 
> > with the source distribution.)
> > 
> > I'm completely stumped...
> > 
> > On 11/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Try calling the following as a php file:
> > >
> > >  > >
> > > phpinfo();
> > >
> > > ?>
> > >
> > > It's only 3 lines, but that returns alot of information for
> > > debugging your php installation.
> > >
> > > Do you have the following directives set in php.ini?
> > >
> > > ; Enable the PHP scripting language engine under Apache.
> > > engine = ON
> > >
> > > ; whether PHP may add its signature to the Web server header
> > > expose_php = YES
> > >
> > > Can you return a plain html document with Apache?
> > >
> > > If not, is your apache DocRoot setup correctly?
> > >
> > > Keith
> > >
> > >
> > > In theory, theory and practice are the same;
> > > In practice they are not.
> > >
> > > On Sat, 11 Mar 2006, Matt G. wrote:
> > >
> > > > To: php-install@lists.php.net From: Matt G.
> > > > <[EMAIL PROTECTED]> Subject: [PHP-INSTALL] php
> > > > returning completely empty documents on new apache
> > > > install
> > > >
> > > > I just built the latest apache 2.0 and php5 (shared 
> > > > apache module) on a linux 2.6.5 box.  After doing all 
> > > > of the setup from the INSTALL file,
> > > I'm
> > > > unable to get a php hello world to work!  (Well, I get it to work with
> > > the
> > > > CLI, but not through my web browser)  The apache 
> > > > server just returns a 0 byte document.  No errors come 
> > > > out in the apache logs and it says the document was 
> > > > sent with a http 200 status.  It is as if the php
> > > interpreter
> > > > is not getting called.
> > > >
> > > > When the apache server starts up, it logs that php is in fact
> > > configured:
> > > >
> > > > [Sat Mar 11 16:06:51 2006] [notice] Apache/1.3.34 (Unix) PHP/5.1.2
> > > > configured -- resuming normal operations
> > > >
> > > > I believe I have the correct lines in my httpd.conf:
> > > > LoadModule php5_modulelibexec/libphp5.so
> > > > AddModule mod_php5.c
> > > > DirectoryIndex index.html index.php
> > > > AddType application/x-httpd-php .php .phtml
> > > > AddType application/x-httpd-php-source .phps
> > > >
> > > >
> > > > Does anybody have any suggestions for how I can dig into this further?
> > >
> > 
> 


Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-13 Thread php

This is really strange cause normally php works just fine!

Have you compiled php5 against Apache 1.3.34, and not a 
2.0.xx version Matt?

Keith

On Sun, 12 Mar 2006, Matt G. wrote:

> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> From: Matt G. <[EMAIL PROTECTED]>
> Subject: [SPAM] Re: [PHP-INSTALL] Re: [SPAM] Re: [PHP-INSTALL] php returning
> completely empty documents on new apache install
> 
> Err...my mistake, I am using apache 1.3.34.  Not sure why I said 2.0 in the
> original message.
> 
> On 12/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > Is it because you are using the AddModule directive.
> > I think that is only used in Apache 1.3.x series.
> >
> > This is all I have in my httpd.conf for loading the php
> > module.
> >
> > ##LoadModule speling_module  modules/mod_speling.so
> > ##LoadModule userdir_module  modules/mod_userdir.so
> > LoadModule alias_module  modules/mod_alias.so
> > ##LoadModule rewrite_module  modules/mod_rewrite.so
> > LoadModule php5_module   modules/libphp5.so
> >
> > Keith
> >
> > In theory, theory and practice are the same;
> > In practice they are not.
> >
> > On Sun, 12 Mar 2006, Matt G. wrote:
> >
> > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G.
> > > <[EMAIL PROTECTED]> Subject: [SPAM] Re: [PHP-INSTALL]
> > > php returning completely empty documents on
> > > new apache install
> > >
> > > Hi Keith,
> > >
> > > Thanks for the suggestions.  I had already tried the
> > > phpinfo() call and it results in the same thing as my
> > > hello world, just a 0 byte document returned from the
> > > webserver.  The apache install is essentially working
> > > correctly, it returns .html docs just fine.  Also, I
> > > checked those php.ini keywords and they are both set to
> > > on.  (in fact I'm using the exact sample php.ini that came
> > > with the source distribution.)
> > >
> > > I'm completely stumped...
> > >
> > > On 11/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Try calling the following as a php file:
> > > >
> > > >  > > >
> > > > phpinfo();
> > > >
> > > > ?>
> > > >
> > > > It's only 3 lines, but that returns alot of information for
> > > > debugging your php installation.
> > > >
> > > > Do you have the following directives set in php.ini?
> > > >
> > > > ; Enable the PHP scripting language engine under Apache.
> > > > engine = ON
> > > >
> > > > ; whether PHP may add its signature to the Web server header
> > > > expose_php = YES
> > > >
> > > > Can you return a plain html document with Apache?
> > > >
> > > > If not, is your apache DocRoot setup correctly?
> > > >
> > > > Keith
> > > >
> > > >
> > > > In theory, theory and practice are the same;
> > > > In practice they are not.
> > > >
> > > > On Sat, 11 Mar 2006, Matt G. wrote:
> > > >
> > > > > To: php-install@lists.php.net From: Matt G.
> > > > > <[EMAIL PROTECTED]> Subject: [PHP-INSTALL] php
> > > > > returning completely empty documents on new apache
> > > > > install
> > > > >
> > > > > I just built the latest apache 2.0 and php5 (shared
> > > > > apache module) on a linux 2.6.5 box.  After doing all
> > > > > of the setup from the INSTALL file,
> > > > I'm
> > > > > unable to get a php hello world to work!  (Well, I get it to work
> > with
> > > > the
> > > > > CLI, but not through my web browser)  The apache
> > > > > server just returns a 0 byte document.  No errors come
> > > > > out in the apache logs and it says the document was
> > > > > sent with a http 200 status.  It is as if the php
> > > > interpreter
> > > > > is not getting called.
> > > > >
> > > > > When the apache server starts up, it logs that php is in fact
> > > > configured:
> > > > >
> > > > > [Sat Mar 11 16:06:51 2006] [notice] Apache/1.3.34 (Unix) PHP/5.1.2
> > > > > configured -- resuming normal operations
> > > > >
> > > > > I believe I have the correct lines in my httpd.conf:
> > > > > LoadModule php5_modulelibexec/libphp5.so
> > > > > AddModule mod_php5.c
> > > > > DirectoryIndex index.html index.php
> > > > > AddType application/x-httpd-php .php .phtml
> > > > > AddType application/x-httpd-php-source .phps
> > > > >
> > > > >
> > > > > Does anybody have any suggestions for how I can dig into this
> > further?
> > > >
> > >
> >
> 


Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-13 Thread php

Is this your own server that you have complete access to, or 
is it an ISP machine?

If you are running Apache under your own personal user 
account, where are you putting your website pages?

Are they under your personal home directory as well?

If so, it may be that php is not configured to pull 
documents from that directory.

What are these two directives set to, in your php.ini?

doc_root string

PHP's "root directory" on the server. Only used if 
non-empty. If PHP is configured with safe mode, no files 
outside this directory are served. If PHP was not compiled 
with FORCE_REDIRECT, you should set doc_root if you are 
running PHP as a CGI under any web server (other than IIS). 
The alternative is to use the cgi.force_redirect 
configuration below. 

user_dir string

The base name of the directory used on a user's home 
directory for PHP files, for example public_html .

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Mar 2006, Matt G. wrote:

> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> From: Matt G. <[EMAIL PROTECTED]>
> Subject: [SPAM] Re: [PHP-INSTALL] php returning completely empty documents on
> new apache install
> 
> Yes, compiled against apache 1.3.34.  I never even downloaded a 2.xversion...
> 
> One non-standard thing I'm doing is running apache under my personal user
> account on this machine.  (I don't have root)  But I wouldn't think that
> should be a problem.  Is it possible that php is somehow running into a
> permission denied problem?  I've checked file permissions and ownerships
> pretty thoroughly and don't see anything amiss.
> 
> thanks
> 
> 
> On 13/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > This is really strange cause normally php works just fine!
> >
> > Have you compiled php5 against Apache 1.3.34, and not a
> > 2.0.xx version Matt?
> >
> > Keith
> >
> > On Sun, 12 Mar 2006, Matt G. wrote:
> >
> > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > From: Matt G. <[EMAIL PROTECTED]>
> > > Subject: [SPAM] Re: [PHP-INSTALL] Re: [SPAM] Re: [PHP-INSTALL] php
> > returning
> > > completely empty documents on new apache install
> > >
> > > Err...my mistake, I am using apache 1.3.34.  Not sure why I said 2.0 in
> > the
> > > original message.
> > >
> > > On 12/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Is it because you are using the AddModule directive.
> > > > I think that is only used in Apache 1.3.x series.
> > > >
> > > > This is all I have in my httpd.conf for loading the php
> > > > module.
> > > >
> > > > ##LoadModule speling_module  modules/mod_speling.so
> > > > ##LoadModule userdir_module  modules/mod_userdir.so
> > > > LoadModule alias_module  modules/mod_alias.so
> > > > ##LoadModule rewrite_module  modules/mod_rewrite.so
> > > > LoadModule php5_module   modules/libphp5.so
> > > >
> > > > Keith
> > > >
> > > > In theory, theory and practice are the same;
> > > > In practice they are not.
> > > >
> > > > On Sun, 12 Mar 2006, Matt G. wrote:
> > > >
> > > > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G.
> > > > > <[EMAIL PROTECTED]> Subject: [SPAM] Re: [PHP-INSTALL]
> > > > > php returning completely empty documents on
> > > > > new apache install
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > Thanks for the suggestions.  I had already tried the
> > > > > phpinfo() call and it results in the same thing as my
> > > > > hello world, just a 0 byte document returned from the
> > > > > webserver.  The apache install is essentially working
> > > > > correctly, it returns .html docs just fine.  Also, I
> > > > > checked those php.ini keywords and they are both set to
> > > > > on.  (in fact I'm using the exact sample php.ini that came
> > > > > with the source distribution.)
> > > > >
> > > > > I'm completely stumped...
> > > > >
> > > > > On 11/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >
> > > > > > Try calling the following as a php

Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-14 Thread php

I'm just wondering if your error reporting in php.ini is 
turned off. I had problems before where php was 
throwing an error message, but I had no error message 
displayed, because I had set error_reporting to 0;

Even so, i don't think the output from phpinfo() would be 
affected by the error_reporting level.

what does the following look like in your php.ini?

;Show all errors and warnings, including php coding 
;suggestions
error_reporting = E_ALL | E_STRICT

In theory, theory and practice are the same;
In practice they are not. 

Keith


Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-14 Thread php

Something else Matt.

Are you using the short php open tags - like  tags.
asp_tags = OFF

; Allow the  tags 
are recognized.
short_open_tag = OFF

Another thing, when you do a directory listing, or generate 
a 404 apache error, does Apache return the php version as 
part of the server signature?

You can check this by setting expose_php = YES iniphp.ini, 
and in httpd.conf, setting:

ServerTokens Full
ServerSignature On

This should show you if php is loaded into apache OK.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Mar 2006, Matt G. wrote:

> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> From: Matt G. <[EMAIL PROTECTED]>
> Subject: [SPAM] Re: [PHP-INSTALL] php returning completely empty documents on
> new apache install
> 
> Yes, compiled against apache 1.3.34.  I never even downloaded a 2.xversion...
> 
> One non-standard thing I'm doing is running apache under my personal user
> account on this machine.  (I don't have root)  But I wouldn't think that
> should be a problem.  Is it possible that php is somehow running into a
> permission denied problem?  I've checked file permissions and ownerships
> pretty thoroughly and don't see anything amiss.
> 
> thanks
> 
> 
> On 13/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > This is really strange cause normally php works just fine!
> >
> > Have you compiled php5 against Apache 1.3.34, and not a
> > 2.0.xx version Matt?
> >
> > Keith
> >
> > On Sun, 12 Mar 2006, Matt G. wrote:
> >
> > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > From: Matt G. <[EMAIL PROTECTED]>
> > > Subject: [SPAM] Re: [PHP-INSTALL] Re: [SPAM] Re: [PHP-INSTALL] php
> > returning
> > > completely empty documents on new apache install
> > >
> > > Err...my mistake, I am using apache 1.3.34.  Not sure why I said 2.0 in
> > the
> > > original message.
> > >
> > > On 12/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Is it because you are using the AddModule directive.
> > > > I think that is only used in Apache 1.3.x series.
> > > >
> > > > This is all I have in my httpd.conf for loading the php
> > > > module.
> > > >
> > > > ##LoadModule speling_module  modules/mod_speling.so
> > > > ##LoadModule userdir_module  modules/mod_userdir.so
> > > > LoadModule alias_module  modules/mod_alias.so
> > > > ##LoadModule rewrite_module  modules/mod_rewrite.so
> > > > LoadModule php5_module   modules/libphp5.so
> > > >
> > > > Keith
> > > >
> > > > In theory, theory and practice are the same;
> > > > In practice they are not.
> > > >
> > > > On Sun, 12 Mar 2006, Matt G. wrote:
> > > >
> > > > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G.
> > > > > <[EMAIL PROTECTED]> Subject: [SPAM] Re: [PHP-INSTALL]
> > > > > php returning completely empty documents on
> > > > > new apache install
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > Thanks for the suggestions.  I had already tried the
> > > > > phpinfo() call and it results in the same thing as my
> > > > > hello world, just a 0 byte document returned from the
> > > > > webserver.  The apache install is essentially working
> > > > > correctly, it returns .html docs just fine.  Also, I
> > > > > checked those php.ini keywords and they are both set to
> > > > > on.  (in fact I'm using the exact sample php.ini that came
> > > > > with the source distribution.)
> > > > >
> > > > > I'm completely stumped...
> > > > >
> > > > > On 11/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >
> > > > > > Try calling the following as a php file:
> > > > > >
> > > > > >  > > > > >
> > > > > > phpinfo();
> > > > > >
> > > > > > ?>
> > > > > >
> > > > > > It's only 3 lines, but that returns alot of information for
> > > > > > debugging your php installation.
> > > > > >
> > > > >

Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-14 Thread php

Sounds to me like apache may not be loading the php5 module.

This is why I asked you to get Apache to show what the 
server signature was returning.

I think you need to find a way to establish whether the php5 
module is being loaded or not. I'm not sure if mod_info will 
return this.

Let me ask on the httpd mailing list how to do this.

I'll get back to you then.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Tue, 14 Mar 2006, Matt G. wrote:

> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> From: Matt G. <[EMAIL PROTECTED]>
> Subject: Re: [PHP-INSTALL] php returning completely empty documents on new
> apache install
> 
> Thanks for the great suggestions.  We might be getting a bit closer here...
> 
> 1) I did find that doc_root was not set in my php.ini so I filled it in and
> pointed it to my apache htdocs directory
> 2) Error logging was turned on in php.ini but I expanded it to include
> E_STRICT
> 3) Error logging to a file was not turned on in php.ini so I turned it on.
> No errors have showed up in the logfile I specified.
> 4) expose_php is turned on as well as the ServerTokens and ServerSignature
> lines you gave.  Unfortunately, when I view a 404 URL, apache identifies
> itselv, but does NOT say anything about php.  This led me to believe that
> somehow my php.ini was not getting read.  I tried pointing $PHPRC directly
> to my php.ini and restarting the apache server but this didn't change
> anything.  Somehow I still suspect that my php.ini is not getting found so
> I'm going to fool around with that now.
> 
> 
> 
> 
> On 14/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > Something else Matt.
> >
> > Are you using the short php open tags - like  > instead of the full  >
> > If so then php will ignore any embeded php code unless you
> > use the full  >
> > ;;php.ini extract
> > ; whether PHP may add its signature to the Web server header
> > expose_php = YES
> >
> > ; Allow ASP-style <% %> tags.
> > asp_tags = OFF
> >
> > ; Allow the  tags
> > are recognized.
> > short_open_tag = OFF
> >
> > Another thing, when you do a directory listing, or generate
> > a 404 apache error, does Apache return the php version as
> > part of the server signature?
> >
> > You can check this by setting expose_php = YES iniphp.ini,
> > and in httpd.conf, setting:
> >
> > ServerTokens Full
> > ServerSignature On
> >
> > This should show you if php is loaded into apache OK.
> >
> > Keith
> >
> > In theory, theory and practice are the same;
> > In practice they are not.
> >
> > On Mon, 13 Mar 2006, Matt G. wrote:
> >
> > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > From: Matt G. <[EMAIL PROTECTED]>
> > > Subject: [SPAM] Re: [PHP-INSTALL] php returning completely empty
> > documents on
> > > new apache install
> > >
> > > Yes, compiled against apache 1.3.34.  I never even downloaded a
> > 2.xversion...
> > >
> > > One non-standard thing I'm doing is running apache under my personal
> > user
> > > account on this machine.  (I don't have root)  But I wouldn't think that
> > > should be a problem.  Is it possible that php is somehow running into a
> > > permission denied problem?  I've checked file permissions and ownerships
> > > pretty thoroughly and don't see anything amiss.
> > >
> > > thanks
> > >
> > >
> > > On 13/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > This is really strange cause normally php works just fine!
> > > >
> > > > Have you compiled php5 against Apache 1.3.34, and not a
> > > > 2.0.xx version Matt?
> > > >
> > > > Keith
> > > >
> > > > On Sun, 12 Mar 2006, Matt G. wrote:
> > > >
> > > > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > > > From: Matt G. <[EMAIL PROTECTED]>
> > > > > Subject: [SPAM] Re: [PHP-INSTALL] Re: [SPAM] Re: [PHP-INSTALL] php
> > > > returning
> > > > > completely empty documents on new apache install
> > > > >
> > > > > Err...my mistake, I am using apache 1.3.34.  Not sure why I said 2.0in
> > > > the
> > > > > original message.
> > > > >
> > > > > On 12/03/06, [EMAIL PROTECTED] <[EMAIL 

Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-14 Thread php

One more thing Matt, before I ask on the apache mailing 
list:

Can you check your apache error_log please, and see if it 
says that php is starting ok.

This is what it says in my Apache 2.2.0 error_log when it 
starts up:

[Sun Mar 12 05:52:45 2006] [info] mod_unique_id: using ip 
addr 10.0.0.1
[Sun Mar 12 05:52:46 2006] [notice] Digest: generating 
secret for digest authentication ...
[Sun Mar 12 05:52:46 2006] [notice] Digest: done
[Sun Mar 12 05:52:46 2006] [info] mod_unique_id: using ip 
addr 10.0.0.1
[Sun Mar 12 05:52:47 2006] [notice] Apache/2.2.0 (Unix) 
PHP/5.1.2 configured
 -- resuming normal operations

What do you have in your error_log?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Tue, 14 Mar 2006 [EMAIL PROTECTED] wrote:

> To: php-install@lists.php.net
> From: [EMAIL PROTECTED]
> Subject: Re: [PHP-INSTALL] php returning completely empty documents on new
> apache install
> 
> 
> Sounds to me like apache may not be loading the php5 module.
> 
> This is why I asked you to get Apache to show what the 
> server signature was returning.
> 
> I think you need to find a way to establish whether the php5 
> module is being loaded or not. I'm not sure if mod_info will 
> return this.
> 
> Let me ask on the httpd mailing list how to do this.
> 
> I'll get back to you then.
> 
> Keith
> 
> In theory, theory and practice are the same;
> In practice they are not. 
> 
> On Tue, 14 Mar 2006, Matt G. wrote:
> 
> > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > From: Matt G. <[EMAIL PROTECTED]>
> > Subject: Re: [PHP-INSTALL] php returning completely empty documents on new
> > apache install
> > 
> > Thanks for the great suggestions.  We might be getting a bit closer here...
> > 
> > 1) I did find that doc_root was not set in my php.ini so I filled it in and
> > pointed it to my apache htdocs directory
> > 2) Error logging was turned on in php.ini but I expanded it to include
> > E_STRICT
> > 3) Error logging to a file was not turned on in php.ini so I turned it on.
> > No errors have showed up in the logfile I specified.
> > 4) expose_php is turned on as well as the ServerTokens and ServerSignature
> > lines you gave.  Unfortunately, when I view a 404 URL, apache identifies
> > itselv, but does NOT say anything about php.  This led me to believe that
> > somehow my php.ini was not getting read.  I tried pointing $PHPRC directly
> > to my php.ini and restarting the apache server but this didn't change
> > anything.  Somehow I still suspect that my php.ini is not getting found so
> > I'm going to fool around with that now.
> > 
> > 
> > 
> > 
> > On 14/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Something else Matt.
> > >
> > > Are you using the short php open tags - like  > > instead of the full  > >
> > > If so then php will ignore any embeded php code unless you
> > > use the full  > >
> > > ;;php.ini extract
> > > ; whether PHP may add its signature to the Web server header
> > > expose_php = YES
> > >
> > > ; Allow ASP-style <% %> tags.
> > > asp_tags = OFF
> > >
> > > ; Allow the  tags
> > > are recognized.
> > > short_open_tag = OFF
> > >
> > > Another thing, when you do a directory listing, or generate
> > > a 404 apache error, does Apache return the php version as
> > > part of the server signature?
> > >
> > > You can check this by setting expose_php = YES iniphp.ini,
> > > and in httpd.conf, setting:
> > >
> > > ServerTokens Full
> > > ServerSignature On
> > >
> > > This should show you if php is loaded into apache OK.
> > >
> > > Keith
> > >
> > > In theory, theory and practice are the same;
> > > In practice they are not.
> > >
> > > On Mon, 13 Mar 2006, Matt G. wrote:
> > >
> > > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > > From: Matt G. <[EMAIL PROTECTED]>
> > > > Subject: [SPAM] Re: [PHP-INSTALL] php returning completely empty
> > > documents on
> > > > new apache install
> > > >
> > > > Yes, compiled against apache 1.3.34.  I never even downloaded a
> > > 2.xversion...
> > > >
> > > > One non-standard thing I'm doing is running apache under my personal
> > > user
> > > > account on this machine.  (I don't have root)  But

Re: [PHP-INSTALL] php returning completely empty documents on new apache install

2006-03-14 Thread php

Are you sure that you are editing the right httpd.conf file 
Matt?

I've edited the wrong file before, then wondered why my 
changes have no effect.

You could try adding something to your httpd.conf that will 
generate an error, such as the wrong path to the php module.

Then do apachectl -t to do a syntax error on your httpd.conf 
file.

If you get 'syntax OK' and no error message then this may 
be the problem.

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Tue, 14 Mar 2006 [EMAIL PROTECTED] wrote:

> To: php-install@lists.php.net
> From: [EMAIL PROTECTED]
> Subject: Re: [PHP-INSTALL] php returning completely empty documents on new
> apache install
> 
> 
> One more thing Matt, before I ask on the apache mailing 
> list:
> 
> Can you check your apache error_log please, and see if it 
> says that php is starting ok.
> 
> This is what it says in my Apache 2.2.0 error_log when it 
> starts up:
> 
> [Sun Mar 12 05:52:45 2006] [info] mod_unique_id: using ip 
> addr 10.0.0.1
> [Sun Mar 12 05:52:46 2006] [notice] Digest: generating 
> secret for digest authentication ...
> [Sun Mar 12 05:52:46 2006] [notice] Digest: done
> [Sun Mar 12 05:52:46 2006] [info] mod_unique_id: using ip 
> addr 10.0.0.1
> [Sun Mar 12 05:52:47 2006] [notice] Apache/2.2.0 (Unix) 
> PHP/5.1.2 configured
>  -- resuming normal operations
> 
> What do you have in your error_log?
> 
> Keith
> 
> In theory, theory and practice are the same;
> In practice they are not. 
> 
> On Tue, 14 Mar 2006 [EMAIL PROTECTED] wrote:
> 
> > To: php-install@lists.php.net
> > From: [EMAIL PROTECTED]
> > Subject: Re: [PHP-INSTALL] php returning completely empty documents on new
> > apache install
> > 
> > 
> > Sounds to me like apache may not be loading the php5 module.
> > 
> > This is why I asked you to get Apache to show what the 
> > server signature was returning.
> > 
> > I think you need to find a way to establish whether the php5 
> > module is being loaded or not. I'm not sure if mod_info will 
> > return this.
> > 
> > Let me ask on the httpd mailing list how to do this.
> > 
> > I'll get back to you then.
> > 
> > Keith
> > 
> > In theory, theory and practice are the same;
> > In practice they are not. 
> > 
> > On Tue, 14 Mar 2006, Matt G. wrote:
> > 
> > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > From: Matt G. <[EMAIL PROTECTED]>
> > > Subject: Re: [PHP-INSTALL] php returning completely empty documents on new
> > > apache install
> > > 
> > > Thanks for the great suggestions.  We might be getting a bit closer 
> > > here...
> > > 
> > > 1) I did find that doc_root was not set in my php.ini so I filled it in 
> > > and
> > > pointed it to my apache htdocs directory
> > > 2) Error logging was turned on in php.ini but I expanded it to include
> > > E_STRICT
> > > 3) Error logging to a file was not turned on in php.ini so I turned it on.
> > > No errors have showed up in the logfile I specified.
> > > 4) expose_php is turned on as well as the ServerTokens and ServerSignature
> > > lines you gave.  Unfortunately, when I view a 404 URL, apache identifies
> > > itselv, but does NOT say anything about php.  This led me to believe that
> > > somehow my php.ini was not getting read.  I tried pointing $PHPRC directly
> > > to my php.ini and restarting the apache server but this didn't change
> > > anything.  Somehow I still suspect that my php.ini is not getting found so
> > > I'm going to fool around with that now.
> > > 
> > > 
> > > 
> > > 
> > > On 14/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Something else Matt.
> > > >
> > > > Are you using the short php open tags - like  > > > instead of the full  > > >
> > > > If so then php will ignore any embeded php code unless you
> > > > use the full  > > >
> > > > ;;php.ini extract
> > > > ; whether PHP may add its signature to the Web server header
> > > > expose_php = YES
> > > >
> > > > ; Allow ASP-style <% %> tags.
> > > > asp_tags = OFF
> > > >
> > > > ; Allow the  tags
> > > > are recognized.
> > > > short_open_tag = OFF
> > > >
> > > > Another thing, when you do a directory listing, or generate
> 

[PHP-INST] getting php as cgi working

2002-04-03 Thread php

Hello,
I am running the module version of php(4.0.5) AND have a cgi
version compiled.  The cgi version is php 4.1.1(compiled with
--enable-discard-path) and this is on a sunOS 5.8 box. I am trying to run
a setuid wrapper that calls a .php4 script.  Whenever I enter
the url to the .cgi wrapper it appears to echo the binary as opposed to
executing it?  If I execute the cgi from the command line it
works fine.  Also if I change the file that the cgi wrapper is pointing to
to a .sh file it runs fine via command line or a url
through apache.  If I enter the url directly to the .php4 in the url it
works and is parsed by the cgi version of php.  Because of
these symptoms I beleive it has something to do with my apache
configuration?  However below I am pasteing the cgi wrapper code,
the apache configuration, and the unf.php4 file that the wrapper points
to.  I hope that someone will be kind enough to
help me out.

//cgi wrapper after gcc i would then chmod 4755.
#include 
#include 
#include 
int main(void){
setuid(1001);
setgid(10);
system("/path/to/cgi-bin/unf.php4");
}


//I have tried many different types of configurations with the following
apache directives.
//my current settings that should be relevant are below.

AddHandler cgi-script .cgi .pl
Action application/x-httpd-php /usr/local/bin/php
AddType application/x-httpd-php .php .php4

//then where the virtual host is defined I have this.
//i have replaced the directory path and real domain name with
/path/to/mydomain



AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all

ScriptAlias /cgi-bin/ "/path/to/mydomain/public_html/cgi-bin/"
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /path/to/mydomain/public_html
ServerName www.mydomain.com
ErrorLog /path/to/mydomain/public_html/logs/error_log
CustomLog /path/to/mydomain/public_html/logs/access_log common



//finally I will post the code to the unf.php4 file that is being called
by the wrapper
//removing the -q has no effect


#!/usr/local/bin/php -q



ive looked all over for an answer to this problem, google, php.net
devshed.com phpbuilder, #php on efnet and openprojects.net, php-general
list, you guys are my last resort.  So if no one can help could someone
give me some other places where i can try to get help for this
problem? Thank you in advance.

~serj


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-INST] Cant get installed on one computer

2002-12-04 Thread php
   We are trying to move to PHP for our website here at work and I 
installed about 2 months ago PHP and Apache on a machine here, I then 
installed it on our server and another employees machine with no problems.

 Now, I am trying to install it yet again on a QA machine and I can't get 
it to work. I get the following error:

Warning: Failed opening '/home/public_html/tst.php' for inclusion 
(include_path='c:\php4\pear') in Unknown on line 0

  I was using Apache 1.3.23, I upgraded to 1.3.27 and even upgraded to 
Apache 2.  I was using PHP 4.1.2 and I downloaded 4.3 ORC and tried it, I 
get the same error no matter what the versions.  I tried copying entire 
directories from working machines as well and still get that error 
above.   It is only on this one machine that I can't get it to work but all 
the machines are pretty similar with pretty much the same software and 
configurations on them.

  Win2k
  Apache 1.3.27 currently
  php 4.1.2 currently
  everything is on drive D:\  so it is D:\Apache  and D:\PHP serverroot is 
D:\home\public_html and the tst.php is just doing phpinfo()

 I did a disk wide search for c:\php4\pear and found it in 
d:\php\php4ts.dll  I assume that is some kind of default that is overriden 
by variable in .INI or like that but I have copied those files from working 
machines and gone through them line by line.

  Any Ideas ?

mike


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-INST] PHP4 Install Problems!

2001-05-14 Thread php

I'm trying to install PHP4 as an Apache Module by following the
instructions in the PHP manual.  Here are the specifics of my install:

Apache: 1.3.19
  Configuration options: ./configure --bindir=/usr/local/apache/bin
--sbindir=/usr/local/apache/bin --libexecdir=/usr/local/apache/libexec
--datadir=/data/httpd --enable-module=so

PHP: 4.04pl1
  Configuration options: ./configure --with-mysql
--with-apache=/tmp/apache_1.3.19 --with-ldap --with-imap
--enable-track-vars --enable-magic-quotes --with-ldap --enable-trans-sid
--enable-force-cgi-redirect

I do all of the associated makes on PHP, then add the PHP4 module into
Apache by running ./configure --activate-module=src/modules/php4/libphp4.a

That runs without a hitch.  However, when I try a make on Apache, I get 

gcc -c  -I./os/unix -I./include   -DLINUX=22 -I/tmp/php-4.0.4pl1
-I/tmp/php-4.0.4pl1/main -I/tmp/php-4.0.4pl1/main -I/tmp/php-4.0.4pl1/Zend
-I/tmp/php-4.0.4pl1/Zend -I/tmp/php-4.0.4pl1/TSRM -I/tmp/php-4.0.4pl1/TSRM
-I/tmp/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
`./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=22 -I/tmp/php-4.0.4pl1
-I/tmp/php-4.0.4pl1/main -I/tmp/php-4.0.4pl1/main -I/tmp/php-4.0.4pl1/Zend
-I/tmp/php-4.0.4pl1/Zend -I/tmp/php-4.0.4pl1/TSRM -I/tmp/php-4.0.4pl1/TSRM
-I/tmp/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
`./apaci` buildmark.c
gcc  -DLINUX=22 -I/tmp/php-4.0.4pl1 -I/tmp/php-4.0.4pl1/main
-I/tmp/php-4.0.4pl1/main -I/tmp/php-4.0.4pl1/Zend -I/tmp/php-4.0.4pl1/Zend
-I/tmp/php-4.0.4pl1/TSRM -I/tmp/php-4.0.4pl1/TSRM -I/tmp/php-4.0.4pl1
-DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`\
  -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a  -rdynamic -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam -lc-client  -ldl -lldap -llber
-lresolv -lm -ldl -lcrypt -lnsl  -lresolv   -lm -lcrypt
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o):
In function `auth_gssapi_valid':
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:86: undefined reference to
`gss_mech_krb5'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:87: undefined reference to
`gss_mech_set_krb5'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:89: undefined reference to
`gss_nt_service_name'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:89: undefined reference to
`gss_import_name'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:91: undefined reference to
`krb5_defkeyname'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:93: undefined reference to
`gss_release_name'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o):
In function `auth_gssapi_client':
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:127: undefined reference
to `gss_nt_service_name'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:127: undefined reference
to `gss_import_name'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:129: undefined reference
to `gss_init_sec_context'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:136: undefined reference
to `gss_init_sec_context'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:140: undefined reference
to `gss_release_buffer'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:157: undefined reference
to `gss_unwrap'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:164: undefined reference
to `gss_release_buffer'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:171: undefined reference
to `gss_wrap'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:173: undefined reference
to `gss_release_buffer'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:180: undefined reference
to `gss_delete_sec_context'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:197: undefined reference
to `gss_display_status'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:203: undefined reference
to `gss_release_buffer'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:210: undefined reference
to `gss_display_status'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:217: undefined reference
to `gss_release_buffer'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:220: undefined reference
to `gss_display_status'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:226: undefined reference
to `gss_release_buffer'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:233: undefined reference
to `gss_release_name'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o):
In function `auth_gssapi_server':
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:266: undefined reference
to `gss_nt_service_name'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:266: undefined reference
to `gss_import_name'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:268: undefined reference
to `gss_acquire_cred'
/usr/src/bs/BUILD/imap-4.7c/c-client/auth_gss.c:272: undefined re

RE: [PHP-INST] LibMcrypt Linking Problem

2001-07-11 Thread php

This is the method we use
First ensure that /usr/local/lib is in /etc/ld.so.conf
and run ldconfig

wget ftp://argeas.cs-net.gr/pub/unix/mcrypt/libmcrypt/libmcrypt-2.4.9.tar.gz
tar -pxzf libmcrypt-2.4.9.tar.gz
cd libmcrypt-2.4.9
./configure --disable-posix-threads
make
make install

#
# http://mhash.sourceforge.net/
# http://mhash.sourceforge.net/dl/mhash-0.8.3.tar.gz

wget http://mhash.sourceforge.net/dl/mhash-0.8.9.tar.gz
tar -pxzf mhash-0.8.9.tar.gz
cd mhash-0.8.9
./configure
make
make install

wget ftp://argeas.cs-net.gr/pub/unix/mcrypt/mcrypt-2.5.5.tar.gz
tar -pxzf mcrypt-2.5.5.tar.gz
cd mcrypt-2.5.5
./configure
make
make install

cp /usr/local/lib/libmcrypt.* /usr/lib
ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2

If you have any problems at each install rerun ldconfig to be sure it finds
any files it needs

Then with PHP we use :-
with-mcrypt=/usr/local --with-mhash=/usr/local

Fingers crossed :)

Darren

> -Original Message-
> From: John Peebles [mailto:[EMAIL PROTECTED]]
> Sent: 11 July 2001 17:43
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] LibMcrypt Linking Problem
>
>
> Hi everyone,
>     I am trying to recompile php with mcrypt and I downloaded
> libmcrypt, and
> ran the configure script, did a make, a make test (no errors), and a make
> install.  Then I tried to do the same with mcrypt and I got the following
> error:
>
> *** Could not run libmcrypt test program, checking why...
> *** The test program compiled, but did not run. This usually means
> *** that the run-time linker is not finding LIBMCRYPT or finding the wrong
> *** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you'll
> need to set
> your
> *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
> *** to the installed location  Also, make sure you have run
> ldconfig if that
> *** is required on your system
> ***
> *** If you have an old version installed, it is best to remove
> it, although
> *** you may also be able to get things to work by modifying
> LD_LIBRARY_PATH
> ***
> configure: error: *** libmcrypt was not found
>
> I tried adding "/usr/local/bin" to the "/etc/ld.so.conf " file
> since that is
> where the INSTALL file said the executable is usually installed.
> Can anyone
> help me with this?
>
>
> Thanks in advance,
>
> John
>
>
> --
> 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]
>
>


-- 
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]




[PHP-INST] undefined symbol: table_get

2001-10-02 Thread PHP

HELP!!

I have been working on this for a couple of days now.  I have read all of
the posts here and other places as well as the PHP FAQ, MySQL support and
Apache support.

The problem is simple, I have installed php-4.0.6 as dynamic with
Apache-1.3.19 and MySQL-3.23.39 on a Linux 7.x platform.  I also have
MySQL-devel-3.23.39 and MySQL-Shared-3.23.39 installed via RPM.  make and
make install produced no obvious errors but when I start apache I receive:
"Cannot load [libphp4.so] into server: [lbphp4.so]: undefined symbol:
table_get  yada yada yada unable to start httpd"

PHP and Apache were compiled from source and mysql was downloaded and
installed with RPM.

I am certain that the error that I am receiving is the result of a missing,
misplaced or bad version of a library but which library?

PHP was configured as:

--with-mcal=/path/to/mcal
--with-apxs=/path/to/apxs
--with-mysql=/usr
--with-impa=/path/to/c-client
--enable-track-vars

Apache has mod_so.c enabled.

The current ld.so.conf is a mess but looks like:
 /usr
/usr/lib
/usr/lib/php4
/usr/lib/mysql
/usr/kerberos/lib
/usr/x11r6/lib
/usr/lib/sane
/usr/lib/qt-23.0/lib
/usr/local/lib
/usr/local/apache
/lib
/lib/libmcal

Obviously not all of these are required but it is what it is for now.

I am sure that I have not mentioned something that is vitally important in
order to resolve this mystery, so ask away.  Unless of course you are one of
the really incredible types that can solve this puzzle with the information
provided.

Thanks in advance.





-- 
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]




[PHP-INST] Re: undefined symbol: table_get

2001-10-03 Thread PHP

I have managed to figure this out. For those of you that run into this
problem I thought that I would document the solution for you.
table_get is the old version of ap_table_get which is an Apache function.
Because I still need to use a few of the older components it becomes
necessary to build a "bridge" between the versions. Fortunately, this has
already been provided by the wonderful folks developing Apache. The answer
is to include the ap_compat.h file which simply defines table_get (and
others) as ap_table_get.

I hope that this helps somebody. Or maybe this was obvious and I am just a
slow nut.

Regards.

"Php" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> HELP!!
>
> I have been working on this for a couple of days now.  I have read all of
> the posts here and other places as well as the PHP FAQ, MySQL support and
> Apache support.
>
> The problem is simple, I have installed php-4.0.6 as dynamic with
> Apache-1.3.19 and MySQL-3.23.39 on a Linux 7.x platform.  I also have
> MySQL-devel-3.23.39 and MySQL-Shared-3.23.39 installed via RPM.  make and
> make install produced no obvious errors but when I start apache I receive:
> "Cannot load [libphp4.so] into server: [lbphp4.so]: undefined symbol:
> table_get  yada yada yada unable to start httpd"
>
> PHP and Apache were compiled from source and mysql was downloaded and
> installed with RPM.
>
> I am certain that the error that I am receiving is the result of a
missing,
> misplaced or bad version of a library but which library?
>
> PHP was configured as:
>
> --with-mcal=/path/to/mcal
> --with-apxs=/path/to/apxs
> --with-mysql=/usr
> --with-impa=/path/to/c-client
> --enable-track-vars
>
> Apache has mod_so.c enabled.
>
> The current ld.so.conf is a mess but looks like:
>  /usr
> /usr/lib
> /usr/lib/php4
> /usr/lib/mysql
> /usr/kerberos/lib
> /usr/x11r6/lib
> /usr/lib/sane
> /usr/lib/qt-23.0/lib
> /usr/local/lib
> /usr/local/apache
> /lib
> /lib/libmcal
>
> Obviously not all of these are required but it is what it is for now.
>
> I am sure that I have not mentioned something that is vitally important in
> order to resolve this mystery, so ask away.  Unless of course you are one
of
> the really incredible types that can solve this puzzle with the
information
> provided.
>
> Thanks in advance.
>
>
>
>



-- 
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]




[PHP-INSTALL] Start Earn Today!

2008-01-03 Thread php-install


 
Please add [EMAIL PROTECTED] to your address book to continue receiving great savings from Healthier, see how

















 

 


 






Dear php-install@lists.php.net ,
Get the latest news and exclusive health offers from Healthier.com - For a Healthier You! 









Today's Featured Offer 




		






















 





 


 

 


 


Health News  | Diet & Fitness  | Beauty & Style | Pharmacy | Sample & Coupons 


 



 




Feedback | Unsubscribe | Privacy Policy

Healthier.com 827 Main St., Woburn, MA 01801
Copyright 2008 Healthier.com. All Rights Reserved.


 



[PHP-INSTALL] January 73% OFF

2008-01-29 Thread php-install








[PHP-INSTALL] January 73% OFF

2008-01-29 Thread php-install








[PHP-INSTALL] January 71% OFF

2008-01-29 Thread php-install








[PHP-INSTALL] January 73% OFF

2008-01-29 Thread php-install








[PHP-INSTALL] January 71% OFF

2008-01-30 Thread php-install








[PHP-INSTALL] January 70% OFF

2008-01-30 Thread php-install








[PHP-INSTALL] January 74% OFF

2008-01-30 Thread php-install








[PHP-INSTALL] February 79% OFF

2008-02-07 Thread php-install








[PHP-INSTALL] February 70% OFF

2008-02-07 Thread php-install








[PHP-INSTALL] February 78% OFF

2008-02-07 Thread php-install








[PHP-INSTALL] February 78% OFF

2008-02-07 Thread php-install








[PHP-INSTALL] Sale 77% OFF

2008-02-28 Thread php-install


 




X-pstn-neptune: 3/1/0.33/67
X-pstn-levels: (S: 2.19294/99.9 CV:99.9000 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c 
X-pstn-addresses: from  [294/10] 


[PHP-INSTALL] Sale 76% OFF

2008-02-28 Thread php-install


 




X-pstn-neptune: 2/1/0.50/76
X-pstn-levels: (S: 2.00797/99.9 CV:99.9000 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c 
X-pstn-addresses: from  [294/10] 


[PHP-INSTALL] Sale 75% OFF

2008-02-28 Thread php-install


 




X-pstn-neptune: 2/1/0.50/76
X-pstn-levels: (S: 1.80704/99.9 CV:99.9000 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c 
X-pstn-addresses: from  [294/10] 


[PHP-INSTALL] Sale 74% OFF

2008-02-28 Thread php-install


 




X-pstn-neptune: 2/1/0.50/78
X-pstn-levels: (S: 2.00797/99.9 CV:99.9000 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c 
X-pstn-addresses: from  [294/10] 


[PHP-INSTALL] Sale 70% OFF

2008-02-28 Thread php-install


 




X-pstn-neptune: 0/0/0.00/0
X-pstn-levels: (S: 1.79807/99.9 CV:99.9000 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c 
X-pstn-addresses: from  [294/10] 


[PHP-INSTALL] RE: MensHealth 92747

2008-04-02 Thread php-install
Canadian Doctor Yvette  Best Price On Net 79% OFF
http://www.beautywarm.com



[PHP-INSTALL] RE: MensHealth 004366

2008-04-03 Thread php-install
Canadian Doctor Hank  Best Price On Net 79% OFF
http://www.beautywarm.com



[PHP-INSTALL] Compiling a SOAP extension for PHP5 in MaxOSX Leopard

2008-04-16 Thread php . net

Hi.

I thought I'd try to compile a SOAP extension for the stock PHP 
installation in MacOSX Leopard.


I snagged the php-5.2.5 sources from php.net, and used the compile 
arguments found with the "php -i" command.  I only added "--with 
soap=shared --enable-shared" and removed everything mysql-related, like 
this:


../configure '--prefix=/usr' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--disable-dependency-tracking' 
'--with-apxs2=/usr/sbin/apxs' '--with-ldap=/usr' '--with-kerberos=/usr' 
'--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' 
'--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' 
'--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' 
'--with-config-file-path=/etc' '--sysconfdir=/private/etc' 
'--with-openssl' '--with-xmlrpc' '--with-xsl=/usr' '--with-pear' 
--enable-soap=shared --enable-shared


"make" runs and builds just fine after this.

Then I:
- copy php_src/modules/soap.so to 
/usr/lib/php/extensions/no-debug-non-zts-20060613/
- set extension_dir="/usr/lib/php/extensions/no-debug-non-zts-20060613/" 
and add extension=soap.so in /private/etc/php.ini


If I run "php -i" now, I get

dyld: NSLinkModule() error
dyld: Symbol not found: _OnUpdateLong
Referenced from:
  /usr/lib/php/extensions/no-debug-non-zts-20060613/soap.so
  Expected in: flat namespace
Trace/BPT trap

I found an OnUpdateLong function in php_src/ext/zlib/zlib.c, but I don't 
know if that's relevant.


What am I doing wrong?

(Yes, I know that there are several third-party stand alone php 
intallations for MacOSX (MacPorts, Fink, Entropy...), but I'd really 
like to just make the stock PHP work.  It's only a matter of one extra 
module, which shouldn't be a problem.  Right?)


Best regards,
Henrik



[PHP-INSTALL] Re: Compiling a SOAP extension for PHP5 in MaxOSX Leopard

2008-04-18 Thread php . net

[EMAIL PROTECTED] skrev:

dyld: NSLinkModule() error
dyld: Symbol not found: _OnUpdateLong
Referenced from:
  /usr/lib/php/extensions/no-debug-non-zts-20060613/soap.so
  Expected in: flat namespace
Trace/BPT trap

I found an OnUpdateLong function in php_src/ext/zlib/zlib.c, but I don't 
know if that's relevant.


I got one step further by installing the zlib extension (which has the 
OnUpdateLong function):


  cd php_src/ext/zlib
  ln -s config0.m4 config.m4
  sudo phpize
  MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch 
i386 -arch x86_64 -g -Os  -pipe -no-cpp-precomp" CCFLAGS="-arch ppc 
-arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe" CXXFLAGS="-arch ppc 
-arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe" LDFLAGS="-arch ppc 
-arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure 
--enable-shared

  make
  sudo make install

I added extension=zlib.so before the soap.so line in 
/private/etc/php.ini. Now it fails with another function:


dyld: NSLinkModule() error
dyld: Symbol not found: _zend_ini_boolean_displayer_cb
  Referenced from: 
/usr/lib/php/extensions/no-debug-non-zts-20060613/zlib.so

  Expected in: dynamic lookup
Trace/BPT trap

It seems like zend_ini_boolean_displayer_cb is defined in 
php_src/Zend/zend_ini.c as ZEND_INI_DISP(zend_ini_boolean_displayer_cb). 
I cannot compile zend as a module, since it's a core thingie.


I guess it has something to do with linking. Or something?

Best regards,
Henrik


Re: [PHP-INSTALL] Re: Compiling a SOAP extension for PHP5 in MaxOSX Leopard

2008-04-20 Thread php . net

BuildSmart skrev:

It has to do with the way you build PHP modules and mixing apple
source with genuine source.

Your best bet is to build PHP completely using apple's source and
enable shared the modules need/want., then after building you can
copy over the modules or create an installer if you know what your
doing.

If you're lucky enough to have a decent build environment and know
how to use it you can make the modules very stable.

A build environment is not one configured with users or booted from,
 it's sole purpose is to be used for building and should be the
lowest possible minor version of the OS (in your case 10.5.0).


Hi Dale,

Thanks for the swift reply!

I've tried using the php source from
http://www.opensource.apple.com/darwinsource/Current/apache_mod_php-44/
as well. I've just adding "--enable-shared --enable-soap=shared
--enable-zlib=shared" to the Makefile, and used Apple's build script.
The results are the same.

I guess my build environment should be decent enough, it's the stock 
development libraries etc. from Apple.


Do you really think building on 10.5.2 (as opposed to 10.5.0) could 
create the NSLinkModule() error?


Best regards,
Henrik



[PHP-INSTALL] Postings never appear

2008-08-09 Thread php news
Recently I posted an issue about php installation but it does not appear 
in this newsgroup.


[PHP-INSTALL] Re: No .so produced

2008-09-04 Thread php news

Ian Godman escribió:

Hi

I am trying to compile and install PHP 5.2.6  on CentOS Linux 5.2 using 
the following config:


./configure  –with-gd --disable-pdo --enable-bcmath --enable-calendar 
--enable-ftp --enable-libxml --enable-magic-quotes --enable-sockets 
--prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs 
--with-libdir=lib64 --with-libxml-dir=/opt/xml2/ --with-mysql=/usr 
--with-mysql-sock=/var/lib/mysql/mysql.sock --with-zlib --with-zlib-dir=/usr



I can see no errors during configure.

No errors during make.

running make install I get

make install
Installing PHP SAPI module:   apache2handler
/usr/local/apache/build/instdso.sh 
SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la 
<http://libphp5.la> /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la 
<http://libphp5.la> /usr/local/apache/modules/
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la 
<http://libphp5.la>

cp .libs/libphp5.a /usr/local/apache/modules/libphp5.a
chmod 644 /usr/local/apache/modules/libphp5.a
ranlib /usr/local/apache/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish 
/root/php-5.2.6/libs'
Warning!  dlname not found in /usr/local/apache/modules/libphp5.la 
<http://libphp5.la>.

Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp5.so
chmod: cannot access `/usr/local/apache/modules/libphp5.so': No such 
file or directory

apxs:Error: Command failed with rc=65536


I am expecting this to make libphp5.so am I mistaken or doing something 
wrong?


Ian

I think you have to check the --shared related options when you configure.
With ./configure --help you can get all the available options to configure.

Regards,

Marco

--
Freedom is not a permission for chaos.


[PHP-INSTALL] RE: ar.Doctor Jackie

2008-11-05 Thread php-install





		
			

	

  
	


	
	About this mailing: 
You are receiving this e-mail because you subscribed to MSN Featured Offers. Microsoft respects your privacy. If you do not wish to receive this MSN Featured Offers e-mail, please click the "Unsubscribe" link below. This will not unsubscribe 
you from e-mail communications from third-party advertisers that may appear in MSN Feature Offers. This shall not constitute an offer by MSN. MSN shall not be responsible or liable for the advertisers' content nor any of the goods or service
 advertised. Prices and item availability subject to change without notice.

		©2008 Microsoft | Unsubscribe | More Newsletters | Privacy
		Microsoft Corporation, One Microsoft Way, Redmond, WA 98052



	

			
		
	







  






[PHP-INST] No input file specified.

2003-06-03 Thread PHP User
I have installed php and configured it per the install manual.
I associated .php extensions to run php scripts via the php interpreter and
ran the test.php script successfully.
I then configured my Netscape 3.63 server mime-types to support php as
magnus-internal/shellcgi
Then I enabled php extensions to run on  Netscape 3.63.
When I first ran test.php via webserver I got the security alert about
accessing php cgi's directly so I modified the php.ini file
cgi.force_redirect = 0 and now all I get is "No input file specified" when I
try to load the same test.php script.
Can someone help me with this please.




-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-INSTALL] PHP install problem.

2003-12-16 Thread ads php
Hi,
I have installed and configured  php-4.3.4 properly without any error with configuration options as follows :
 
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
It gives warning as follows :
 
++|    *** WARNING ***    |
 |     || You chose to compile PHP with the built-in MySQL support.  If you   || are compiling a server module, and intend to use other server    | | modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0,   || mod_perl) you must NOT rely on PHP's built-in MySQL support,
 and || instead build it with your local MySQL support files, by adding   || --with-mysql=/path/to/mysql to your configure line.    |++| License:   || This software is subject to
 the PHP License, available in this    || distribution in the file LICENSE.  By continuing this installation || process, you are bound by the terms of this license agreement.    || If you do not agree with the terms of this license, you must abort  || the installation process at this point.   |++| 
 *** NOTE ***    ||    The default for register_globals is now OFF! 
 ||    || If your application relies on register_globals being ON, you    || should explicitly set it to on in your php.ini
 file.    || Note that you are strongly encouraged to read || http://www.php.net/manual/en/security.registerglobals.php    || about the implications of having register_globals set to on, and  || avoid using it if
 possible. |++
Thank you for using PHP.
 
I have installed mysql server on my server on which I am installaing and configuring php and intend to use php, mysql and apache 2.0.
 
I am new to this I don't know whether I should ./configure php with option 
--with-mysql=/path/to/mysql .
 
Therefore I configured php with 
"./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/var/lib/mysql"
 
It gives following error 
"configure: error: Cannot find MySQL header files under /var/lib/mysql"
 
Any idea what is to be done in this case.
 
Thanks for support.
 
 
 
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

[PHP-INSTALL] Getting error while installation.

2004-01-12 Thread ads php
Hi,
I am trying to install php-4.3.4. configuration
options as follows :

[xxx php-4.3.4]# ./configure --with-mysql
--with-openssl=/usr
--with-apxs2=/usr/local/apache2/bin/apxs

Configuration is done whithout any error but when I
make it gives following errors :


/usr/include/openssl/kssl.h:72:18: krb5.h: No such
file or directory
In file included from /usr/include/openssl/ssl.h:179,
 from
/root/php-4.3.4/ext/openssl/php_openssl.h:84,
 from
/root/php-4.3.4/ext/openssl/openssl.c:28:
/usr/include/openssl/kssl.h:132: parse error before
"krb5_enctype"
/usr/include/openssl/kssl.h:134: parse error before
"FAR"
/usr/include/openssl/kssl.h:135: parse error before
'}' token
/usr/include/openssl/kssl.h:147: parse error before
"kssl_ctx_setstring"
/usr/include/openssl/kssl.h:147: parse error before
'*' token
/usr/include/openssl/kssl.h:148: parse error before
'*' token
/usr/include/openssl/kssl.h:149: parse error before
'*' token
/usr/include/openssl/kssl.h:149: parse error before
'*' token
/usr/include/openssl/kssl.h:150: parse error before
'*' token
/usr/include/openssl/kssl.h:151: parse error before
"kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:151: parse error before
'*' token
/usr/include/openssl/kssl.h:153: parse error before
"kssl_cget_tkt"
/usr/include/openssl/kssl.h:153: parse error before
'*' token
/usr/include/openssl/kssl.h:155: parse error before
"kssl_sget_tkt"
/usr/include/openssl/kssl.h:155: parse error before
'*' token
/usr/include/openssl/kssl.h:157: parse error before
"kssl_ctx_setkey"
/usr/include/openssl/kssl.h:157: parse error before
'*' token
/usr/include/openssl/kssl.h:159: parse error before
"context"
/usr/include/openssl/kssl.h:160: parse error before
"kssl_build_principal_2"
/usr/include/openssl/kssl.h:160: parse error before
"context"
/usr/include/openssl/kssl.h:163: parse error before
"kssl_validate_times"
/usr/include/openssl/kssl.h:163: parse error before
"atime"
/usr/include/openssl/kssl.h:165: parse error before
"kssl_check_authent"
/usr/include/openssl/kssl.h:165: parse error before
'*' token
/usr/include/openssl/kssl.h:167: parse error before
"enctype"
In file included from
/root/php-4.3.4/ext/openssl/php_openssl.h:84,
 from
/root/php-4.3.4/ext/openssl/openssl.c:28:
/usr/include/openssl/ssl.h:909: parse error before
"KSSL_CTX"
/usr/include/openssl/ssl.h:931: parse error before '}'
token
make: *** [ext/openssl/openssl.lo] Error 1

When I use following configuration option :

[xx php-4.3.4]# ./configure --with-mysql
--with-openssl=/usr/include/openssl
--with-apxs2=/usr/local/apache2/bin/apxs

It gives following error for configuration.

configure: error: Cannot find OpenSSL's 


Any clue to solve problem.
Thanks for support.





__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


RE: [PHP-INSTALL] Getting error while installation.

2004-01-13 Thread ads php
Thanks it worked. I have to install "openssl-engine-0.9.6l.tar"  since it was there on my Linux install.
Thanks
John Holden <[EMAIL PROTECTED]> wrote:
You need to specify the real SSL location, not its parent. Maybe/usr/local/ssl? That's common for many Linux distributions...John-Original Message-From: ads php [mailto:[EMAIL PROTECTED]Sent: Tuesday, January 13, 2004 12:38 AMTo: [EMAIL PROTECTED]Subject: [PHP-INSTALL] Getting error while installation.Hi,I am trying to install php-4.3.4. configurationoptions as follows :[xxx php-4.3.4]# ./configure --with-mysql--with-openssl=/usr--with-apxs2=/usr/local/apache2/bin/apxsConfiguration is done whithout any error but when Imake it gives following errors :/usr/include/openssl/kssl.h:72:18: krb5.h: No suchfile or directoryIn file included from
 /usr/include/openssl/ssl.h:179,from/root/php-4.3.4/ext/openssl/php_openssl.h:84,from/root/php-4.3.4/ext/openssl/openssl.c:28:/usr/include/openssl/kssl.h:132: parse error before"krb5_enctype"/usr/include/openssl/kssl.h:134: parse error before"FAR"/usr/include/openssl/kssl.h:135: parse error before'}' token/usr/include/openssl/kssl.h:147: parse error before"kssl_ctx_setstring"/usr/include/openssl/kssl.h:147: parse error before'*' token/usr/include/openssl/kssl.h:148: parse error before'*' token/usr/include/openssl/kssl.h:149: parse error before'*' token/usr/include/openssl/kssl.h:149: parse error before'*' token/usr/include/openssl/kssl.h:150: parse error before'*' token/usr/include/openssl/kssl.h:151: parse error before"kssl_ctx_setprinc"/usr/include/openssl/kssl.h:151: parse error before'*' token/usr/include/openssl/kssl.h:153: parse error
 before"kssl_cget_tkt"/usr/include/openssl/kssl.h:153: parse error before'*' token/usr/include/openssl/kssl.h:155: parse error before"kssl_sget_tkt"/usr/include/openssl/kssl.h:155: parse error before'*' token/usr/include/openssl/kssl.h:157: parse error before"kssl_ctx_setkey"/usr/include/openssl/kssl.h:157: parse error before'*' token/usr/include/openssl/kssl.h:159: parse error before"context"/usr/include/openssl/kssl.h:160: parse error before"kssl_build_principal_2"/usr/include/openssl/kssl.h:160: parse error before"context"/usr/include/openssl/kssl.h:163: parse error before"kssl_validate_times"/usr/include/openssl/kssl.h:163: parse error before"atime"/usr/include/openssl/kssl.h:165: parse error before"kssl_check_authent"/usr/include/openssl/kssl.h:165: parse error before'*' token/usr/include/openssl/kssl.h:167: parse error before"enctype"In file included
 from/root/php-4.3.4/ext/openssl/php_openssl.h:84,from/root/php-4.3.4/ext/openssl/openssl.c:28:/usr/include/openssl/ssl.h:909: parse error before"KSSL_CTX"/usr/include/openssl/ssl.h:931: parse error before '}'tokenmake: *** [ext/openssl/openssl.lo] Error 1When I use following configuration option :[xx php-4.3.4]# ./configure --with-mysql--with-openssl=/usr/include/openssl--with-apxs2=/usr/local/apache2/bin/apxsIt gives following error for configuration.configure: error: Cannot find OpenSSL's Any clue to solve problem.Thanks for support.__Do you Yahoo!?Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakeshttp://hotjobs.sweepstakes.yahoo.com/signingbonus
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

[PHP-INSTALL] PHP & Apache2 on OpenBSD

2004-02-05 Thread r . php
Hello people,

Problem ! (aren't they all ?)

I'm trying to get PHP working with Apache 2 on OpenBSD. Apache 2 is not
 supported in the OpenBSD ports so I figured I'd just build it from the
 standard source distribution. I've done this on Linux and it's never caused
 me a problem.

I have used exactly the same configuration on the OpenBSD build that I have
 used on Linux.

I build Apache with...

> ./configure --prefix=/usr/local/apache2 --enable-ssl
 --with-ssl=/usr/src/openssl/openssl-0.9.7 -enable-mods-shared="libphp4"
 -enable-modules="access dir mime mime_magic log_config alias negotiation setenvif"
> make
> make install

...and I build PHP with...

> ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php
 --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars
 --enable-magic-quotes --enable-debugger --with-mysql=/usr/lib
 --enable-inline-optimization --without-pear
> make
> make install

There's no hint of a problem with either build and sure enough, Apache runs
 fine on its own and serves pages with no problems.

But if I try and load the libphp4.so module with...

LoadModule php4_modulemodules/libphp4.so

...I get nothing !

I try and start apache and it just returns. No tasks, no error log, no core
 dump, nothing. Absolutely no indication why it fails. And before you ask,
 yes, all the file permissions are fine - I get error logs when I don't load
 libphp4.so and I've made sure the core dump directory is writable etc etc.

I can load other modules with no problems; I re-jigged the apache config to
 build 'access' as a module and load this with...

LoadModule access_module  modules/mod_access.so

...and it works fine.

If I try and syntax check the config file with the PHP 'LoadModule' line in
 (with /usr/local/apache2/bin/httpd -t), it doesn't even return a 'Syntax Ok'
 message. If I comment out the PHP 'LoadModule' line, I do. If I start apache
 with the PHP Loadmodule line commented out and then comment the line back in
 and try and stop apache, it ignores me and carries on running ! It looks like
 just having the LoadModule php4... line in the config file is killing the
 apache startup/shutdown stone dead. But I know this doesn't make sense, so it
 MUST be something to do with the PHP module itself... mustn't it ?

The apache config file I'm using is one I've used for ages on Linux and I'm
 sure it's absolutely fine. If I strip it down to the bare minimum, PHP will
 still fail to load. Here's such a config file that I've tried...

# Apache 2 config
ErrorLog logs/error_log
LogLevel debug
ServerRoot "/usr/local/apache2"
User httpd
Group httpd
PidFile logs/httpd.pid
# This next line works fine
LoadModule access_module  modules/mod_access.so
# This next line is causing me grief !
LoadModule php4_modulemodules/libphp4.so
Listen 192.168.0.2:80
# End

One thing I have noticed is that the libphp4.so built on OpenBSD is
 significantly smaller than on Linux (3M rather than 4.9M). I've tried to
 build the PHP module from the OpenBSD ports tree and it builds ok (though
 it's only just over 1M), but I get exactly the same result when trying to
 start Apache.

I've looked at the OpenBSD resource limits and these shouldn't be causing a
 problem.

If anyone has any idea what's going on (getting some error output would be a
 start) I'd be very grateful.

Alternatively, if anyone has an alternative approach, or a known working
 solution, I'm willing to give it a go.

regards,

Rich.


Re: [PHP-INSTALL] PHP & Apache2 on OpenBSD

2004-02-08 Thread r . php
Re my problem with Apache dying when I try and load the PHP module, it was
suggested to me that I should run strace on Apache when it is and isn't
trying to load PHP. Thanks to John Holden for the suggestion

Well

To keep the trace relatively simple, I actually did a ktrace (it's 'ktrace' on
OpenBSD, not 'strace') when just asking apache to do a syntax check. The
syntax check fails when I include the 'LoadModule libphp4.so' line.

So, the command line was:

ktrace httpd -t

To compare like with like, I ran this with the 'LoadModule access_module' and
then again with 'LoadModule php4_module'.

This is what I got. When asked to load the PHP module, apache seems to then go and 
search /usr/lib and /usr/local/lib. I'm assuming it's trying to resolve some 
dependencies arrising from the PHP module, but I have no idea what they might be. Am I 
missing some obvious dependencies ? What could apache be looking for ?

regards,

Rich.

=
(1) LoadModule access_module ...'

--snip--
   218 httpdCALL  read(0x5,0x3c0720c8,0x1000)
   218 httpdGIO   fd 5 read 314 bytes

 "# Apache 2 config

ErrorLog logs/error_log

LogLevel debug

ServerRoot "/usr/local/apache2"

User httpd
Group httpd

PidFile logs/httpd.pid

LoadModule access_module  modules/mod_access.so

# Dynamic Shared Object (DSO) Support
# LoadModule php4_modulemodules/libphp4.so

Listen 192.168.0.2:80

# EOF

   "
   218 httpdRET   read 314/0x13a
   218 httpdCALL  sigprocmask(0x1,0x)
   218 httpdRET   sigprocmask 0
   218 httpdCALL  mprotect(0x3c01f000,0x1000,0x3)
   218 httpdRET   mprotect 0
   218 httpdCALL  mprotect(0x3c01f000,0x1000,0x1)
   218 httpdRET   mprotect 0
   218 httpdCALL  sigprocmask(0x3,0)
   218 httpdRET   sigprocmask -65793/0xfffefeff
   218 httpdCALL  sigprocmask(0x1,0x)
   218 httpdRET   sigprocmask 0
   218 httpdCALL  mprotect(0x3c01f000,0x1000,0x3)
   218 httpdRET   mprotect 0
   218 httpdCALL  mprotect(0x3c01f000,0x1000,0x1)
   218 httpdRET   mprotect 0
   218 httpdCALL  sigprocmask(0x3,0)
   218 httpdRET   sigprocmask -65793/0xfffefeff
   218 httpdCALL  sigprocmask(0x1,0x)
   218 httpdRET   sigprocmask 0
   218 httpdCALL  mprotect(0x3c01f000,0x1000,0x3)
   218 httpdRET   mprotect 0
   218 httpdCALL  mprotect(0x3c01f000,0x1000,0x1)
   218 httpdRET   mprotect 0
   218 httpdCALL  sigprocmask(0x3,0)
   218 httpdRET   sigprocmask -65793/0xfffefeff
   218 httpdCALL  sigprocmask(0x1,0x)
   218 httpdRET   sigprocmask 0
   218 httpdCALL  mprotect(0x2946f000,0x1000,0x3)
   218 httpdRET   mprotect 0
   218 httpdCALL  mprotect(0x2946f000,0x1000,0x1)
   218 httpdRET   mprotect 0
   218 httpdCALL  sigprocmask(0x3,0)
   218 httpdRET   sigprocmask -65793/0xfffefeff
   218 httpdCALL  stat(0x3c0731f0,0xcfbefc88)
   218 httpdNAMI  "/usr/local/apache2"
   218 httpdRET   stat 0
   218 httpdCALL  sigprocmask(0x1,0x)
   218 httpdRET   sigprocmask 0
   218 httpdCALL  mprotect(0x3c01f000,0x1000,0x3)
   218 httpdRET   mprotect 0
   218 httpdCALL  mprotect(0x3c01f000,0x1000,0x1)
   218 httpdRET   mprotect 0
   218 httpdCALL  sigprocmask(0x3,0)
   218 httpdRET   sigprocmask -65793/0xfffefeff
   218 httpdCALL  sigprocmask(0x1,0x)
   218 httpdRET   sigprocmask 0
   218 httpdCALL  mprotect(0x2946f000,0x1000,0x3)
   218 httpdRET   mprotect 0
   218 httpdCALL  mprotect(0x2946f000,0x1000,0x1)
   218 httpdRET   mprotect 0
   218 httpdCALL  sigprocmask(0x3,0)
   218 httpdRET   sigprocmask -65793/0xfffefeff
  218 httpdCALL  open(0x3c073330,0,0)
   218 httpdNAMI  "/usr/local/apache2/modules/mod_access.so"
   218 httpdRET   open 6
   218 httpdCALL  read(0x6,0xcfbeeb64,0x1000)
   218 httpdGIO   fd 6 read 4088 bytes
   "\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0P
--snip-- - binary image data

  \M-6\0\^A\0\0\M^KM\bQ\M-h\M-i\M-}\M^?\M^?\M^C\M-D\^P\M^E\M-@"
   218 httpdGIO   fd 6 read 8 bytes
   "t\^Z\M^C\M-D\M-|W\M^?\M-6"
   218 httpdRET   read 4096/0x1000
   218 httpdCALL  mquery(0,0x2000,0x5,0,0x6,0,0,0)
   218 httpdRET   mquery 123121664/0x756b000
   218 httpdCALL  mquery(0x2756b000,0x1000,0x1,0x10,0x,0,0,0)
   218 httpdRET   mquery 659992576/0x2756b000
   218 httpdCALL  mquery(0x2756c000,0x1000,0x3,0x10,0x,0,0,0)
   218 httpdRET   mquery 659996672/0x2756c000
   218 httpdCALL  mquery(0x2756d000,0x1000,0x3,0x10,0x,0,0,0)
   218 httpdRET   mquery 66768/0x2756d000
   218 httpdCALL  mquery(0x2756e000,0x1000,0x3,

[PHP-INSTALL] Re: cannot run php from apache?

2004-07-12 Thread \[php\]Walter



Try again, but use these 
instructions...
 
   http://web.torres.ws/dev/php
 
Let me know how it goes and we can go from 
there
 
Walter
 

  "G P" <[EMAIL PROTECTED]> 
  wrote in message news:[EMAIL PROTECTED]...
  I can run php anywhere on my machine but from browser!?
  I setup the ini, dll, and all as described but cannot get it to go,
  anybody would know what to do with that?
  Thank you much,
  George
  
  
  Do you Yahoo!?New 
  and Improved Yahoo! Mail - 100MB free storage!


[PHP-INST] PHP-4.1.2 Install

2002-03-03 Thread PHP User

Help!
I'm running Apache 1.3 on Redhat7.2 (distribution install) and just
compiled PHP-4.1.2 as a DSO for apache with no problems BUT when I go to
view my php pages the php scripts are in plain text.

eg.  appears in my browser.

- I know that the appropriate lines in the httpd.conf file has been
uncommented already.
- I read somewhere that this error is because the mod_php.so file cannot be
found. I can't this file anywhere, is it suppose to be included in the
source code?

Any ideas how I may be able to fix this?

Linux Newbie



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  1   2   3   4   5   6   7   8   9   10   >