php-install Digest 8 Jun 2002 01:11:41 -0000 Issue 873

Topics (messages 7250 through 7258):

Re: Can not get PHP 4.1.6 to work with Apache 2.0.36 on Linux
        7250 by: junkie doodle

Apache2 + PHP + MySQL
        7251 by: Tai T. Le
        7252 by: Adam Voigt

Re: Upgrading from PHP 4,0,4pl1 to newer version.
        7253 by: Isaac Choeff

Re: Apache + php
        7254 by: Chris Hewitt

Re: Xitami new install problem
        7255 by: Liz Marr

Re: PHP 4.2.1 install problem
        7256 by: Ferno

Re: Compiling PHP4.1.2 with GD - possible or not? Need help!
        7257 by: Mathias Haas

Hurm. Interesting problem.
        7258 by: Glenn Sieb

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 ---
hups! sorry.. the version of PHP is 4.2.1

Jason Reid wrote:

> Post the link to php 4.1.6 and I *might* be able to help you ;).
> 
> What version are u actually using? 4.0.6 or 4.1.0/1/2 ??
> 
> I'm asking that mainly as only PHP 4.2.x officially has *expiremental*
> support for apache 2. That there may be your main problem.
> 
> Jason Reid
> [EMAIL PROTECTED]
> 
> ----- Original Message -----
> From: "junkie doodle" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 06, 2002 6:49 PM
> Subject: [PHP-INST] Can not get PHP 4.1.6 to work with Apache 2.0.36 on
> Linux
> 
> 
> > I'm using Apache 2.0.36 with PHP 4.1.6 on
> > a Suse 7.1 system..
> >
> > i've configured my php with --with-apxs2 --enable-ftp
> > --with-mysql=/usr/local/mysql/ --enable-sockets parameters..
> >
> > PHP installation added "LoadModule php4_module       
> > modules/libphp4.so" into my httpd.conf and i added "AddType
> > application/x-httpd-php .php" manually but PHP still doesnt work.. I've
> > checked that i have libphp4.so
> in
> > my /modules directory.
> >
> > I think i'm missing something about this and i wonder what it is.. I
> looked
> > for an article or a site but couldnt find anything about this.. Can
> > anyone give me some information about a site, an article etc.. or tell
> > me what do to have PHP working?
> >
> > My Apache server still publishes my source codes..
> > --
> > junkie lives.. somewhere in time
> > ---------------------------
> > hey sofia guy! what happened to eddie then?
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 

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

I'm try to run Apache2 with PHP + MySQL on WinXP. Apache2 run with no
problems. PHP install and configure but when I test it, it said something
like :

Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.

Apache httpd.conf for php as follow:

# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
ScriptAlias /php4/ "E:/web/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php "c:/php/php.exe"

Please help ! Thanks in advanced :)



--- End Message ---
--- Begin Message ---
Edit the force-cgi-redirect line in your php.ini file
in your windows folder.

Adam Voigt
[EMAIL PROTECTED]

On Fri, 2002-06-07 at 04:42, Tai T. Le wrote:
> Hi,
> 
> I'm try to run Apache2 with PHP + MySQL on WinXP. Apache2 run with no
> problems. PHP install and configure but when I test it, it said something
> like :
> 
> Security Alert! The PHP CGI cannot be accessed directly.
> This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
> that a page will only be served up if the REDIRECT_STATUS CGI variable is
> set, e.g. via an Apache Action directive.
> 
> Apache httpd.conf for php as follow:
> 
> # AddType allows you to add to or override the MIME configuration
> # file mime.types for specific file types.
> #
> AddType application/x-tar .tgz
> ScriptAlias /php4/ "E:/web/php/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> AddType application/x-httpd-php .php4
> Action application/x-httpd-php "c:/php/php.exe"
> 
> Please help ! Thanks in advanced :)
> 
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--- End Message ---
--- Begin Message ---
How did you do it?
Did you just overwrote the old version or did you have to uninstall previous
one before installing newer one???
Isaac

"Andy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> <snip>
> I would like to upgrade to the latest version
> > 4.2.1.
> > Will Installing the Latest version properly overwrite my previous
version
> or
> > do I need to uninstall the older version
> </snip>
>
> Hello Isaac,
>
> I did update a while ago to another php version on windows. Worked fine
for
> me.
>
> Andy
> --
> ----------------------------------------------
> http://www.globosapiens.net
> Global Travellers Network
>
>
>
>
> "Isaac Choeff" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am currently running PHP 4.0.4pl1 on Windows 98se with PWS as the web
> > server.
> > This was installed as a CGI module using the Windows Installer and the
Zip
> > archive of the Object module.  I would like to upgrade to the latest
> version
> > 4.2.1.
> > Will Installing the Latest version properly overwrite my previous
version
> or
> > do I need to uninstall the older version  and how can I uninstall it
since
> > there is no uninstaller for this version.  Will deletion of directory
> > C:\php\ and any other relevant files (php.ini) suffice or are there any
> > Registry entries involved.
> >
> > Thanks in Advance
> > Isaac
> >
> >
> >
> >
>
>


--- End Message ---
--- Begin Message ---
Tai,

It means that apache does not recogise the file it is being asked to 
server as a php file and does not send it to the php parser. Assuming 
that your url is asking for a file ending in ".php", then in 
/etc/httpd/conf/httpd.conf you need:
AddType application/x-httpd-php .php
Don't forget to restart apache with "/etc/init.d/httpd restart"

Hope this helps.

Chris

Tai T. Le wrote:

>Hi,
>
>Can someone please help...I'm new to this PHP
>
>I'm setting up Apache 1.3.24 with PHP4.
>
>After configure everything and I tried to test to if it work but I can't
>view it instead it promp for download ?
>
>Your help is very appreciate!
>
>Thanks.
>
>
>


