PDA

View Full Version : PHP errors after server updates


talon
06-17-2004, 13:45
I recently updated Apache and Cpanel through WHM. After the update some of my Website have started to produce errors.

For example an admin page on one site is producing about 30 errors like the following:

Warning: main(./admin/referer.php): failed to open stream: No such file or directory in /home/ncscinf/public_html/admin.php on line 56

Warning: main(): Failed opening './admin/referer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ncscinf/public_html/admin.php on line 56

Warning: main(./admin/topics_admin.php): failed to open stream: No such file or directory in /home/ncscinf/public_html/admin.php on line 60

I have verified that the files do indeed exist at the specified paths. Nothing else has change, so the errors are a direct result of the Update.

goodboy
06-17-2004, 15:42
It is just permission errors.

It could not open means it could not read.

If those files are not having that much sensitive files and if that files are not some install files (which you used for installing your php based application) then just set the permissions

read write execute
read -------execute
read---------execute

then see the result. Most probably it will solve the problem.

If it is not then just set the permissions 777 for that particular files. Now problem will be completely solved.


Tell what happened?

==========
If still you face problem just tell the application name. I will help you.