944,017 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1302
  • PHP RSS
Jul 22nd, 2006
0

new PHP user - help

Expand Post »
Hello,

I have a Windows XP Home, Apache/2.0.49 (Win32), PHP/5.1.4 mod_perl/2.0.2, Perl/v5.8.3, MySQL 5.0 platform at my home. I've been doing Perl work with mod_perl on the Apache for some time with no problems. I've worked with PHP and MySQL at other places, but have just recently installed them in my home environment. The MySQL service is starting automatically and running fine and PHP (module implementation), based on the command line 'PHP -v' command and a CGI print of environment variables, is installed and running. But when I try to execute the phpinfo.php script, I get a blank screen and can view the PHP source.

I've added C:/PHP to the path. I renamed the recommended PHP configuration to php.ini and placed it in the C:/PHP directory. I added 'LoadModule php5_module "C:/PHP/php5apache2.dll"' and 'PHPIniDir "C:/PHP/"' in the DSO section and 'AddType application/x-httpd-php .php' in the addtype section of the
Apache httpd.conf file. I set Display_errors and log_errors to On, doc_root = C:\usr\www\steepusa, and extension_dir = C:\PHP\ext
in the php.ini file. And of course, I restarted the Apache. But the phpinfo.php script is not working. Can someone please help me understand this?

Respecfully,
Craig Tussey :rolleyes:
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CraigTussey is offline Offline
2 posts
since Jul 2006
Jul 22nd, 2006
0

Re: new PHP user - help

Try this. Go to...
PHP Syntax (Toggle Plain Text)
  1. C:\Program Files\Apache Group\Apache2\htdocs

Once there open notepad and type in:-

PHP Syntax (Toggle Plain Text)
  1. <?php phpinfo(); ?>

Save the file as "phpinfo.php". Use quotation marks when actually saving it.

Now open up your internet browser and type in this address.

PHP Syntax (Toggle Plain Text)
  1. http://localhost/phpinfo.php

That's what I did after changing and amending all the .dlls
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jul 23rd, 2006
0

Re: new PHP user - help

iamthwee,

Thanks for responding. I had tried what you suggested (see original message), but what do you mean by changing and amending .dlls?

CraigTussey
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CraigTussey is offline Offline
2 posts
since Jul 2006
Jul 23rd, 2006
0

Re: new PHP user - help

Quote originally posted by CraigTussey ...
iamthwee,

what do you mean by changing and amending .dlls?

CraigTussey
Well I am using a cd with an all in one (mysql,apache and php).

The book instructed me to change some of the files to add the php module to apache. It will probably be slightly different for you. Have you read the documentation for installation thoroughly?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: data-grabbing & mining - need script-help
Next Thread in PHP Forum Timeline: C code into php





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC