php-install Digest 26 May 2002 07:52:14 -0000 Issue 853
Topics (messages 7101 through 7105):
Re: Using php to parse mail
7101 by: Yasuo Ohgaki
PHP with apache 1.3
7102 by: Peter Goggin
php gd support ?
7103 by: Erik
Re: compiling PHP 4.2 with MySQL support
7104 by: Alex Pagnoni
PHP install with mysql
7105 by: Mike Lee
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I just replied to qmail list, but anyway,
You are having problem with a little exit/die behavior.
Look for it and change it to "return" (or return numeric 0
e.g. exit(0);)
Then your script would work properly.
(I'm still guessing since you provide no error message nor
code)
--
Yasuo Ohgaki
Cedric Fontaine wrote:
> Hello !
>
> Since some months, I created a bot to parse a special email address.
> It means that my MTA Qmail sends the mail to a php script and this
> scripts make some works on it.
>
> It works great for months with php 4.0.6.
>
> Sunday, I installed php 4.2.1 mod for Apache and also on shell. And
> since this moment, my parse script doesn't work anymore, in a way.
>
> In fact, the script does work and does its jobs... But when Qmail
> delivers the mail to my script, it assumes that the mail is not
> successfully delivered and puts the mail in queue. But the mail is
> fully delivered...
>
> That means that my script parses the mail cause it received it. And
> some hours later, Qmail refeed my script and assumes that the mail is
> not fully delivered and goes on for hours and hours...
>
> I hope that you understand what I mean. The script works with php
> 4.0.6 and also with 4.2.1 but I don't know why but the communication
> between Qmail and php 4.2.1 fails since the new version...
>
> Any clue ? What the differences between 4.0.6 and 4.2.1 makes this
> happens ?
>
--- End Message ---
--- Begin Message ---
I am trying to install php with apache 1.3
The steps I followed are:
1. Unpack the zip file for 4.2.1. This unpacked to directory
c:\php-4.21-Win32
2. Rename directory to c:\php
3. Copy php4ts.dll to C:\windows\system
4. Copy php4apache.dll to c:\windows\system
5. Edit the php.ini file
� Copy php.ini-recommended to php.ini
� Make following changes
� Extension directory: extension_dir = C:\php\extensions
� Doc_root: doc_root = "C:/usr/www/my-domain"
6. copied moved to c:\usr\mibs
7. Edit the apache.conf file
� Add loadmodule: LoadModule php4_module c:/php/sapi/php4apache.dll
� Addmodule: AddModule mod_php4.c - this was placed above AddModule mod_so.c
� AddType: AddType application/x-httpd-php .php .phtml .htm
� Script Alias:
ScriptAlias /php/ "c:/php/"
<Directory "c:/php/">
Allowoverride None
Options None
Order Allow,deny
Allow from all
</directory>
8. Start apache
9. Use web browser to open file:
<html>
<body>
<?php
print "hello world.";
?>
</body>
</html>
I get a blank screen in the brwser, but can view the script (view source)
Can anyone please tell me what I missed out or got wrong?
Regards
Peter Goggin
--- End Message ---
--- Begin Message ---
hi,
i need gd library support so i download the source tarball from
http://www.boutall.com/gd and compiled it no errors so far but when i try
to rebuild php like this
cd /usr/local/php
./configure --with-gd=/usr/local/gd\
--with-mysql=/usr/local/mysql\
--with-apxs2=/usr/local/apache2/bin/apxs\
--enable-track-vars
php tells me it can't find libgd .(so or a) the file is there i double
checked that also apache is compiled with dso support and i have to run the
script three times before it fines apxs ? strange if you ask me and i get
errors about the that php can't find the mysql header files they are ther in
the standard directory /usr/local/include/mysql and php doesn't find it i
also have libpng and freetype and zlib i specify directorys no php says
cannot find libpng etc
is this a bug ?? i need gd i use "les visiteurs" stattistics progream and
that uses gd to generate images the path of libgd.a is /usr/local/lib/libgd
can somebody point me into the right direction please you don't have to
solve my trouble no just give me a hint
regards Erik
--- End Message ---
--- Begin Message ---
Martin Tsachev wrote:
> I compiled PHP 4.2 with MySQL support but it can't connect to the
> database, it was working OK with PHP 4.1.2. I then tried to use the full
> path to the MySQL client( if for some reason the packed client is
> outdated?) but it didn't work neither. When I build PHP 4.1.2 again it
> worked.
Try upgrading to 4.2.1.
>From 4.2.1 announce:
- Fix for the MySQL extension not be able to connect to a MySQL server
Alex
--- End Message ---
--- Begin Message ---
Hi every one,
I have installed RedHat 7.2 and now would like to install PHP 4.2.0 with mySQL
support. I can not execute such a command:
[root@xerius php-4.2.0]# ./configure
--with-mysql=/usr/src/mysql/mysql-3.23.49a-pc-linux-gnu-i686/include
where /usr/src/mysql/mysql-3.23.49a-pc-linux-gnu-i686/include is that directory where
mySQL headers files located. I get this all the time:
checking for MySQL support... yes
configure: error: Cannot find header files under
/usr/src/mysql/mysql-3.23.49a-pc-linux-gnu-i686/include
If someone knows how to fix the problem let me know. Many thanks.
Mike Lee
[EMAIL PROTECTED]
--- End Message ---