|
|
|
|
![]() ![]() |
Jun 28 2008, 11:50 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 214 Joined: 22-April 08 From: Harare, Zimbabwe Member No.: 61,160 |
Hey guys!
I installed Apache2.2.x on my machine running on XP SP3 and it worked. When I tried to install php5 from a .msi I then got "Error trying to access httpd.conf file. You will need to manually configure the web server." This is a re-installation on a machine that had php5, Apache2.2 and MySQL, all running in hamony. After "manually configuring the server" (editing the httpd.conf) I restarted Apache and when I try to open a .php file I get a blank page and the browser says "done". Tried phpinfo () but I still get the blank page. Now I don't know where I'm messing things up. Here I attached my php.ini and the httpd.conf files for you guys to have a look and see where I went wrong.
php.txt ( 53.23k )
Number of downloads: 6
httpd.txt ( 17.91k )
Number of downloads: 7I'm getting the same result even in Win2K on the same machine. Please help! |
|
|
|
Jun 28 2008, 02:18 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,301 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() myCENT:63.90 |
My suggestion would be to use a single click installer such as xampp or easyphp.
All of the settings are configured to default settings. Also, are you using a browser to open your php file in "localhost" ? |
|
|
|
Jun 29 2008, 12:22 PM
Post
#3
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 165 Joined: 1-November 05 From: SATA II Member No.: 13,683 |
Please try these steps to check the issues
Before go with the following steps, you should aware that I'am not sure whether php will work with folder with space char. So, with a last method, you have to move all files in php folder up one level to a drive root. But, to better understand how php check and works with path, let's learn it from errors. 1.) Please turn on this setting in the php.ini file, CODE display_errors = On display_startup_errors = On 2.) Check if php folder on the %path% enviroment variable CODE C:> path If it did't, add it to path by press win-key + break button on your keyborad. Click the tab -> Environment on the appeared dialog.
winkey_break_key.jpg ( 78.03k )
Number of downloads: 13.) Change directory to apache 2.2 installation folder's bin directory and type in apache -t -f conf/httpd.conf CODE C:\program files\apache2\bin> apache -t -f conf/httpd.conf This will check the syntax to see if it is correct. 4.) On a command prompt type, CODE C:\program files\php\php -r "phpinfo();" This will check if php was correctly installed 5.) Restart apache server and test it If it did't go with next step. 6.) please attach your apache log file here. A final note: please restore setting 1 when all things get done. This will safer you server. Eric, |
|
|
|
Jun 30 2008, 06:26 AM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 214 Joined: 22-April 08 From: Harare, Zimbabwe Member No.: 61,160 |
QUOTE Also, are you using a browser to open your php file in "localhost" ? Yes I was using Firefox3. I haven't tried it in other browsers.QUOTE 2.) Check if php folder on the %path% enviroment variable CODE QUOTE C:> path If it did't, add it to path by press win-key + break button on your keyborad. Click the tab -> Environment on the appeared dialog. I'm a bit lost here. What will I be doing and where? Do I do this in the text editor? I'll sure do that. thanks very much guys I hope you are going to keep following this thread untill my problem is solved. |
|
|
|
Jul 1 2008, 03:06 PM
Post
#5
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 165 Joined: 1-November 05 From: SATA II Member No.: 13,683 |
Hi,
It means that you have to open system applet on control panel folder, as follow, Click the start menu -> Settings -> Control Panel -> Double click the System Icon
system_applet.jpg ( 57.76k )
Number of downloads: 1Choose the environment variables button, this will bring up another dialog, (Note: this dialog was capture from windows 2000, but the items basically the same)
env.jpg ( 52.44k )
Number of downloads: 3Double-click the path entry on the system variables list and check if php folder's path exists, if not, please add it to the text box. For instance, if you have installed php on c:\php. Then, type it in the text box. After complete the steps above. Go with next step mentioned above. Eric, |
|
|
|
Jul 5 2008, 12:30 PM
Post
#6
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 224 Joined: 24-April 08 From: INDIA Member No.: 61,260 myCENT:7.70 |
Hi,
I am also stuck with PHP installation.. My Apache is working properly but I am not able to see any php pages . .. I tried to check PHP with the following code QUOTE <Body> Testing PHP..<BR> <?php phpinfo(); ?> </Body> but it ONLY shows the HTML part and no PHP info.. I have configured PHP on another machine but i cant remember what I am missing this time Its like php is not even reading it .. I think apache is configured properly since it displays Apache/2.2.9 (Win32) PHP/5.2.6 on the status bar of apache service monitor I am a big n00b with this .. Pls help My php and Apache installations are in D:\ and I have used a zip package for PHP and an Installer for PHP. I hope this will help I am also attaching the config files for both .. Thanks This post has been edited by bluedragon: Jul 5 2008, 12:31 PM
Attached File(s)
|
|
|
|
Jul 5 2008, 11:10 PM
Post
#7
|
|
|
|||[ n00b King ]||| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 715 Joined: 20-June 07 From: Auckland Member No.: 45,102 myCENT:20.20 |
CODE #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule php5_module "d:/php/php5apache2_2.dll" the line to load php module is different, it refers to a dll file where as the rest of the modules use the .so entension. I remember on my machine it uses name.so format so maybe its the same for your windows version of php. maybe do a search and correct the path. |
|
|
|
Jul 6 2008, 01:59 PM
Post
#8
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 224 Joined: 24-April 08 From: INDIA Member No.: 61,260 myCENT:7.70 |
Thanks ppl, I figured it out.. I had left some configuration with the PHP.ini file and totally forgot about copying the ini to Windows directory.
Its all fixed now and working Thanks again |
|
|
|