i installed php 5 on Apache 2.2.10.when i am making php files and putting in folder htdocs and than accesing it by http://localhost/hello.php. web page comes but only blank no error nothing. i don't know what went wrong. Is php is not installed on Apache or what?
please tell me how to install php on Apache and what is going wrong with with me.
thank you in advance.
installing php on apache
Moderator: General Moderators
- andyhoneycutt
- Forum Contributor
- Posts: 468
- Joined: Wed Aug 27, 2008 10:02 am
- Location: Idaho Falls
Re: installing php on apache
create a document in your web root with the following contents:
Direct your browser to the location of the file (not via the filesystem, but via http) and let me know what you get.
Code: Select all
<?php
phpinfo();
?>-
cancertropica
- Forum Newbie
- Posts: 3
- Joined: Tue Nov 18, 2008 9:57 am
Re: installing php on apache
i was tryng from HTTP not from file system. I am getting nothing, this is problem. mean blank browser.
Re: installing php on apache
Did you configure Apache to include the PHP module? In httpd.conf, look to see if you have 2 lines like this:
Then make sure you have php5apache2_2.dll (or a different version number) in that folder. This is assuming that you are installing under Windows. The details will be different under Linux, but in any case, you must have the proper references in httpd.conf.
Code: Select all
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"-
cancertropica
- Forum Newbie
- Posts: 3
- Joined: Tue Nov 18, 2008 9:57 am
Re: installing php on apache
i configured my Apache already initially. My blank screen was not to due to that. Problem was due to php-sam dll. This i come to know when i saw error log of server.i make php_sam.dll as command in php.ini and after that every things is working fine.
Thanks allot for all your support.
Thanks allot for all your support.