php-install Digest 28 Nov 2001 07:58:10 -0000 Issue 575

Topics (messages 5100 through 5115):

please, help to rookie
        5100 by: Denys
        5101 by: Jonathan Hilgeman
        5102 by: Matt Schroebel

without / pages do not come up
        5103 by: brain_damaged
        5110 by: Chris
        5112 by: Fred

cURL Cutting Off Last Character
        5104 by: Jonathan Hilgeman

IIS & PHP
        5105 by: Darkon

include with success warning
        5106 by: moe

Help please with setting up apache with php module
        5107 by: The Argyle Network of Services

Re: PHP install w/MySQL difference question
        5108 by: Erik Price

Re: php with apxs and mysql on Darwin
        5109 by: Chris

Error: Restarting Apache w/ PHP as DSO on redhat 7.2
        5111 by: charles
        5114 by: Chris
        5115 by: charles

Re: P.H.P and Cygwin NO PRECOMPILER
        5113 by: Fred

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 ---
can anyone help me with this rookie issue:
I need to re-install php on running FreeBSD machine in order to add somthn
onto --with......
please, point me where can I get DETAILED information about steps I have to
make...
thank you,
Denys



--- End Message ---
--- Begin Message ---
If you installed PHP 4 using the ports system, then you can go to the port's
directory (like /usr/ports/www/mod_php4) and edit the Makefile. In the
middle of the Makefile should be a listing of all extra --with... options.
You can probably take it from there.

- Jonathan

-----Original Message-----
From: Denys [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 11:30 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] please, help to rookie


can anyone help me with this rookie issue:
I need to re-install php on running FreeBSD machine in order to add somthn
onto --with......
please, point me where can I get DETAILED information about steps I have to
make...
thank you,
Denys




-- 
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]
--- End Message ---
--- Begin Message ---
Look at config.safe, it's your last configure.

You can re-run configure with
./config.safe --with-new-option=/path/to/new/option 
--next-new-option=what-ever-I-want-now

I'd do a make clean, and rm config.cache first just to start from scratch without any 
old baggage lying around.
./configure --help | more
 will list all the options available.  


> From: Denys [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] please, help to rookie
> 
> 
> can anyone help me with this rookie issue:
> I need to re-install php on running FreeBSD machine in order 
> to add somthn
> onto --with......
> please, point me where can I get DETAILED information about 
> steps I have to
> make...
--- End Message ---
--- Begin Message ---
hello,
I dont' know much about apache or php so not sure were my problem lies.

If don't put a trailing / my pages don't come up.
if i do then they do.

http://webserver.florida-wireless.com/phpgroupware
is 404

http://webserver.florida-wireless.com/phpgroupware/
works. the page is index.php3

how do i fix it ?
thanks

--- End Message ---
--- Begin Message ---
Greetings,
 Read below...

> hello,
> I dont' know much about apache or php so not sure were my problem lies.
> 
> If don't put a trailing / my pages don't come up.
> if i do then they do.

The answer and solution you seek is in the httpd.conf file. There's
a statement about exactly what you ask in it.
The location of this file varies depending on Platform and
version. There's alot of information in this file and I would
read it carefully, if I were you. It's fairly well documented.

> 
> http://webserver.florida-wireless.com/phpgroupware
> is 404
> 
> http://webserver.florida-wireless.com/phpgroupware/
> works. the page is index.php3
> 
> how do i fix it ?
> thanks

Best wishes,
 Chris


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

--
end


............................................
This email was sent using DNSWATCH WebMail.
   "Get an account today!"
http://www.dnswatch.com/dnswm112/


--- End Message ---
--- Begin Message ---
Seems to work from here.

Fred

Brain_damaged <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hello,
> I dont' know much about apache or php so not sure were my problem lies.
>
> If don't put a trailing / my pages don't come up.
> if i do then they do.
>
> http://webserver.florida-wireless.com/phpgroupware
> is 404
>
> http://webserver.florida-wireless.com/phpgroupware/
> works. the page is index.php3
>
> how do i fix it ?
> thanks
>


