I have Apache and PHP installed, and I am getting this error “No input file specified” when I typed http://localhost in my web browser. To solve this make sure that php.ini & httpd.conf have the same directory name, see example below:

  • for php.ini which is usually located at C:\PHP\ make sure that doc_root is the same as your DocumentRoot for httpd.conf, make not of the forward and backward slashes
    doc_root = "E:\WEBSITES\"
  • for httpd.conf which is usually located at C:\Program Files\......\Apache\
    DocumentRoot "E:/WEBSITES"

    <Directory "E:/WEBSITES">


Facebook Page