Welcome to Xerver Help Online!
"No input file specified"-error
If you are using PHP version 4.3.2 or later and you try
to run a PHP-script you will get a "No input file specified"-error
(if you use PHP 4.3.1 you won't have this problem).
To solve this problem you can either install PHP 4.3.1 or you can follow these steps:
- Open your php.ini file
(for Windows users it's located in their Windows-directory,
for example c:\windows\php.ini).
- Search for this line:
doc_root =
When you have found this line, replace it with
doc_root = c:\myXerverRootFolder\
Where c:\myXerverRootFolder\ shall be
your Xerver root-directory (you choose this directory during the Xerver setup).
- Save php.ini.
- You are done! Your PHP-scripts will now work!
Most users can stop reading now as the description above
is enough to make your PHP-scripts working.
However, a more accurate description is given below:
After you have changed your php.ini your PHP-scripts will
work fine only as long as they are not in a virtual directory.
If you have PHP-scripts in a virtual directory and you want them
to be runnable you shall follow these steps:
- First assume your alias name is "cgi-bin" (it can be something else as well)
and it points
to c:\john\homepage\cgi-bin\ (important: to make this work your
alias name MUST be the same as the end of your real directory path,
you can not have an alias called "cgi-bin" pointing to a folder called
c:\john\homepage\dummyName\).
- Open your php.ini file
(for Windows users it's located in their Windows-directory,
for example c:\windows\php.ini).
- Search for this line:
doc_root =
When you have found this line, replace it with
doc_root = c:\john\homepage\
Where c:\john\homepage\ shall be
the directory to which your alias points to
except the directory having the same name as your alias(!!).
(To make sure no one misunderstands this: if your alias points to
c:\john\homepage\cgi-bin\ then your alias must be \cgi-bin\
and you must write c:\john\homepage\ (and not c:\john\homepage\cgi-bin\)
in your php.ini.
- Save php.ini.
- You are done! As long as your PHP-scripts are located in
c:\john\homepage\cgi-bin\ and your visitor visits them from
http://www.yourserver.com/cgi-bin/script.php they will work!
(Actually your scripts can also be located in subdirectories to cgi-bin,
for example http://www.yourserver.com/cgi-bin/something/script2.php).
Note: If you have more than one virtual directory, only one of them
can contain PHP-scripts.
Xerver Homepage
|