php-install Digest 5 Oct 2002 21:03:32 -0000 Issue 1055

Topics (messages 8672 through 8675):

Re: Setting up PHP for the first time.
        8672 by: toby -

Re: Stuck at PHP4 installation( with Apache2 )
        8673 by: toby -

Re: PHP 4.2.3 problem - phpinfo.phtml works find, phpinfo.php asks  to save/open
        8674 by: Thistle

getting jpeg to work with php (fwd)
        8675 by: New Disorder Records

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 ---
hi i saved this file when i was installin n configurin the thinggy
but now there seems to b some problem i cnt reach the page on net
so hers the page fo u

hope it helps ....

incase u dont get da page rite do lemme no n ill copy paste the thingg ...



good luck ...


toby .....





_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com
--- End Message ---
--- Begin Message ---
kramr

ur only supposed to COPY php4ts.dll NOT LOAD it

LoadModule php4_module C:/WINNT/system32/inetsrv/php/sapi/php4apache.dll

dis iz vat u do ok


good luck

toby ......

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
Greetings!

Apparently you all were as stumped as I was as to why this did not work :)

I finally got PHP 4.2.3 running as configured on my system(phpinfo.php and 
phpinfo.phtml both display properly in a web browser now, all my .php pages now work 
properly) but I had to resort to drastic measures.

I re-installed RedHat 7.2 from the ground up!

This time, when I installed Apache and PHP, exactly as described in my previous 
post...it worked! Go figure...

I still have no idea why it refused to work properly before, I did nothing different 
except start from a fresh install of RedHat 7.2 

Just thought I would let everyone know.

Thanks and Happy PHP'ing!

Regards,
Thistle

At 09:35 PM 9/28/2002 , Thistle wrote:
>Greetings!
>
>I am trying to install PHP 4.2.3 as a module running with Apache 1.3.26 on a
>RH7.2 Linux box.
>
>The problem I am having is this: I created a test page (phpinfo.php) with the
><? phpinfo(); ?> command and tried to load the page, I get a dialogue box
>asking if I wish to save or open the file (this also occurs with any other
>xxxx.php page I try to view in a browser). After a few hours of scouring this
>list and reading/re-reading the installation instructions for both Apache and
>PHP,(and pulling out fistfulls of my already disappearing hair), I renamed the
>page as phpinfo.phtml... and it WORKED! Still no luck with .php pages however
>:/
>
>I tried reinstalling from the beginning, both Apache and PHP, in case I did
>something wrong, several times. Same problem.
>
>Frankly, I am stumped as to why .phtml works, yet .php refuses to. In
>httpd.conf, I added the AddType line for both types. The LoadModule and
>AddModule lines in httpd.conf for PHP appear to be correct as well.
>
>I am hoping someone here has some insight on this issue.
>
>Here is what I did last:
>
>Installed Apache 1.3.26 as follows:
>removed old install
>>make clean
>>./configure --enable-shared=max --enable-module=all --prefix=/webserver
>--enable-module=so --enable-rule=SHARED_CORE --without-execstrip
>--server-uid=webuser --server-gid=webuser
>>make
>>make install
> -- tweak httpd.conf with servername and document root
>>apachectl restart
>RESULT: Apache appears to work fine
>
>Installed PHP4.2.3 as follows:
>>make distclean
>> ./configure --with-mysql --with-imap-ssl --with-kerberos --enable-track-vars
>--with-apxs=/webserver/bin/apxs
>>make
>>make install
>> cp php.ini-dist to proper location and rename to php.ini
>  --tweak httpd.conf as follows:
>    (LoadModule php4_module    libexec/libphp4.so is present)
>    (AddModule mod_php4.c is present)
>     Inserted a line AddType application/x-httpd-php .phtml .php
>      (When this failed to solve the problem, I even tried changing it to
>AddType application/x-httpd-php .php .phtml also tried adding a seperate line
>for each extension. I even went so far as to try adding the extensions directly
>into the mime.types file)
>  -- verified engine=on in php.ini file
>  -- verified include path in php.ini file
>>apachectl restart
>
>Page phpinfo.phtml shows up correctly. The page phpinfo.php asks to OPEN/SAVE
>the file.
>
>I would appreciate hearing any ideas on why this is occurring, I am sure I
>overlooked something obvious or simple ;)
>
>Regards,
>Thistle
>
>
>
>
>
>-- 
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
Hi,
 I am on a redhat linux box running apache 1.3.26, sybase 11.9.2 and php 
4.2.3.  I've been trying to get gd with jpeg output to work.  I have been 
configuring php with this command:

./configure --with-gd --with-jpeg-dir=/usr/lib 
--with-sybase-ct=/opt/sybase-11.9.2 --enable-gd-native-ttf 
--with-apache=../apache_1.3.26

though I've tried setting --with-gd to 
=yes
=/usr
=/usr/lib
=../gd-1.8.4

I've also tried all combinations of setting --with-jpeg-dir to
=/usr
=../jpeg-6b
=/usr/local/lib

all of these seem to be reasonable settings, and all of them compile fine.  
However, when I run the code:

<?php
$im = imagecreate(50,100);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0,0, 49, 99, $white);
imagefilledrectangle($im, 15, 15, 20, 60, $black);
imageJpeg($im);

?>

I get this error:

[Sat Oct  5 13:47:47 2002] [error] PHP Fatal error:  Call to undefined 
function:  imagejpeg() in /usr/www/gold/imgen/index.php on line 7

That makes me think that gd is installed, because the other image commands 
don't choke, but what the hell do I have to do to make imagejpeg work?

Thanks,
Ernst Schoen-Rene

-- 
New Disorder Records "you've heard of us now, so shut up and buy the damn 
Sacrilicious CD" - www.newdisorder.com
Pirx the Pilot: One of the top three Structuralist punk rock bands in the 
country.  www.pirxthepilot.com


--- End Message ---

Reply via email to