php-install Digest 30 Sep 2002 22:13:02 -0000 Issue 1047

Topics (messages 8609 through 8613):

Re: cann't start apache on after reboot
        8609 by: Chris Hewitt
        8611 by: Chris Hewitt

Error compiling php 4.2.3 with zlib
        8610 by: Keenan Tims

Re: PHP, apache and windows xp installation problem
        8612 by: filip lenaerts

insatlling php - 4.2.3 with apache - 2.0.40
        8613 by: Anil Garg

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 ---
pei_world wrote:

>I had installed apache on my linux system, it work fine after the
>installation. but when I reboot the computer and use command "apachectl
>start" to start it again, it responed "apachectl command not found"
>can anyone help. thx...
>
Pei,

Did you use apachectl when you installed apache? On my RedHat 7.2 
apachectl is not present and not used. To start or stop it use "service 
httpd start" or to set it to start up automatically at boot time 
"chkconfig --level 345 httpd on".

If you installed from RPMs then this is what I would expect. If from 
source or on a different linux flavour, then I don't know. You could do 
a "locate apachectl" to see where it is and give the command line the 
full path, just in case its not on your default path.

HTH
Chris

--- End Message ---
--- Begin Message ---
Pei,

Either it was not there or you have deleted it. After an "updatedb" do 
"locate apachectl" to find it. If you know the full path, check that it 
is there and the permissions.

HTH
Chris

pei_world wrote:

>yes, I was using the exactly thing your said, the full path of apache 
>, but it just responed cann't found the command
>
>>>I had installed apache on my linux system, it work fine after the
>>>installation. but when I reboot the computer and use command "apachectl
>>>start" to start it again, it responed "apachectl command not found"
>>>can anyone help. thx...
>>>
>>Did you use apachectl when you installed apache? On my RedHat 7.2 
>>apachectl is not present and not used. To start or stop it use "service 
>>httpd start" or to set it to start up automatically at boot time 
>>"chkconfig --level 345 httpd on".
>>
>>If you installed from RPMs then this is what I would expect. If from 
>>source or on a different linux flavour, then I don't know. You could do 
>>a "locate apachectl" to see where it is and give the command line the 
>>full path, just in case its not on your default path.
>>
>>HTH
>>Chris
>>
>



--- End Message ---
--- Begin Message ---
Compiling PHP with zlib fails with the following errors.  Exclude zlib 
support and it compiles without issue.  Any help is appreciated.

In file included from /usr/include/bits/xopen_lim.h:34,
                 from /usr/include/limits.h:152,
                 from /usr/src/php-4.2.3/Zend/zend.h:163,
                 from /usr/src/php-4.2.3/main/php.h:34,
                 from zlib_fopen_wrapper.c:22:
