problems with PHP installation

Alles, was PHP betrifft, kann hier besprochen werden.

problems with PHP installation

Postby mmiskov100 » 22. December 2009 08:43

Hello,
I have installed PHP 5.3.1 and followed instructions in http://www.thesitewizard.com/php/instal ... dows.shtml to change my php.ini and httpd.conf files.Then,I tried to activate php with '<?php phpinfo(); ?>' in Notepad and some other editors;the page remains blanc!Additionaly I have typed 'php-cgi test.php' in Command Prompt and it works.I checked the configurations several times without results.I should be gratefull to everyone for any idea.
(Sie kennen auch in Deutch antworten).
mmiskov100
 
Posts: 5
Joined: 18. December 2009 17:35

Re: problems with PHP installation

Postby Izzy » 22. December 2009 11:13

mmiskov100 wrote:Then,I tried to activate php with '<?php phpinfo(); ?>' in Notepad and some other editors
You create a file in Notepad by adding <?php phpinfo(); ?> to the very first line of a blank page then you save the file as test.php into the htdocs folder of your Apache installation.

Then you type in your browser http://localhost/test.php to see the code executed by the web server Apache.

All that is well explained in the instruction link you provided in your post.

You can't execute or run php code unless it is parsed by the web server by typing a URI address in your browser.

Notepad or any other editor is purely for creating or editing the actual php code not for running the code.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: problems with PHP installation

Postby mmiskov100 » 22. December 2009 11:39

Thank you Izzy for your explnations,but http://localhost/test.php gives the error message 404(Object not found)!
mmiskov100
 
Posts: 5
Joined: 18. December 2009 17:35

Re: problems with PHP installation

Postby Izzy » 22. December 2009 11:57

Read the \apache\logs\error.log file for clues.

Make sure that the file is named test.php and is in the htdocs folder.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: problems with PHP installation

Postby mmiskov100 » 30. December 2009 12:36

Hi,
I have solved problem with test.php page,but when I tried an page named "hello.php" it occured a new one:in my browser the message is"error 404,Object not found" and in Command Prompt(php-cgi hello.php;) there are the PHP Warnings:"Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0",and the same for 'magic_quotes_gpc'....."No input file specified."
Does anybody have the similar problem?
mmiskov100
 
Posts: 5
Joined: 18. December 2009 17:35

Re: problems with PHP installation

Postby gerdonhanry » 31. March 2010 14:38

Here is a solution for when you are a problem with the installation for windows.
On a Windows install of PHP, it's best to put your DLL's in the WINNT/ or WINDOWS/ directory. They may work in other locations, but they're sure to work in these directories. There's no accounting for a fickle OS.
Also on Windows, you usually need to put a copy of php.ini in the WINNT\ or WINDOWS\ directory even if you won't be changing anything. If you haven't done this, the problem may not be obvious just by viewing a web page which will probably be blank.
gerdonhanry
 
Posts: 3
Joined: 31. March 2010 14:19


Return to PHP

Who is online

Users browsing this forum: No registered users and 2 guests

cron