--- End Message ---
--- Begin Message ---
I use cURL to perform CC transactions and it returns a result string
(declined, accepted, etc...), but the message it returns is cut off. There's
one character missing on the end of the string, an "e". Here's my code:

        $ch = curl_init($gateway_url);
        curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt ($ch, CURLOPT_VERBOSE, 1);
        curl_setopt ($ch, CURLOPT_HEADER, 0);
        curl_setopt ($ch, CURLOPT_POST, 1);
        curl_setopt ($ch, CURLOPT_POSTFIELDS, $data_string);
        $results = curl_exec ($ch);
        curl_close ($ch);

        print $results;

The above should print "Account inactive" but I get "Account inactiv". I
KNOW it's working via other methods that I have tried, but I need to use
this one. I'm running FreeBSD 4.2, PHP 4.0.3, cURL 7.5.1 (I think), and
Apache 1.3.14+ModSSL.

- Jonathan

--- End Message ---
--- Begin Message ---
I still keep getting still error while I installed it correct

Warning: Undefined variable: show in D:\WEB\DSN\DSN_new\index.php3 on line 5

WHAT TO DO?????
--- End Message ---
--- Begin Message ---
Hi... i made an include in a php page... when i try to load the page i get

Warning:
file("http://mp3italia1.fit.dooyoo.it/servlets/DooyooConnector?template=item
&sessionID=&sponsor=1&order=default&itemID=37066") - Success in
/home/admin/www/hardware/index.php on line 67

Now if i go here:
http://mp3italia1.fit.dooyoo.it/servlets/DooyooConnector?template=item&sessi
onID=&sponsor=1&order=default&itemID=37066
the page exists and works fine but i get that warning with that weird
"success"... what is it and what does it mean? Can anyone tell me?

Here's a URL:
http://musica.mp3italia.com/



--- End Message ---
--- Begin Message ---
I am trying to set up apache, php and mysql

I have compiled mysql - all ok
I have compiled php - all seemed ok
I am compiling apache and get probs
I have tried the following methods

1.
    ./configure --activate-module=src/modules/php4/libphp4.a
    make
    make install
no errors returned but ./httpd -l does not show mod_php in the list and the
php functions don't work

2.
    put AddModule modules/php4/libphp4.a in the Configuration         file
in /usr/local/apache_1.3.22/src and then run ./Configure

no errors so I run make

then I get the following error


In file included from ../../include/ap_config.h:1170,
            from os.c:6:
/usr/include/regex.h:327:27: missing terminating ' character
make[1]: ***[os.o] Error 1
make: ***[subdirs] Error 1


It seems to be a corrupt  file but I cannot tell which one from the error
and what I have to do to replace or re-install it.


Any ideas

Regards Dave


--- End Message ---
--- Begin Message ---
Well, I just went ahead and did it without specifying a /path/to/dir:

pushd apache_mod_php-6-2
./configure --with-xml --with-zlib --with-apxs=/usr/sbin/apxs 
--with-mysql
(configure exited fine, but gave me the warning that I was using PHP's 
built-in MySQL library and that later modules added would probably not 
work)

make

sudo make install



And that was that.  It was as simple as everyone had told me!  
Shout-outs and mad props to Brian Mauter and Matt Schroebel for helping 
me decide to just DO IT instead of wrangling my mind over the 
implications of not specifying a /path/to/header/dir for MySQL.

I'll worry about installing additional modules later.


Erik


On Tuesday, November 27, 2001, at 02:08  PM, Erik Price wrote:

>
>
>
>> Hello,
>>
>> [The contents of this email contain quite an annoying amount of output 
>> from the command line, but please note that I have deleted most of the 
>> unnecessary output and tried to comment the parts that I felt were 
>> necessary.]
>>
>> I am curious as to what the difference will be if I choose to install 
>> PHP4 with MySQL functionality, using only the built-in MySQL support.  
>> If I specify the /path/to/mysql in my ./configure option --with-mysql, 
>> then I get the following output:
>>
>> localhost:~/tmp/apache_mod_php-6-2/php$ ./configure --with-xml 
>> --with-zlib --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql
>> creating cache ./config.cache
>> ... ( for sake of space, most ./configure output omitted ) ...
>>
>> Generating files
>> checking for working mkdir -p... yes
>> creating config_vars.mk
>> updating cache ./config.cache
>> creating ./config.status
>> creating php4.spec
>> creating Zend/Makefile
>> creating main/build-defs.h
>> creating pear/scripts/pear
>> creating pear/scripts/phpize
>> creating pear/scripts/php-config
>> creating TSRM/Makefile
>> creating main/php_config.h
>> creating sapi/Makefile
>> creating ext/Makefile
>> creating Makefile
>> creating pear/Makefile
>> creating main/Makefile
>> creating ext/zlib/Makefile
>> creating ext/mysql/Makefile
>> creating ext/pcre/Makefile
>> creating ext/pcre/pcrelib/Makefile
>> creating ext/posix/Makefile
>> creating ext/session/Makefile
>> creating ext/standard/Makefile
>> creating ext/xml/Makefile
>> creating ext/xml/expat/Makefile
>> creating ext/xml/expat/xmlparse/Makefile
>> creating ext/xml/expat/xmltok/Makefile
>> creating sapi/apache/Makefile
>> creating regex/Makefile
>> creating number.c
>> creating number.h
>> creating main/internal_functions.c
>> +--------------------------------------------------------------------+
>> | 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.                            |
>> +--------------------------------------------------------------------+
>>
>> Thank you for using PHP.
>>
>> localhost:~/tmp/apache_mod_php-6-2/php$
>>
>>
>>
>> But when I 'make' PHP, I get the following warnings (after it is done 
>> compiling):
>>
>>
>>
>> *** Warning: This library needs some functionality provided by 
>> -lmysqlclient.
>> *** I have the capability to make that library automatically link in 
>> when
>> *** you link to this library.  But I can only do this if you have a
>> *** shared version of the library, which you do not appear to have.
>>
>> *** Warning: This library needs some functionality provided by 
>> -lmysqlclient.
>> *** I have the capability to make that library automatically link in 
>> when
>> *** you link to this library.  But I can only do this if you have a
>> *** shared version of the library, which you do not appear to have.
>>
>> *** Warning: libtool could not satisfy all declared inter-library
>> *** dependencies of module libphp4.  Therefore, libtool will create
>> *** a static module, that should work as long as the dlopening
>> *** application is linked with the -dlopen flag.
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libZend.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libsapi.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libmain.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libregex.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libzlib.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libmysql.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libpcre.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libposix.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libsession.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libstandard.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libxml.al
>> ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libtsrm.al
>> ~/tmp/apache_mod_php-6-2/php/.libs
>> Making all in pear
>> localhost:~/tmp/apache_mod_php-6-2/php$
>>
>>
>>
>> So now it seems like I'm in the green -- it says that 'libtool will 
>> create a static module' for me.  But when I try to 'make install', I 
>> get an error.
>>
>>
>>
>> localhost:~/tmp/apache_mod_php-6-2/php$ sudo make install
>> password:
>> ... ( for sake of space, most 'make install' output omitted ) ...
>> Making install in .
>> /Users/eprice/tmp/apache_mod_php-6-2/php/build/shtool mkdir -p 
>> "/usr/libexec/httpd" && /usr/sbin/apxs -S 
>> LIBEXECDIR="/usr/libexec/httpd" -i -a -n php4 libs/libphp4.so
>> [activating module `php4' in /etc/httpd/httpd.conf]
>> cp libs/libphp4.so /usr/libexec/httpd/libphp4.so
>> cp: libs/libphp4.so: No such file or directory
>> apxs:Break: Command failed with rc=1
>> make[1]: *** [install-sapi] Error 1
>> make: *** [install-recursive] Error 1
>> localhost:~/tmp/apache_mod_php-6-2/php$
>>
>>
>>
>> There seems not to have been a 'libphp4.so' to copy into 
>> '/usr/libexec/httpd/libphp4.so'.  I posted to this list earlier, 
>> asking for advice on making this 'libphp4.so' file, but it seems no 
>> one knew the answer.  So, now I am wondering what the net effect would 
>> be of not specifying any directory argument to the '--with-mysql' 
>> configure option.  In other words, I would do (note the change in the 
>> ./configure options):
>>
>>
>>
>> localhost:~/tmp/apache_mod_php-6-2/php$ ./configure --with-xml 
>> --with-zlib --with-apxs=/usr/sbin/apxs --with-mysql
>> creating cache ./config.cache
>> ... ( for sake of space, most ./configure output omitted ) ...
>> +--------------------------------------------------------------------+
>> |                        *** 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.                            |
>> +--------------------------------------------------------------------+
>>
>> Thank you for using PHP.
>>
>> localhost:~/tmp/apache_mod_php-6-2/php$
>>
>>
>>
>> I need to get PHP and MySQL running by the end of the day or my boss 
>> is going to kill me.  If I just use this form of PHP (using built-in 
>> MySQL support), will I be able to re-compile the version with the 
>> appropriate /path/to/mysql at a later date?  Will the PHP code that I 
>> write for this (built-in MySQL) version of PHP4 work in a later 
>> version of PHP4 where I have indeed specified a directory?
>>
>> Thanks to any who can help me -- and I apologize to those who are 
>> becoming annoyed with these questions!  Once I get this up and running 
>> I will do my best to never bother anyone again!
>>
>>
>> -- Erik
>
>
> -- 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]
>

--- End Message ---
--- Begin Message ---
Hello Erik, All,
 read on...
> 
> On Tuesday, November 27, 2001, at 12:01  AM, Chris wrote:
> 
>> I had a similar *mis*understanding when I attempted to install
>> *other* modules with the PHP /configure/install.
>>
>> Your line (where mysql is concerned) should read:
>> --with-mysql=/usr/local *not*
>> --with-mysql=/usr/local/mysql as you used.
>>
>> That *should* get it for you. :-)
>>
>>
>> Best wishes,
>>  Chris
>>
> 
> Chris,
> 
> I tried it.  For some reason, it error'd during the ./configure
> command.
> 
> localhost:~/tmp/apache_mod_php-6-2/php$ ./configure --with-xml 
> --with-zlib --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local
> creating cache ./config.cache
> ... ( ./configure output omitted ) ...
> checking for MySQL support... yes
> configure: error: Cannot find header files under /usr/local
> localhost:~/tmp/apache_mod_php-6-2/php$
> 
> 
> This is strange, because here is what I get when I choose '--with-
> mysql=/usr/local/mysql':
> 
> 
> localhost:~/tmp/apache_mod_php-6-2/php$ rm config.cache
> localhost:~/tmp/apache_mod_php-6-2/php$ make clean
> make: *** No rule to make target `clean'.  Stop.

This should send up a red flag up in your head. As all the
previously compiled libs and much of the other stuff is *still*
there (didn't clean out all the *old* stuff). Try ./make distclean .

> localhost:~/tmp/apache_mod_php-6-2/php$ ./configure --with-xml 
> --with-zlib --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql
> creating cache ./config.cache
> ... ( ./configure output omitted ) ...
> checking for MySQL support... yes
> checking for MySQL UNIX socket... /tmp/mysql.sock
> ... ( more ./configure output omitted ) ...
> updating cache ./config.cache
> loading cache ./config.cache
> 
> Generating files
> checking for working mkdir -p... yes
> creating config_vars.mk
> updating cache ./config.cache
> creating ./config.status
> creating php4.spec
------8<---[snip]----8<---[snip]-----
> creating number.h
> creating main/internal_functions.c
> +--------------------------------------------------------------------+
> | 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.                            |
> +--------------------------------------------------------------------+
> 
> Thank you for using PHP.
> 
> localhost:~/tmp/apache_mod_php-6-2/php$
> 
> 
> See that?  It recognized the MySQL headers, and successfully completed 
> the ./configure operation, which is great.  But my problem, which is 
> that the 'make' operation does not create the libphp4.so file (or 
> whatever), still exists.

See above...

> 
> Does anyone have any advice?

Maybe you already mentioned this... but what OS are we building this
on? If it's a *BSD machine, everything you need to create this thing
is in the ports tree. The "make" comes with a *really nice* menu of
options to choose what you want included in the build and works like
a champ -- just wondering.


Best wishes,
 Chris

> 
> Thanks,
> Erik
--
end


............................................
This email was sent using DNSWATCH WebMail.
   "Get an account today!"
http://www.dnswatch.com/dnswm112/


--- End Message ---
--- Begin Message ---
Heres what I have:
Clean install of redhat 7.2, server option chosen, default packages installed - no 
extra servers or subcategories.

I have installed the following with no problems through configure, make or make 
install:
- MySQL 3.23.45 from binaries at mysql.com (redhat gcc error, or so it says)
- Apache 1.3.22 from source (configure --prefix=/usr/local/apache --enable-module=so)
- PHP 4.0.6 from source (configure --with-mysql=/usr/local/mysql 
--with-apxs=/usr/local/apache/bin/apxs)

I did have to change the first line in the apxs file from '#!/usr/bin/perl' > 
'#!/usr/bin/perl5.6.0'.
This was done prior to configure, etc... [known issue from another server running some 
perl apps}

Each package was tested after install for success.  MySQL and Apache work(ed) fine.
After installing PHP as a DSO, I cannot start apache and receive the following error:

"Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress
./apachectl start: httpd could not be started"

Line 205 of httpd.conf looks like:
LoadModule php4_module    libexec/libphp4.so
(looks good to me, but what do I know?)

Checked Apache's error log and nothing is being recorded (assuming because httpd 
cannot even start?)

I also attempted to reinstall both Apache and PHP by ./configure, make clean, make, 
make install with no luck -- same error.

I've noticed this on a few other posts in the archives but was not abale to find any 
resolutions.
Anyone have any ideas?  {I really do not want to install from RPMs]

much appreciated,


[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
Greetings Clacy,
 Mind you, the experience I share here is *primarily* from *BSD.
However, I have a great deal of experience with Win(whatever) and
Linux as well. I just blew away my "potato" install. So I can't
look at it for reference. That said, let's go. Read further down...

> Heres what I have:
> Clean install of redhat 7.2, server option chosen, default packages
> installed - no extra servers or subcategories.
> 
> I have installed the following with no problems through configure, make
> or make install: - MySQL 3.23.45 from binaries at mysql.com (redhat gcc
> error, or so it says) - Apache 1.3.22 from source (configure
> --prefix=/usr/local/apache --enable-module=so) - PHP 4.0.6 from source
> (configure --with-mysql=/usr/local/mysql
> --with-apxs=/usr/local/apache/bin/apxs)
> 
> I did have to change the first line in the apxs file from
> '#!/usr/bin/perl' > '#!/usr/bin/perl5.6.0'. This was done prior to
> configure, etc... [known issue from another server running some perl
> apps}
> 
> Each package was tested after install for success.  MySQL and Apache
> work(ed) fine. After installing PHP as a DSO, I cannot start apache and
> receive the following error:
> 
> "Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> cannot load /usr/local/apache/libexec/libphp4.so into server:
> /usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress
> ./apachectl start: httpd could not be started"

Had to change mine as well after the PHP install (same message). :-\

> 
> Line 205 of httpd.conf looks like:
> LoadModule php4_module    libexec/libphp4.so
> (looks good to me, but what do I know?)

The (working) line in my httpd.conf file looks like this:
LoadModule php4_module        libexec/apache/libphp4.so
Literal path translation:
/usr/local/libexec/apache

Similar to yours? I should also note that *relative* paths used during
the build process can cause confusion in the resulting Libs and
executables - apache, php and libphp4.so. Those paths are hard coded
into those files. Meaning ../../mysql or whatever, can throw off the
path once these files are in place. I know that I read this somewhere
at the php.net site. But can't remember exactly where. I think if you
just change the line in your httpd.conf file to the same as mine, you
should be in luck. :-)
Hope some of this might help and best of luck,
 Chris


> 
> Checked Apache's error log and nothing is being recorded (assuming
> because httpd cannot even start?)
> 
> I also attempted to reinstall both Apache and PHP by ./configure, make
> clean, make, make install with no luck -- same error.
> 
> I've noticed this on a few other posts in the archives but was not
> abale to find any resolutions. Anyone have any ideas?  {I really do not
> want to install from RPMs]
> 
> much appreciated,
> 
> 
> [EMAIL PROTECTED]

--
end


............................................
This email was sent using DNSWATCH WebMail.
   "Get an account today!"
http://www.dnswatch.com/dnswm112/


--- End Message ---
--- Begin Message ---
Here's is a fix for the 'cannot load libphp4.so: undefined symbol :
uncompressed' error ala google and FAQTs.

http://www.faqts.com/knowledge_base/view.phtml/aid/5087

1. install zlib per the doc above.
2. run ldconfig.
3. make clean in your php directory.
4. configure ... php.
5. edit your makefile adding -lz to the line listed in the above doc.
6. make php.
7. make install.
8. create and save a testfile named phpino.php in your document root.  this
file should contain '<? phpinfo() ?>' without the quotes.
9. restart apache. (error should be gone)
10. open http://localhost/phpino.php

this works for me..
charles
----- Original Message -----
From: "Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 1:40 AM
Subject: Re: [PHP-INST] Error: Restarting Apache w/ PHP as DSO on redhat 7.2


> Greetings Clacy,
>  Mind you, the experience I share here is *primarily* from *BSD.
> However, I have a great deal of experience with Win(whatever) and
> Linux as well. I just blew away my "potato" install. So I can't
> look at it for reference. That said, let's go. Read further down...
>
> > Heres what I have:
> > Clean install of redhat 7.2, server option chosen, default packages
> > installed - no extra servers or subcategories.
> >
> > I have installed the following with no problems through configure, make
> > or make install: - MySQL 3.23.45 from binaries at mysql.com (redhat gcc
> > error, or so it says) - Apache 1.3.22 from source (configure
> > --prefix=/usr/local/apache --enable-module=so) - PHP 4.0.6 from source
> > (configure --with-mysql=/usr/local/mysql
> > --with-apxs=/usr/local/apache/bin/apxs)
> >
> > I did have to change the first line in the apxs file from
> > '#!/usr/bin/perl' > '#!/usr/bin/perl5.6.0'. This was done prior to
> > configure, etc... [known issue from another server running some perl
> > apps}
> >
> > Each package was tested after install for success.  MySQL and Apache
> > work(ed) fine. After installing PHP as a DSO, I cannot start apache and
> > receive the following error:
> >
> > "Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> > cannot load /usr/local/apache/libexec/libphp4.so into server:
> > /usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress
> > ./apachectl start: httpd could not be started"
>
> Had to change mine as well after the PHP install (same message). :-\
>
> >
> > Line 205 of httpd.conf looks like:
> > LoadModule php4_module    libexec/libphp4.so
> > (looks good to me, but what do I know?)
>
> The (working) line in my httpd.conf file looks like this:
> LoadModule php4_module        libexec/apache/libphp4.so
> Literal path translation:
> /usr/local/libexec/apache
>
> Similar to yours? I should also note that *relative* paths used during
> the build process can cause confusion in the resulting Libs and
> executables - apache, php and libphp4.so. Those paths are hard coded
> into those files. Meaning ../../mysql or whatever, can throw off the
> path once these files are in place. I know that I read this somewhere
> at the php.net site. But can't remember exactly where. I think if you
> just change the line in your httpd.conf file to the same as mine, you
> should be in luck. :-)
> Hope some of this might help and best of luck,
>  Chris
>
>
> >
> > Checked Apache's error log and nothing is being recorded (assuming
> > because httpd cannot even start?)
> >
> > I also attempted to reinstall both Apache and PHP by ./configure, make
> > clean, make, make install with no luck -- same error.
> >
> > I've noticed this on a few other posts in the archives but was not
> > abale to find any resolutions. Anyone have any ideas?  {I really do not
> > want to install from RPMs]
> >
> > much appreciated,
> >
> >
> > [EMAIL PROTECTED]
>
> --
> end
>
>
> ............................................
> This email was sent using DNSWATCH WebMail.
>    "Get an account today!"
> http://www.dnswatch.com/dnswm112/
>
>
>
> --
> 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]
>

--- End Message ---
--- Begin Message ---
Are you logged in as root when you do this?  If you are not then the problem
is most likely that you do not have permission so use gcc to create
executables.

Fred

Unknown Sender <[EMAIL PROTECTED]> wrote in message
013301c1767a$adcd86e0$0201a8c0@biuroa">news:013301c1767a$adcd86e0$0201a8c0@biuroa...
> When I run ./configure on Cygwin I get message?
>
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... no
>
> What is wrong?
>
>
> Arek
>
> $ ./configure
> loading cache ./config.cache
> shtool:echo:Warning: unable to determine terminal sequence for bold mode
> shtool:echo:Warning: unable to determine terminal sequence for bold mode
> checking for a BSD compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... missing
> checking for working autoconf... found
> checking for working automake... missing
> checking for working autoheader... found
> checking for working makeinfo... found
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking host system type... i686-pc-cygwin
> checking for gawk... gawk
> checking for bison... bison -y
> checking bison version... 1.28 (ok)
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> creat
> e executables.
>
>
>
>
>
> --
>
> Tego nie znajdziesz w zadnym sklepie!
> [ http://oferty.onet.pl ]
>


--- End Message ---

Reply via email to