logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: PHP installation issues
Author
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Wed 29 Jun '11 11:29    Post subject: PHP installation issues Reply with quote

Hi, i got a very wierd issue for you guys. i want to install my apache server on the windows live server. but there are a quite issues which i couldnt solve it. i hope you guys ll give me a best solution.

let me explain what is happening at the moment. on my live server machine both iis and apcahe server are running fine with seprate ip address. i can see a default page which html one is working fine. only issue is when i make that a php page. it says forbidden error. so this is the first issue. i kind of read some articles about it and by the look of it its look like there is no php configured.
Code:
LoadModule php4_module "c:/Program files/PHP/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

but when i saw the installed php folder there is no php4apache2.dll file. now another issue came up the php installed on the system is already used by by iis. and its not which work best for apache.

now my issues is this how can i link up this existing php to apache or if i need to install new one what should do. keeping in mind that this is my live server setting and i have no clue how to set-up apache server on any machine. i hope you guys ll understand my issue. and any help ll be appreciated.
Thanks in advance
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Wed 29 Jun '11 11:57    Post subject: Reply with quote

Are you still using Apache 2.0 and PHP4?? To load PHP4 into apache 2.2 you need to use php4apache2_2.dll I don't if that file exists in PHP4. It has been a while.
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Wed 29 Jun '11 12:58    Post subject: Reply with quote

the below code is completely for reference. if you could give some latest information how to do that stuff. a link to article or your own thought which are much simpler. cause apache help is confusing and also my problem is unique.
thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Wed 29 Jun '11 13:09    Post subject: Reply with quote

See A Fast, Reliable and Proven Setup :: Apache PHP MySQL Perl
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Wed 29 Jun '11 14:46    Post subject: Reply with quote

thanks for your reply. but only thing is this. i extract the files. but there is no file named c:/php5/php5apache2_2.dll. can you help me in this please. i have installed php with windows installer. and also it is on live server i have to be very catious about it. please advise me.
thanks
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Wed 29 Jun '11 15:24    Post subject: Reply with quote

Hi, i am getting this message. can anybody help me please.


Forbidden

You don't have permission to access / on this server


thank
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 30 Jun '11 9:34    Post subject: Reply with quote

What is in the error log? Did you change the document root?
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Thu 30 Jun '11 11:44    Post subject: Reply with quote

hi.
i had changed the the document root and it was not working showing me that message. but i revert back to previous setting but still it is not rendering php and showing php tags as it is.

as php installed previous so i need to change that directory too?
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Thu 30 Jun '11 11:58    Post subject: Reply with quote

thats what it is showing at the moment. i think your help is quite good and i am nearly there to crack that up. thanks in advance!

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<? echo "hello world"; ?>
</body>
</html>
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Thu 30 Jun '11 12:42    Post subject: Reply with quote

error log
Quote:

Thu Jun 30 11:40:55 2011] [error] [client 81.136.218.237] Directory index forbidden by Options directive: D:/www.apache/
[Thu Jun 30 11:40:55 2011] [error] [client 81.136.218.237] File does not exist: D:/www.apache/favicon.ico
[Thu Jun 30 11:40:56 2011] [error] [client 81.136.218.237] Directory index forbidden by Options directive: D:/www.apache/
[Thu Jun 30 11:40:57 2011] [error] [client 81.136.218.237] File does not exist: D:/www.apache/favicon.ico
[Thu Jun 30 11:40:57 2011] [error] [client 81.136.218.237] Directory index forbidden by Options directive: D:/www.apache/
[Thu Jun 30 11:40:57 2011] [error] [client 81.136.218.237] File does not exist: D:/www.apache/favicon.ico
[Thu Jun 30 11:40:59 2011] [error] [client 81.136.218.237] Directory index forbidden by Options directive: D:/www.apache/
[Thu Jun 30 11:40:59 2011] [error] [client 81.136.218.237] File does not exist: D:/www.apache/favicon.ico
[Thu Jun 30 11:41:00 2011] [error] [client 81.136.218.237] Directory index forbidden by Options directive: D:/www.apache/
[Thu Jun 30 11:41:00 2011] [error] [client 81.136.218.237] File does not exist: D:/www.apache/favicon.ico
[Thu Jun 30 11:41:00 2011] [error] [client 81.136.218.237] Directory index forbidden by Options directive: D:/www.apache/
[Thu Jun 30 11:41:00 2011] [error] [client 81.136.218.237] File does not exist: D:/www.apache/favicon.ico
[Thu Jun 30 11:41:02 2011] [error] [client 81.136.218.237] Directory index forbidden by Options directive: D:/www.apache/
[Thu Jun 30 11:41:02 2011] [error] [client 81.136.218.237] File does not exist: D:/www.apache/favicon.ico
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Fri 01 Jul '11 9:45    Post subject: Reply with quote

In your httpd.conf there is a <Directory ... block where you need to change it to the document root path. Search for "changes this" in your httpd.conf
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Fri 01 Jul '11 12:22    Post subject: Reply with quote

there is three directories... here these are
Code:

<Directory />
    Options Indexes
    AllowOverride None
    Order deny,allow
    Allow from all
</Directory>

Code:
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs">
this is change into this
<Directory "D:/www.apache/c-i-c">

Code:
Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
change into this
<Directory "D:/www.apache/c-i-c">


am i doing something wrong here. any quick help ll be much appreciated!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Fri 01 Jul '11 16:19    Post subject: Reply with quote

Leave the cgi-bin to the default one. Change only htdocs
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Fri 01 Jul '11 16:23    Post subject: Reply with quote

ok changed but still it is saying same thing

Forbidden

You don't have permission to access /c-i-c/ on this server.

it is to permission setting on that specific folder or not.

also in htdocs i put index.php but it was not rendering the php. as i couldnt find apache2_2.dll file.
this is kind of stuck now... no clear instruction are coming. please help
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Fri 01 Jul '11 16:50    Post subject: Reply with quote

hi this fobidden error is resolved now. but now its not rendering php pages. it is rendering as a text file. php configuration are not done
Code:
<h1>this is cic's test page</h1>
<p>i am tying toinstall php on the server
</p>


is there any seprate library or ext that i put on my existing php folder so it start working for apache and dont make a mess for iis.????
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Fri 01 Jul '11 17:24    Post subject: Reply with quote

How did you solve the permission error?

how did you configure php in your httpd.conf? Please also read http://www.apachelounge.com/viewtopic.php?t=2395
Back to top
naseem_sarwar



Joined: 29 Jun 2011
Posts: 11
Location: nottingham uk

PostPosted: Tue 05 Jul '11 15:01    Post subject: Reply with quote

i have just changed the permission settings. found that one of the post that you share.

now configuration of php still not done. php is installed on windows installer to it dont have phpapache2_2.dll file. it has installed php5. where i can installed or get that file so i can run that with apache server. the existing php5 is already working perfectly with IIS.

IIS and Apache are installed on same machine with different ip addresses. which is making it more confusing and difficult to understand.

Thanks
Back to top


Reply to topic   Topic: PHP installation issues View previous topic :: View next topic
Post new topic   Forum Index -> Other Software