• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

PHP Site Forbidden

K

Kalyse

Guest
PHP / Site Forbidden

After reading the documentation I cannot see a resolution to this.

My sites PHP scripts seem to have some problems, I have just installed the control panel so I am not sure if I am missing on a lot of config issues with anythign else, such as Perl, I am going to test that next.

The problem, is that the PHP pages work, however I am endlessly getting errors. When I do an include I get an error, this is an example.

Warning: main(/header.htm): failed to open stream: No such file or directory in C:\Inetpub\vhosts\invision-hosting.co.uk\httpdocs\about.php on line 8

Warning: main(): Failed opening '/header.htm' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\invision-hosting.co.uk\httpdocs\about.php on line 8


It seems like the domain is passworded also on the main index.php and some other files without explaination.


Can someone please shed some light into why I am having these issues.
 
Check the ntfs permission of php-cgi.exe

and copy from the backup of php.ini the include path into the new php.ini
 
I am not quite sure which you mean.

Are you refering to this?

This is from my php.ini



;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = "C:\Program Files\SWsoft\Plesk\admin\plib;C:\Program Files\SWsoft\Plesk\admin\plib\api-rpc;C:\Program Files\SWsoft\Plesk\admin\javascripts;C:\Program Files\SWsoft\Plesk\admin\plib\locale;C:\Program Files\SWsoft\Plesk\admin\auto_prepend;C:\Program Files\SWsoft\Plesk\admin\htdocs\domains\databases\phpMyAdmin;C:\Program Files\SWsoft\Plesk\admin\htdocs\domains\databases\phpPgAdmin"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\Program Files\SWsoft\Plesk\admin\modules"




If I were to copy from the php.ini-recommended it would mess up the configuration.

This is in the php.ini-recomended


;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~usernamem used only
; if nonempty.
user_dir =
 
Back
Top