--- End Message ---
--- Begin Message ---
Well, the current error is:

This server is currently overloaded - please try again later 

???? It's only trying to do one thing - the test.php file!!!  So, any hints to this 
one?  
I downloaded and successfully installed a PERL program - it's running fine.  PHP is 
what doesn't seem to want to run.

On 6 Jun 2002, at 11:41, Liz Marr wrote:

> I've got Xitami running on my home computer and wish to run Squirrel 
> Mail, so I need PHP to do so.  So far I've followed all of the instructions 
> on the PHP web site, as well as those for installing Squirrel Mail.  I've gone 
> from an initial directory listing of the Squirrel Mail directory to a blank web 
> page (no text in the headers or body of the page) to the following error:
> 
> Internal error: your request was unsuccessful 
> Cannot create CGI process - program not found
> 
> I got this error after moving the php4isapi.dll to the system folder.
> 
> This is a Windows 98 machine with plenty of memory and disk space.  I 
> believe that it is up to date with all updates.  I do have the option of running 
> PWS instead of Xitami, but I would like to be able to learn more CGI and 
> PERL and PWS does not do these.
> 
> Where to go now? 
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
 (\o/)   mailto:[EMAIL PROTECTED]       KA7MYM         
  /_\    http://cc-ent.com/Spiritbrook    ICQ 4014832
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Never give the devil a ride! He will always want to drive!

--- End Message ---
--- Begin Message ---
Hello,

I have exactly the same error after compiling it under Freebsd 4.5 but i do
not agree with Rasmus since i have succesfuly instaled and have it running
on Slackware 8.0.

There must be something wron'g but what that is the question.

Please keep me posted if you find a solution i will do the same.


"Defryn Nz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi There,
>
> I am new to PHP and Unix and I am getting install problems.
> I am using PHP 4.2.1 , Apache 2.0.36 and Freebsd 4.4
>
> I have installed apache from source first and that works fine
> After installation the httpd can be started
>
> I install php from source
>
>
./configure -prefix=/usr/local/apache/php -with-apxs2=/usr/local/apache/bin/
>
apxs -with-config-file-path=/usr/local/apache/php -with-mysql=/usr/local/mys
> ql
>
> After running make and make install I try to start the httpd  ./apachectl
> start
>
> This is what I get
>
> Syntax error on line 229 of /usr/local/apache/conf/httpd.conf
>
> Cannot load /usr/local/apache/modules/libphp4.so into server
> /usr/local/apache/modules/libphp4.so : Undefined symbol
> "pthread_getspecific"
> /usr/local/apache/bin/apachectl start : httpd could not be started
>
>
> I have the following in my conf file
>
> Under dynamic dhared object
> LoadModule php4_module modules/lib4php.so
>
> Under AddType
>
> AddType application/x-httpd-php .php
>
>
> What is going wrong? Any ideas?
>
> Cheers
>
>
>


--- End Message ---
--- Begin Message ---
Thanks Andy! The problem was that I had retried to compile it too many
times. After a few times the php-install dir simply goes corrupt - even
after 'make clean'. A fresh untar did the trick. Too simple! :-)

-----Original Message-----
From: andy [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 05, 2002 5:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Re: Compiling PHP4.1.2 with GD - possible or not?
Need help!


first of all untar a new tarball and go into the new phpdir.

Then run your configure command and pipe it into a textfile :

> ./configure --with-mysql=/usr/local/mysql 
> --with-apxs=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local/lib 
> --with-zlib-dir=/usr/local/lib --with-gd=/usr/local  > mathias.txt

open the text file and do a search on gd to figure out whats going on.
If everything is ok. do a make and check if it still throuws an error.

Hope this helps,

Andy

----------------------------------------------
http://www.globosapiens.net
Global Travellers Network


"Mathias Haas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000701c20bed$32b8ed10$f7ffa8c0@p42k">news:000701c20bed$32b8ed10$f7ffa8c0@p42k...
> I can't seem to install PHP v4.1.2 and GD v.1.8.4 *or* v2.0.1. I keep 
> getting the same Make error all the time. I'm completely out of ideas,

> and the only answer I could find searching the web was that it is a 
> bug...
>
> I run FreeBSD 4.5 and I've installed GD through the ports (and by 
> hand) with all the libraries that it needs. Then I want to re-compile 
> PHP4.1.2 with the following compile string:
>
> ./configure --with-mysql=/usr/local/mysql 
> --with-apxs=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local/lib 
> --with-zlib-dir=/usr/local/lib --with-gd=/usr/local
>
> That works really fine, and then I run make, which runs for a while 
> and then I get this error:
>
> In file included from gd.c:36:
> php_gd.h:69: warning: static declaration for `gdImageColorResolve' 
> follows non-static
> gd.c:92: conflicting types for `gdIOCtx'
> /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
>
> What am I supposed to do?
>
> I'd *really* appreciate any help. Thanks in advance.
>
> /mathias
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
I have a FreeBSD system, with apache 1.3.24 on it, and php4.2.1

I have this in my httpd.conf:
############## PHP 4.2.1 ###################
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
############################################

And I have a document, index.php in my documentroot.

index.php has:

<?php
phpinfo();
?>

When I go to open the index.php I get "Document contains no data"

I see nothing in my logs about this... it's really puzzling :(

Any ideas on where I can start looking???

Thanks,
Glenn

---
Glenn E. Sieb           See us at NetSec! June 18-19
System Administrator    Hyatt Embarcadero, San Francisco
Lumeta Corporation      http://www.lumeta.com/Events/events.html
+1 732 357-3514 (V)
+1 732 564-0731 (Fax)

--- End Message ---

Reply via email to