August 12th, 2002, 09:35 AM
|
#1 (permalink)
| | Junior Member
Join Date: Aug 2002 Location: CA
Posts: 15
| PHP Help
Im having trouble with the PHP4.2.2 installer..... it says,
"Sorry the software to automatically configure the Apache httpd.conf...."
Im using Windows 2000, Apache 1.3.26
My server is located in:
D:\Apache
D:\usr\bin\perl
I tried reading the install txt, but i dont understand what it wants me to do.
"Now that version 4.1 introduces a safer sapi module, we recommend
that you configure PHP as a module in Apache.
To do this, you should move php4ts.dll to the (for Windows NT/2000/XP) directory, overwriting any older file. Then you should add the following three lines to your Apache conf file:
(swap c:/php/ for your PHP install path)
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php"
where is this at in the httpd.conf file?(the swap part)
and in
"If you wish to install PHP as a CGI binary, (the sapi is much better)
you need to enable the apache security fix in your php.ini by
setting cgi.force_redirect = 1. Then, insert these lines to your conf file:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe""
Where do i write this?.... after ScriptAlias /cgi-bin/ in the Apache config file?
Im new at all this.... cant u tell?
HeLp Me PlZ..... |
| |
August 12th, 2002, 11:17 PM
|
#2 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
| Quote: |
"Sorry the software to automatically configure the Apache httpd.conf...."
| Is not big deal, SHOULD install php, just won't config Apache auto-like.
[edit]
PHP couldn't config IIS on my install, I just added later though IIS, had choice between API and .dll?? Me forget, no help.
wait, have you ever config-ed apache?
Last edited by qball : August 12th, 2002 at 11:21 PM.
|
| |
August 14th, 2002, 04:37 AM
|
#3 (permalink)
| | Junior Member
Join Date: Aug 2002 Location: CA
Posts: 15
|
yeah i have configured apache b4..... the
"Sorry the software to automatically configure the Apache httpd.conf...." meant it didnt configure my apache httpd.conf. I think you knew what i was tryinna say b4....hehe.... ive config Apache b4 but just simple tweakin like to relocating my cgi-bin in htdocs to make my Yabb forum work.... The problem is, i have nothin to check if I installed my PHP correctlly. |
| |
August 14th, 2002, 11:33 PM
|
#4 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
| Quote: |
I think you knew what i was tryinna say b4
| what? maybe, I don't? nuffin personal, I just don't like assuming unless my assumption is correct. Quote: |
The problem is, i have nothin to check if I installed my PHP correctlly.
| Sure you do.
Is it part of any uninstaller? (not always perfect) 2k has add/remove progs. PHP shows up in my XP add/remove.
Where did you choose to install? check there?
Does:
c:/php/sapi/php4apache.dll, exist? pretty good sign, installed?
Better yet, search everywhere for:
php.exe
php4apache.dll
Iffin you find, php most likely installed. Quote: |
...had choice between API and .dll...
| Had choice between:
php.exe
php4ts.dll
I should probably update.... |
| |
August 15th, 2002, 12:07 AM
|
#5 (permalink)
| | Junior Member
Join Date: Aug 2002 Location: CA
Posts: 15
|
k k... im bad at explainin things!... sorry
ok this is what the whole message states after the setup of "php-4.2.2-installer" on to my D:\ drive.
"Sorry the software to automatically configure the Apache httpd.conf file has not yet been written. You will have to configure Apache manually. See the install txt file for more details"
These are the files it installed for me in my D:\ drive
D:\PHP\BACKUP
\sessiondata
\uploadtemp
\IISConfig.exe
\install.txt
\License
\php.exe
\php4ts.dll
The three folders BACKUP, sessiondata, uploadtemp are all empty.
I think PHP.exe installer was trying to locate Apache on my C:\ drive.
My Apache server setup is:
D:\ Apache\htdocs\cgi-bin
D:\usr\bin\perl
Ive changed the cgi-bin, which was normally located at
D:\ Apache\cgi-bin
Sorry for makin everything so difficult =( , but thanx for tryinna help me out - qball |
| |
August 15th, 2002, 12:08 AM
|
#6 (permalink)
| | Junior Member
Join Date: Aug 2002 Location: CA
Posts: 15
|
hmm... doesnt look right
D:\PHP\BACKUP
D:\PHP\sessiondata
D:\PHP\uploadtemp
D:\PHP\IISConfig.exe
D:\PHP\install.txt
D:\PHP\License
D:\PHP\php.exe
D:\PHP\php4ts.dll
ok thats how it is =) |
| |
August 15th, 2002, 07:07 AM
|
#7 (permalink)
| | Junior Member
Join Date: Aug 2002 Location: CA
Posts: 15
|
Alright i think i got it all down.... but how do i test if it works?....
i used <?php phpinfo();?> and saved it as pp.php like this:
<html>
<head>
<title>
hi
</title>
</head>
<body>
<?php phpinfo();?>
</body>
</html>
Its a blank screen.... something is wrong with my configuration?
This is what i have:
D:\PHP\browscap
D:\PHP\extensions
D:\PHP\pdf-related
D:\PHP\pear
D:\PHP\sapi\ php4apache.dll
D:\PHP\php.exe
D:\PHP\php-cli.exe
D:\PHP\php.gif
D:\PHP\php.ini-dist
D:\PHP\php4ts.lib
D:\PHP\pear.bat
D:\usr\mibs
C:\winnt\php.ini
C:\winnt\system32\dlls
C:\winnt\system32\php4ts.dll
In php.ini:
;
doc_root = d:\apache\htdocs
;
extension_dir = d:\php\extensions
;
cgi.force_redirect = 1
;
In Apache Httpd.conf:
#
LoadModule php4_module d:/php/sapi/php4apache.dll
#
AddModule mod_php4.c
#
AddType application/x-httpd-php .php
#
AddType application/x-httpd-php-source .phps
#
it says (swap c:/php/for your PHP install path) what does that mean?
I placed each item in their place like AddModule mod_php4.c where all the AddModule are located. |
| |
August 15th, 2002, 07:10 AM
|
#8 (permalink)
| | Junior Member
Join Date: Aug 2002 Location: CA
Posts: 15
|
oh and i deleted "php-4.2.2-installer" and all its folders
I used the php-41.2.2-Win32.zip |
| |
August 15th, 2002, 07:44 AM
|
#9 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Alabama
Posts: 1,309
|
Well I just installed Apache/PHP/MySQL and I documented it pretty well(At least I think).
So this should be all you have to do
Install Apache
edit the httpd.conf
I think the d:/ should be like that not d:\
======================================
DocumentRoot "d:/apache\htdocs"
Down afew lines you should see something like Quote:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "PATH_TO_DOCUMENT_ROOT">
| Make sure PATH_TO_DOCUMENT_ROOT is d:\apache\htdocs
Then add this, Im not sure where is has to be but mine is after "AddType application/x-tar .tgz" Quote:
LoadModule php4_module d:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
|
Then in your php.ini edit
extension_dir = "D:\php\extensions\"
Make sure you
copy php.ini to C:\windows
copy php4ts.dll to C:\windows\system |
| |
August 16th, 2002, 01:07 AM
|
#10 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
| Quote: |
The three folders BACKUP, sessiondata, uploadtemp are all empty.
| well, you just installed sw!
what do you expect those dirs to contain?
sorry, sorry...
what did the apache subdirs contain, upon install?
sorry, sorry... |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |