Welcome to Xerver Help Online!
I have installed PHP. But my scripts won't run anyway. Why?
This has actually nothing to do with Xerver.
The problem is that your system's path to PHP is incorrect.
The path to PHP is set in a environment variable called PATH.
A valid PATH variable can for example be:
C:\WINNT\system32;C:\WINNT\;C:\PHP\;D:\Something\Else\ (Windows users)
...or...
/usr/openwin/bin:/opt/local/bin:/opt/pd/bin:/opt/gnu/bin:/opt/local/java/jdk/bin:. (UNIX users)
You can add the path to PHP to your PATH variable if you follow these steps:
Windows NT/2000/XP users:
- Go to Contol Panel/System.
- Advanced tab
- Press Environment Variable
- Check the PATH variable under "System Variables".
- Press Edit...
- Don't erase what you see here, but add the path to PHP to the beginning of this line and press OK. (For example: If the PATH variable is C:\WINNT\system32;C:\WINNT\ and PHP.exe is located at C:\PHP\, change the PATH to C:\PHP\;C:\WINNT\system32;C:\WINNT\)
- Press OK.
- Press OK again.
- Start Xerver (if already running, close Xerver and restart it).
Windows 95/98/ME users:
- Open c:\autoexec.bat with notepad (or another text editor).
- Scroll down to the last line.
- Add this line to the bottom of the autoexec.bat file: set PATH=pathToPHP;%PATH% where pathToPHP is the folder where PHP.exe is located. (For example: If PHP.exe is located at C:\PHP\, this line shall be added to the bottom of autoexec.bat: set PATH=C:\PHP\;%PATH%)
- Save your settings to c:\autoexec.bat.
- Restart your computer.
Xerver Homepage
|