php-install Digest 3 Jul 2002 09:00:29 -0000 Issue 913
Topics (messages 7587 through 7593):
Re: problem installing php on apache 2 after unistalli ng apach 1.3
7587 by: Jonathan Thomas
Re: Win '98 & PHP 4.2 & Apache 1.3 (So close yet so far .......)
7588 by: Jennifer.Lawlor.loctite-europe.com
7589 by: Julie Meloni
PHP tags are not recogonized.
7590 by: kramer
7591 by: Frederic Trudeau
7592 by: kramer
Re: GD2 compile
7593 by: Sidney
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 ---
Doh - I meant to ask how you're compiling php, not httpd... :)
Thanks,
JT
-----Original Message-----
From: Jonathan Thomas
Sent: Tuesday, July 02, 2002 4:22 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] problem installing php on apache 2 after unistalli
ng apach 1.3
How are you compiling httpd?
Should be something like
./configure --with-apxs2=/path/to/apxs/binary
--with-config-file-path=/path/to/httpd.conf/directory
--enable-track-vars...blahblahblah...
If you are, and you're receiving this error - then it's possible that you
did not compile apache2 with DSO support (enable-module=so)...then you're
stuck actually compiling php INTO apache rather than as a module.
Thanks,
JT
-----Original Message-----
From: Desmond Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] problem installing php on apache 2 after unistalling
apach 1.3
Hi there
I've installed apache 2 and now i'm trying to install php4.
I can't get php to work. When i install from the source i follow the
instructions. But when i get to the 'make install' i get some errors as
follows:
make[1]: Entering directory `/root/unzipped/php-4.2.1'
/root/unzipped/php-4.2.1/build/shtool mkdir -p "/usr/lib/apache" && apxs -S
LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Warning: /usr/sbin/httpd not found or not executable
apxs:Warning: Continuing anyway...
apxs:Warning: Sorry, no DSO support for Apache available
apxs:Warning: under your platform. Make sure the Apache
apxs:Warning: module mod_so is compiled into your server
apxs:Warning: binary `/usr/sbin/httpd'.
apxs:Warning: Continuing anyway...
apxs:Error: Config file /etc/httpd/conf/httpd.conf not found
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/root/unzipped/php-4.2.1'
make: *** [install-recursive] Error 1
I think that's why my php install isn't working. And in my httpd.conf file i
have the following line:
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
but i don't have anything in my module directory. Is this because the 'make
install' didn't work properly
I'm also thinking that from the error messages that php is getting confused
as to where apache is installed. Apache 2 is installed in /usr/local/apache2
the old apache install (which was installed when linux installed) was
removed and it use to live in /etc/httpd/ which shows up in some of the
warning messages above.
Any one have any ideas? Thanks a bunch, i'm totally lost.
Regards
Desmond
_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
Thanks for that. I launched Apached via 'Test Configuration' and a message
'Apache 1.3 and PHP 4.2 Running' was displayed. It's the DOS-based PHP
screen that opens and closes in about 1 second when I try to open a .php
file - so is still related to the 'httpd.conf' file ? I presume I'm
supposed to have the Apache and PHP windows open while trying to access a
.php file through the web browser ? Also, eventhough I have PHP installed
as a module with Apache and not as 'CGI' version - do I still need to
insert the "ScriptAlias" line into the 'httpd.conf' file ? I think I tried
including this line into the .conf file but Apache displayed an error
message something like "Duplicate name error".
Again, Thanks in advance.
Jen.
:-)
Julie Meloni
<julie@thickbook. To:
[EMAIL PROTECTED]
com> cc: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] Win '98 & PHP
4.2 & Apache 1.3
02/07/02 15:08 (So close yet so far .......)
Please respond to
Julie Meloni
JLlec> I have Apache (1.3.26) running successfully on Windows '98 and have
also
JLlec> installed PHP (4.2.1). When I set up a .php file and open it in the
web
JLlec> browser, the PHP screen flashes open and then closes immediately.
I am going to assume that you mean the DOS window.
This is a telltale sign that something in httpd.conf is not correct.
If you are using Windows shortcut links to start Apache, first use the
one that says something about test configuration. Alternately, start
Apache from the DOS command prompt and your DOS box will stay open.
9.9 times out of 10, this problem is caused by not uncommenting
something like ServerName, or making other errors in httpd.conf.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
JLlec> Thanks for that. I launched Apached via 'Test Configuration' and a message
JLlec> 'Apache 1.3 and PHP 4.2 Running' was displayed.
Then your problem is not Apache or PHP, actually, it's you. No
offense. Read on.
JLlec> I presume I'm supposed to have the Apache and PHP windows open
There is no concept of a "php window". PHP is either (very
simplified):
a) a CGI process started by apache to parse a PHP document when it is requested
or
b) part of the apache process itself (if a module) that parses a PHP document when it
is requested
If you are going into your file system and double-clicking on
"php.exe" for some reason, don't do that.
JLlec> Also, eventhough I have PHP installed
JLlec> as a module with Apache and not as 'CGI' version - do I still need to
JLlec> insert the "ScriptAlias" line into the 'httpd.conf' file ?
No.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
hello,
I've Apache 1.3.20 up and working. My local-host displays this in Netscape:
Running version Apache-AdvancedExtranetServer/1.3.20 (Mandrake
Linux/3mdk) PHP/4.2.1 mod_ssl/2.8.4 OpenSSL/0.9.6b
I installed PHP 4.2.1 under Quick Install DSO option. It went fine - No
complaints from make/make install either.
As the INSTALL in the php directory suggested, I copied php.ini-dist to
/usr/local/lib/php.ini - I didn't modify anthing in here.
As suggessted I added the line AddType application/x-httpd-php .php in
my httpd.conf
Now, my browser doesn't display any PHP tags. It just displays
<?phpinfo()?> which I've in test.php.
What've I missed ?
All help is very much appreciated. Thanks.
- shanky.
--- End Message ---
--- Begin Message ---
your httpd.conf needs this ;
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
... and ...
DirectoryIndex index.html index.htm index.shtml index.php index.php3
index.php (and others...)
---------------------------------------------------
Frederic Trudeau
Coder, Colocation, Development
[EMAIL PROTECTED]
514.529.3000 ext. 246
----- Original Message -----
From: "kramer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 5:24 PM
Subject: [PHP-INST] PHP tags are not recogonized.
> hello,
>
> I've Apache 1.3.20 up and working. My local-host displays this in
Netscape:
> Running version Apache-AdvancedExtranetServer/1.3.20 (Mandrake
> Linux/3mdk) PHP/4.2.1 mod_ssl/2.8.4 OpenSSL/0.9.6b
>
> I installed PHP 4.2.1 under Quick Install DSO option. It went fine - No
> complaints from make/make install either.
>
> As the INSTALL in the php directory suggested, I copied php.ini-dist to
> /usr/local/lib/php.ini - I didn't modify anthing in here.
>
> As suggessted I added the line AddType application/x-httpd-php .php in
> my httpd.conf
>
> Now, my browser doesn't display any PHP tags. It just displays
> <?phpinfo()?> which I've in test.php.
>
> What've I missed ?
>
> All help is very much appreciated. Thanks.
>
> - shanky.
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
Thanks Frederic. I did add both of what you've suggessted to httpd.conf
- restarted httpd by apachectl restart, but no luck. Still it just
displays what I've in my test.php instead of displaying them in php-way.
I'm very much new to Apache and PHP. I hope the position of these tags
in httpd.conf doesn't matter( since I've added them in the last line ).
Frederic Trudeau wrote:
>your httpd.conf needs this ;
>
>AddType application/x-httpd-php .php .php4 .php3 .phtml
>AddType application/x-httpd-php-source .phps
>
>... and ...
>
>DirectoryIndex index.html index.htm index.shtml index.php index.php3
>index.php (and others...)
>
>
>---------------------------------------------------
>Frederic Trudeau
>Coder, Colocation, Development
>[EMAIL PROTECTED]
>514.529.3000 ext. 246
>----- Original Message -----
>From: "kramer" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, July 02, 2002 5:24 PM
>Subject: [PHP-INST] PHP tags are not recogonized.
>
>
>>hello,
>>
>>I've Apache 1.3.20 up and working. My local-host displays this in
>>
>Netscape:
>
>>Running version Apache-AdvancedExtranetServer/1.3.20 (Mandrake
>>Linux/3mdk) PHP/4.2.1 mod_ssl/2.8.4 OpenSSL/0.9.6b
>>
>>I installed PHP 4.2.1 under Quick Install DSO option. It went fine - No
>>complaints from make/make install either.
>>
>>As the INSTALL in the php directory suggested, I copied php.ini-dist to
>>/usr/local/lib/php.ini - I didn't modify anthing in here.
>>
>>As suggessted I added the line AddType application/x-httpd-php .php in
>>my httpd.conf
>>
>>Now, my browser doesn't display any PHP tags. It just displays
>><?phpinfo()?> which I've in test.php.
>>
>>What've I missed ?
>>
>>All help is very much appreciated. Thanks.
>>
>>- shanky.
>>
>>
>>--
>>PHP Install Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>
>
--- End Message ---
--- Begin Message ---
Dear Sir,
I have read the document and following the step to setup my Redhat 7.0 Linux
Server. But when I at Step 5 about Install t1lib, I am failed when i am
"make" it.
Do you know what is going on?
And also, what is the function of this module(t1lib)?
Could anyone can help me?
Best regards,
Sidney
============================================================================
====================
# tar xzf t1lib-1.3.1.tar.gz -C /usr/local
# cd /usr/local
# mv t1lib-1.3.1 t1lib
# ./configure
# make
:
:
gcc -o subset subset.lo ../lib/libt1.la -lm
gcc -o .libs/subset subset.o
../lib/.libs/libt1.so -lm -Wl,--rpath -Wl,/usr/local/lib
creating subset
make[1]: Leaving directory `/usr/local/t1lib/examples'
for i in doc; do \
(cd $i; make 'CC=gcc'
'CFLAGS=-g -O2 -DT1LIB_IDENT="\"1.3.1\"" -DGLOBAL_CONFIG_DIR="\"/usr/local/s
hare/t1lib\"" -DT1LIB_NO_X11_SUPPORT ' 'OPTIONS=' ) || exit 1; \
done
make[1]: Entering directory `/usr/local/t1lib/doc'
latex t1lib_doc.tex
make[1]: latex: Command not found
make[1]: *** [t1lib_doc.dvi] Error 127
make[1]: Leaving directory `/usr/local/t1lib/doc'
make: *** [doc] Error 1
============================================================================
====================
"Matt Schroebel" <[EMAIL PROTECTED]>
???????:[EMAIL PROTECTED]
>> ----- Original Message -----
>> From: "Balázs Csaba" <[EMAIL PROTECTED]>
>> To: "PhpInstall (Elektronikus levelek)" <[EMAIL PROTECTED]>
>> Sent: Tuesday, July 02, 2002 3:56 AM
>> Subject: [PHP-INST] GD2 compile
>>
>> I would like to find some inormation to build php4.2.1 with
>> gD2. I have
>> downloaded the GD2 source (htp:/www.boutell.com/gd/), but there is not
any
>> PHP specific .c or .h file. I cannot overwrite GD1 files in /php/ext/gd
>> directory.
>> Should I build an .SO or .A or .LIB file first?
>> Is there any simple mode (./configure or any other) to build this GD
version?
> -----Original Message-----
> From: Jason Reid [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 02, 2002 2:18 PM
> To: Balázs Csaba; PhpInstall (Elektronikus levelek)
> Subject: Re: [PHP-INST] GD2 compile
>
>
> http://www.php.net/~rasmus/gd.html
>
Also: http://www.php-faq.com/gdinstall.php
--- End Message ---