Jump to content


Photo

How to view PHP errors


  • Please log in to reply
3 replies to this topic

#1 Retsel

Retsel

    Newbie

  • Member
  • Pip
  • 3 posts
  • Main OS: Windows XP

Posted 03 June 2010 - 07:52 PM

I've just recently installed Uniserver, and I can't figure out where or how to view php errors that occur as I'm trying to debug php programs. Any help would be appreciated.

#2 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 04 June 2010 - 03:57 AM

There are two configuration files for PHP production and development.

For security reasons Uniform Server defaults to production and error reporting to screen is disable.

To check which file you are using, from UniTray run “Server Status”
A script will run, fourth line down shows which file is switch in.

For error reporting you need to use the development file.
From UniTray select “Advanced”
From sub-menu run the third item from bottom “php.ini switch to development”
Restart servers to allow new configuration to be picked up.

Errors will be displayed to screen
Additional errors are found in file UniServer\usr\local\apache2\logs\error.log
This file is accessible from UniTray “Server information and logs”

All the best
Ric :angry:

#3 Retsel

Retsel

    Newbie

  • Member
  • Pip
  • 3 posts
  • Main OS: Windows XP

Posted 04 June 2010 - 12:33 PM

Ric,
That information was what I needed.
Many thanks!
Retsel

#4 Znote

Znote

    Junior Member

  • Member
  • Pip
  • 37 posts
  • Gender:Male
  • Main OS: Windows 7

Posted 30 September 2010 - 01:56 PM

Thanks. Helps a lot. (Didnt knew where to find the text document). :)

I am representing the open tibia community otland.net
otland.net is contributing open source server software to an 2d mmorpg game called Tibia.

Here are some Uniform server tutorials/guide contributions from me:
VIDEO TUTORIAL: I teach newbreeds to install and operate uniform server: (Updated for Coral 8.x)
http://youtu.be/AsyxPhDTOcI

Uniform Server newbie guide:
Securely installing Uniform Server for total newbeginners:
http://otland.net/f4...-0-3-6-a-77593/
(also contains how to get our open source tibia game, and connect it successfully to the uniform mysql server).

How to add a website for our open source tibia game which includes highscore, create account and so on: (On uniform server)
http://otland.net/f4...m-server-91951/





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users