| | |
new PHP user - help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2006
Posts: 2
Reputation:
Solved Threads: 0
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:
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:
Try this. Go to...
Once there open notepad and type in:-
Save the file as "phpinfo.php". Use quotation marks when actually saving it.
Now open up your internet browser and type in this address.
That's what I did after changing and amending all the .dlls
PHP Syntax (Toggle Plain Text)
C:\Program Files\Apache Group\Apache2\htdocs
Once there open notepad and type in:-
PHP Syntax (Toggle Plain Text)
<?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)
http://localhost/phpinfo.php
That's what I did after changing and amending all the .dlls
*Voted best profile in the world*
•
•
•
•
Originally Posted by CraigTussey
iamthwee,
what do you mean by changing and amending .dlls?
CraigTussey
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?
*Voted best profile in the world*
![]() |
Similar Threads
- PHP URL variables and if statement (PHP)
- PHP safe_mode & effects of turning it off... (PHP)
- URL Masking in PHP (PHP)
- PHP .htaccess form (PHP)
- question about connecting odbc to sql through php script (PHP)
- php mysql help (PHP)
- PHP Query, Make users login before accessing a movie? (PHP)
- Problems with first php file (PHP)
- PHP-Nuke 7.4 (PHP)
Other Threads in the PHP Forum
- Previous Thread: data-grabbing & mining - need script-help
- Next Thread: C code into php
| Thread Tools | Search this Thread |
apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date display dynamic echo email error fcc file files folder form forms freelancing function functions google href htaccess html image include incode insert integration ip javascript joomla limit link login mail match menu method mlm mod_rewrite multiple mysql oop pageing pagerank paypal pdf php problem query radio random recursion recursiveloop remote script search server sessions sms smtp soap source space sql strip_tags subversion support! survey syntax system table template tutorial undefined update upload url validator variable video virus web window.onbeforeunload=closeme; youtube






