php-install Digest 4 Aug 2002 08:02:57 -0000 Issue 962

Topics (messages 7994 through 7997):

Apache Restart
        7994 by: Nick Niehoff

Re: Help with IIS 5.0 and windows 2000 server!!!
        7995 by: cprc

Required...
        7996 by: Yogesh  Rajput

Installing php 4.2.2 with apache 2.0.39
        7997 by: Ryan Adorable

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 ---
I have finally installed php 4.2.2 and apache 2.0.39 on RedHat 7.2.  However
when I restart Apache I get the following error:

Starting httpd: Syntax error on line 230 of /www/conf/httpd.conf:
Cannot load /www/modules/libphp4.so into server: /www/modules/libphp4.so:
undefined symbol: ts_resource_ex

Can anyone help?
Nick


--- End Message ---
--- Begin Message ---
Hi there,
I know how frustrating trying to get installation files to work so I will
try to help you even though I must say that I am a newbie like you.

1. I run the same config as you - Win2000 Pro + IIS5.5 + PHP 4.2.2. +MySQL

2. I also have Apache also running as a separate server - this runs using
the same php.ini file as for windows.

3. I found that after I figured out what they were on about (there is far
too much goobleygook in the install files for newbies!!) that all I needed
to do was load the correct distribution files from the phpnet website - make
sure you select the distribution which includes an installer and leave the
clever stuff in trying to build the files from scratch to the initiated. The
file is found under this url:
http://www.php.net/downloads.php
MAKE SURE YOU SELECT THE PHP INSTALLER (913KB) FILE .

4. During the install process the system will detect an earlier php.ini file
and suggest that it overwrites it - let it do so as this will be correct
default for your configuration. Assuming that you have chosen the correct
distribution files. Unless you are really pressed for space follow the
suggestion of the installer and install the program files to the default
folder (C:\PHP).

5. Note the PHP is an interpreter - you can not run it directly as you
attempted as it will as you found out only trigger a command console. I am
sure if you know php well you could use enter commands but this is not how
php works - well not at least for us newbies.

6. OK - you now need to check to see whether or not your IIS webserver is
running - this is done by opening the control panel and then selecting
Administrative Tools and then Internet Information Services. This will
result in another dialogue box which will be headed Internet Information
Services in the left hand panel below which you will see a computer icon and
if there is a + next to it open it and look for the Default Web Site
folder - if there is "stopped"alongside the folder right click on it and
select "Start" - this will start your webserver - which will be called
localhost.

7. Ok now you need to load files to your webserver root folder - this will
be found as:
C:\Inetpub\wwwroot\
make a new folder - say mywebsite or whatever and place it under the wwwroot
folder - thus:
C:\Inetpub\wwwroot\mywebsite\

now place a test php file inside the mywebsite folder
use this code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<?php phpinfo(); ?>

</body>
</html>

- now when open this file in a browser you should get a PHP config details
in return
use this as your url:
http://localhost/mywebsite/test.php

ok now one more thing and you are done:

