Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i have installed apache in debian lenny distro but everytime i start it or check its status it says apache running with certain process id. but when i check the defualt web page (i.e http://server-ip) it gives "It Works" but when i try my pages it doesnt works

Giving this error "The requested URL /click-to-call.php was not found on this server. Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 Server at 120.138.20.149 Port 80"

Please help

in response to questions posed:

  • I have placed click-to-call.php inside /var/www/html if i am wrong then where should I place this file.
  • When i try "/etc/init.d/httpd status " it gives file not found
  • I have root access.
  • I have placed the file inside /var/www/html
share|improve this question

migrated from stackoverflow.com Sep 12 '09 at 9:44

This question came from our site for professional and enthusiast programmers.

    
apache itself is working if you got that error message. –  Stu Thompson Sep 12 '09 at 7:46
add comment

3 Answers

up vote 2 down vote accepted

Where you put the 'click-to-call.php' file?
have you tried to put it in the right place like "/var/www/"?
You'll need a root account to have access to this folder (I guess you have :D)

share|improve this answer
    
have the root access. and i have placed the file inside /var/www/html –  sk Sep 12 '09 at 8:06
    
The debian/ubuntu default docroot is /var/www/ not /var/www/html/ –  theotherreceive Sep 12 '09 at 15:28
add comment

that's because your click-to-call.php not located inside your apache's default directory

share|improve this answer
add comment

In Debian it's

/etc/init.d/apache2 status

But we already know apache is running. So, try browsing to:

http://your.ip.address/html/click-to-call.php

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.