php-install Digest 3 Jun 2003 18:58:42 -0000 Issue 1406
Topics (messages 11000 through 11002):
No input file specified.
11000 by: PHP User
Re: Help for PHP Newbie!
11001 by: Stephen
Unable to get pages to load
11002 by: B Hodge
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 installed php and configured it per the install manual.
I associated .php extensions to run php scripts via the php interpreter and
ran the test.php script successfully.
I then configured my Netscape 3.63 server mime-types to support php as
magnus-internal/shellcgi
Then I enabled php extensions to run on Netscape 3.63.
When I first ran test.php via webserver I got the security alert about
accessing php cgi's directly so I modified the php.ini file
cgi.force_redirect = 0 and now all I get is "No input file specified" when I
try to load the same test.php script.
Can someone help me with this please.
--- End Message ---
--- Begin Message ---
Sounds like your Apache is not correctly set to pass php files. Heres how it
should be done:
Open httpd.conf
Search for "# Dynamic Shared Object (DSO) Support"
This should show a long list of commented (lines with # in front) lines.
Scroll to the bottom of the list and add:
LoadModule php4_module C:/server/PHP/php4apache.dll
Ensure that this command actually points to php4apache.dll. Also, you need
to find and copy php4ts.dll into EXACTLY the same directory as
php4apache.dll.
If you continue to scroll down, the next session after the "LoadModule"
lines should be "AddModule". At the bottom of this list, you need to add the
line
AddModule mod_php4.c
Okay, so that is php installed, but next you need to set it so that .php
files are run using php! To do this, search for
"# AddType allows you to tweak mime.types without actually editing it, or
to"
You may already have a short list of options here, all you need to add is
AddType application/x-httpd-php .php
This tells Apache that all files that end in .php should be parsed using
php. Your files should now be working! One other feature you might like...
by default Apache will search for an index.html file to be display. You can
change this to load any file you like. Just search for
"# DirectoryIndex: Name of the file or files to use as a pre-written HTML"
Below it you should see this
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
Simply add the files you would like to be displayed by default. Apache works
from left to right so this:
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
Would first look for an "index.php" file, and if it was not found, then
search for an "index.html"
Good Luck
Stephen
----- Original Message -----
From: "Bud Roble" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 6:23 AM
Subject: [PHP-INST] Help for PHP Newbie!
> I've installed PHP 4.3.2 with Apache 1.3 and believe I've followed all the
> configuring instructions to the letter. I create the phpinfo.php script
> file for testing and placed it in the C:/program files/apache
> group/apache/htdocs folder for testing. When I type
localhost/phpinfo.php
> in my browser, the script is not being parsed. The script is simply
> displayed in the browser window as raw text. I can display all of the
html
> documents in the htdocs folder fine but any php document I browse to
simply
> displays the raw text in the browser. It acts the same whether I try at
> the localhost or from another computer on the network. What am I doing
> wrong?
>
> Any help will be greatly appreciated!
>
> Bud Roble
> [EMAIL PROTECTED]
> (805)794-3027
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I have installed php and configured it per the install manual.
I associated .php extensions to run php scripts via the php interpreter and
ran the test.php script successfully.
I then configured my Netscape 3.63 server mime-types to support php as
magnus-internal/shellcgi
Then I enabled php extensions to run on Netscape 3.63.
When I first ran test.php via webserver I got the security alert about
accessing php cgi's directly so I modified the php.ini file
cgi.force_redirect = 0 and now all I get is "No input file specified" when I
try to load the same test.php script.
Can someone help me with this please.
--- End Message ---