/usr/include/bits/stdio_lim.h:24: warning: `L_tmpnam' redefined
/usr/local/include/stdio.h:16: warning: this is the location of the 
previous definition
/usr/include/bits/stdio_lim.h:29: warning: `L_ctermid' redefined
/usr/local/include/stdio.h:13: warning: this is the location of the 
previous definition
/usr/include/bits/stdio_lim.h:30: warning: `L_cuserid' redefined
/usr/local/include/stdio.h:14: warning: this is the location of the 
previous definition
zlib_fopen_wrapper.c:55: parse error before `gz_cookie_functions'
zlib_fopen_wrapper.c:57: warning: initialization makes integer from 
pointer without a cast
zlib_fopen_wrapper.c:58: warning: excess elements in scalar initializer
zlib_fopen_wrapper.c:58: warning: (near initialization for 
`gz_cookie_functions')
zlib_fopen_wrapper.c:59: warning: excess elements in scalar initializer
zlib_fopen_wrapper.c:59: warning: (near initialization for 
`gz_cookie_functions')
zlib_fopen_wrapper.c:60: warning: excess elements in scalar initializer
zlib_fopen_wrapper.c:60: warning: (near initialization for 
`gz_cookie_functions')
zlib_fopen_wrapper.c:60: warning: data definition has no type or storage 
class
zlib_fopen_wrapper.c: In function `zlib_fopen_wrapper':
zlib_fopen_wrapper.c:88: warning: return makes pointer from integer 
without a cast
make[3]: *** [zlib_fopen_wrapper.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.2.3/ext/zlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.2.3/ext/zlib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.2.3/ext'
make: *** [all-recursive] Error 1


--- End Message ---
--- Begin Message ---
hi anna,

although i'm using a windows 2000 server, i think i have the same
problem.  reading through newsgroups, it seems that the
php4apache2.dll is still buggy.

some say they solved the problem by using php4filter.dll, but i was
browsing through the php archives in search for the latter, and all
the sudden my eyes fall on the following line:

lrwx   1        25  Jul 25 18:18  php4.2.x-apache2.zip ->
temp/php4.2.x-apache2.zip

that file must be there for a reason, so i downloaded it, replaced it
with the experimental dll and ... yes, it works.

the link for downloading is:

http://ftp.proventum.net/pub/php/win32/php4.2.x-apache2.zip

hope this solves your problem too.

greetings,

filip

On Fri, 27 Sep 2002 17:49:59 +0000, [EMAIL PROTECTED] (Anna Wagg)
wrote:

>Hi all,
>
>My name is Anna. Could anyone help me to get working apache with php. I got 
>the apache server working with no problems. However when I try to configure 
>PHP as a module in Apache, I cannot start the apache server again. I am 
>getting the following message:
>“The requested operation has failed!”
>
>I spent a lot of time trying to make different changes but nothing has 
>worked. Below I list the steps that I took. I think they were the most 
>correct attempts of getting working the apache with PHP.
>
>PLEASE HELP ME!!!
>
>
>1)Operating system: Windows XP
>2)Service Pack 1 installed
>
>3)Server Version: Apache 2.0.40
>a. Apache htdocs folder directory:
>   C:\Program Files\Apache Group\Apache2\htdocs
>
>4)PHP Windows Manual installation from zip binary distribution
>a.apache_2.0.40-win32-x86-no_ssl.exe
>
>5)PHP 4, 06 Sep 2002, Version 4.2.3
>a)PHP installation directory:
>  C:\Program Files\php 4.2.3
>
>6)PHP is run as a server module.
>
>7)System directory:
>a.C:\WINDOWS\system32
>
>8)The content (dlls and phpsrvlt.jar, pws-php4cgi.reg, pws-php4isapi.reg) of 
>the sapi folder ( “C:\Program Files\php 4.2.3\sapi” ) was copied and passed 
>to the system directory ( “C:\WINDOWS\system32” )
>
>9)php4ts.dll was copied to “C:\WINDOWS\system32”
>
>10)File: php.ini-dist was copied to
>  “C:\WINDOWS\system32” and renamed to “php.ini”.
>
>11)The following line was commented out:
>a. ;extension_dir = ./
>
>12)extension_dir was set as below :
>a. extension_dir = C:\Program Files\php 4.2.3\extensions
>
>13)doc_root was set as follows:
>a.doc_root = C:\Program Files\Apache Group\Apache2\htdocs
>
>14)usr folder was created in:
>a.C:\Program Files\php 4.2.3\
>
>15)mibs folder was copied (not moved !) to:
>a.C:\Program Files\php 4.2.3\usr\mibs
>
>16)Server was stopped and the httpd.conf was modified (lines below were 
>added):
>
>a. LoadModule php4_module c:/Program Files/php 4.2.3/sapi/php4apache.dll
>
>b. AddModule mod_php4.c
>
>c. AddType application/x-httpd-php .php
>
>17)I was also trying to change php4apache.dll to php4apache2.dll, but it did 
>not help to get server running.
>
>18)PHP was configured as a module in Apache.
>
>19)When I add above four lines to httpd.conf file the apache server can be 
>stopped, however I cannot start it again. When those lines are commented 
>out, the apache server works with no problems.
>
>Could anyone tell me what I am doing wrong.
>
>Yours,
>
>Anna.
>
>
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>

--- End Message ---
--- Begin Message ---
Hi,

I am using following versions:

php - 4.2.3
apache - 2.0.40

On freeBSD 4.6

I am reffering to intallationg intruction at :
http://www.php.net/manual/en/install.apache.php

while intalling php i use the following:
./configure     --prerfix=/usr/local
                    -- with -mysql = /usr/local/msyql
                    --with -tsrm -pth
                    --enable -force -cgi - redirect
                    --with -apxs2=/usr/local/bin/apxs2

BUT, i get the folling while the libtools script is running....
It couldnt find libphp4.a in /usr/local/modules/        to move it to some
other place with name libphp4.so

And as a result it while i do apachctl start....it says it cant find
libphp4.so

Can php - 4.2.3  and apache - 2.0.40 be used together?? In fact i dont want
to use lower versions of both of them as lower versions of both have many
vulnerabilities exploited by now.

So, i got stuck at the mid of uploading my site.

Hope to get some solutions.
Thanx and regards
anil


--- End Message ---

Reply via email to