By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,109 Members | 932 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,109 IT Pros & Developers. It's quick & easy.

Problem setting up a local server.

P: 60
Hi I'm trying to setup a local web server for starting to study php.

Here's the scenario.
I installed apache 2.2.4-win32-x86-no_ssi.msi

At the installation wizard I entered the ff:

* Network Domain: localhost
* Server Name: localhost
* Administrator Email: any email address

***According to some reference,
[Keep following the prompts until Apache is installed.
To test everything is working properly open up a browser and enter localhost as the URL.If Apache has been installed correctly and the server is running the text should read: It Works!]
***Yup, I got this

Then after I succesfully installed the apache,I begin to install php-5.2.2-win32-installer.msi

When I prompted to choose a Web Server , I select Apache 2.2.x Module.
Next will be asked for the Apache Configuration Directory,

In my case I installed Apache in the default directory so this is where I pointed the installer:

C:\Program Files\Apache Software Foundation\Apache2.2\conf

But my problem now is when the installation finished ,the system will display this:

"Error trying access the local web service: GetObject Failed. You will

need to manually configure the web servers"

So until now I cant start to study php for a reason..

May 29 '07 #1
Share this Question
Share on Google+
4 Replies

Expert 5K+
P: 5,058
Try adding these two lines to the Apache's configuration file.
You will have to replace the <phpdir> with root dir of your PHP installation.

Expand|Select|Wrap|Line Numbers
  1. ScriptAlias /php/ "<phpdir>"
  2. LoadModule php5_module "<phpdir>/php5apache2_2.dll"
May 29 '07 #2

P: 4
How about installing xampp?!? it has already the necessary tools you need... here's the link
May 29 '07 #3

P: 60
Sir Atli,

Is there any other line I need to delete? Even I add those two lines, same response appear when I uninstall it and re-install it again?

Sir Tensai,

Nice to have that, I have to complete my download to try that.

Thanks to both of you..
May 30 '07 #4

Expert 5K+
P: 5,058
You should not edit any other lines, unless you know what it will do.
Those two lines are supposed to link your php installation to the apache server.

You might also have to copy the 'php5ts.dll' from the PHP install dir to the bin folder in the apache main dir (C:\Program Files\Apache Group\Apache\bin by default)
May 30 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.