Newbie Confession: Can't even get phpinfo() to work - Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
c2497
Forum Newbie
Posts: 10
Joined: Wed Aug 06, 2003 8:18 pm

Newbie Confession: Can't even get phpinfo() to work - Help

Post by c2497 »

Hello:

I installed the following on Win2k; php-4-3-2 and Apache 2.0.47.

I made the following additions to http.conf in the right sections:

LoadModule php4_module c:/php-4.3.2-Win32/sapi/php4apache2.dll

AddType application/x-http-php .php .phtml .html
AddType application/x-http-php-source .phps

When I try to open my phpinfo.php page (located in htdocs), all I get is:
The page cannot be displayed
The page you are looking for is currently unavailable.

I renamed/moved my php.ini.dist to php.ini.

I also moved php4ts.dll to the system directory.

I didn't have any new messages in the apache error log but trying to stop apache via

I also checked to make sure that Apache2 is running as a service.

I know this isn't alot of detail (or maybe it's too much) but does anybody recognize the nature of my problem?

Are my php and apache versions compatible?

Help is appreciated.

Thanks,
Jerie
c2497
Forum Newbie
Posts: 10
Joined: Wed Aug 06, 2003 8:18 pm

Post by c2497 »

Perhaps some progress to report. I restarted my apache server and now I get the <? phpinfo(); ?> command displayed in a browser but not the results of the <? phpinfo(); ?> command.
rterrar
Forum Newbie
Posts: 8
Joined: Wed Aug 06, 2003 12:32 am

php.ini

Post by rterrar »

do you have short_open_tag = On in your php.ini file and is the php.ini in your windows directory or somewhere in your PATH variable?
c2497
Forum Newbie
Posts: 10
Joined: Wed Aug 06, 2003 8:18 pm

Post by c2497 »

I checked and I do have short_open_tag= on.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

ok. then you can use that. what about the second??? if it's not in the path nor that dir then it can't find th e ini file
Post Reply