due to security issues the latest 4.2.2 has turned off register_globals -
this is fine if you are using new code using the new format (eg
[$_GET['Variable'] instead of the earlier construct
$HTTP_GET_VARS['vARIABLE'].

you will find the reference in line 310 in the php.ini file - this is the
only change I have made and I have got php working both with IIS and with
Apache.

I do hope the above will help you.

Chris


----- Original Message -----
From: "Jesse Zimmerman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 7:03 PM
Subject: [PHP-INST] Help with IIS 5.0 and windows 2000 server!!!


> Hello - First time post, I have been working on the server side of php for
> about 6 hours today and 7 hours yesterday trying to get it installed. I
have
> been searching for an answer for this problem, but have found none. I have
> had several issues, the newest of which is a 'HTTP 500 - Internal server
> error' error when I try to browse to my page
> http://ejwebhosting.com/test.php. I read many posts about this and when I
> execute php.exe from the command line, it spits me back some html at
least.
> Like I said I am very new to php, but not to coding at all, I would like
to
> know if anyone had any clue as to where this error is occuring, I am
> guessing the php.ini file, but it may be an issue as to something not
> pointing to the right place. All of my directory rights should be set
> correctly. Please reply directly to me. Also if someone has a working
> php.ini file that has been configured for iis 5 and windows 2k they could
> send it to me so I could look at it. Thanks for reading this and I am
> looking forward to getting this part running so I can develop some php
code.
>
> Thanks for any help
> Eugene Lai

"Jesse Zimmerman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello - First time post, I have been working on the server side of php for
> about 6 hours today and 7 hours yesterday trying to get it installed. I
have
> been searching for an answer for this problem, but have found none. I have
> had several issues, the newest of which is a 'HTTP 500 - Internal server
> error' error when I try to browse to my page
> http://ejwebhosting.com/test.php. I read many posts about this and when I
> execute php.exe from the command line, it spits me back some html at
least.
> Like I said I am very new to php, but not to coding at all, I would like
to
> know if anyone had any clue as to where this error is occuring, I am
> guessing the php.ini file, but it may be an issue as to something not
> pointing to the right place. All of my directory rights should be set
> correctly. Please reply directly to me. Also if someone has a working
> php.ini file that has been configured for iis 5 and windows 2k they could
> send it to me so I could look at it. Thanks for reading this and I am
> looking forward to getting this part running so I can develop some php
code.
>
> Thanks for any help
> Eugene Lai
>
>


--- End Message ---
--- Begin Message ---
Dear Sir,
        First of all thanks for the 'distribution file' for PHP. I have carefully read 
a file 'install.txt' and follow all the steps to install php on my PC. 

        Now first you concentrate on the precise details about my working environment…

1)      OS                                      -       Windows98
2)      PHP Version                     -       4
3)      Server                          -       PWS
4)      Distribution files existence    -       'c:\php'
5)      Virtual DIR                     -       'c:\php'
6)      Virtual DIR Alias                       -       'PhpFol'
7)      Existence of PHP file           -       'c:\php\PHP1.PHP'
8)      File's content                  -       '<?php phpinfo();?>'

According to the given instruction, I have run this (php-cgi.exe -i) command on the 
command line. After this I am getting a screen full of html codes. 
Now it's appear that php is working ok. So that when I execute my page by the 
following address - 'http://localhost/PhpFol/php1.php', I am getting an error message 
written below…

HTTP Error 403
403.1 Forbidden: Execute Access Forbidden
This error can be caused if you try to execute a CGI, ISAPI, or other executable 
program from a directory that does not allow programs to be executed.
Please contact the Web server's administrator if the problem persists.

-----------------------------------------------------------------------------------------

I understand nothing where the problem is. Sir, Please send me the required solution 
as early as soon. 

Regards,
Yogesh Kumar.

******* Note - For best view paste this into Notepad and set yout pixel setting 
600*800.
__________________________________________________________
Give your Company an email address like 
ravi @ ravi-exports.com.  Sign up for Rediffmail Pro today! 
Know more. http://www.rediffmailpro.com/signup/ 

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

   I got this configure line:




./configure --with-apxs2=/usr/www/bin/apxs --with-imap=/usr/www/imap --with-
mysql=/usr/db --with-gettext --with-zlib

   Now when I issue the make command, I got this error:

  /bin/sh /usr/www/php-4.2.2/libtool --silent --mode=compile
gcc  -I. -I/usr/www/php-4.2.2/sapi/apache2filter
 -I/usr/www/php-4.2.2/main -I/usr/www/php-4.2.2 -I/usr/www/include -I/usr/ww
w/php-4.2.2/Zend
 -I/usr/www/imap-2002.RC2/c-client -I/usr/db/include/mysql -I/usr/www/php-4.
2.2/ext/xml/expat
 -D_REENTRANT -I/usr/www/php-4.2.2/TSRM -g -O2 -pthread -DZTS -prefer-pic  -
c php_functions.c
 php_functions.c:93: parse error

How could I fox this error?

Thanks in advanced.
Ryan



--- End Message ---

Reply via email to