Draco Posted June 19, 2007 Posted June 19, 2007 Anyone know how to configure PHP on a server. Mine has display_errors shut off and I want it on. Right now if there is a syntax error it just displays a blank page. Its on a Virtual Dedicated Server, I have SSH connection. . Quote
Matty Posted June 19, 2007 Posted June 19, 2007 Re: PHP Configuration? Arnt you creating a game engine? You should know how to configure PHP so that you know to what specifications to build it too! I believe the php.ini file has something to do with it... I will look in a minute. If that don't help use your friend! Google! Quote
Matty Posted June 19, 2007 Posted June 19, 2007 Re: PHP Configuration? yeah its in there under error_reporting display_errors This will cause PHP to print out the errors along with the HTML. Helpful for debugging. Example: Display errors to the screen. display_errors = On With the newest builds of php display errors if set to off by default i believe, so the fatal errors aren't displayed in the browser, but you can go directly to either the main error log or vhost error log. Quote
hamster01 Posted June 19, 2007 Posted June 19, 2007 Re: PHP Configuration? find: error_reporting = ***** replace wiht: error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT In php.ini Quote
Draco Posted June 21, 2007 Author Posted June 21, 2007 Re: PHP Configuration? Arnt you creating a game engine? You should know how to configure PHP so that you know to what specifications to build it too! I believe the php.ini file has something to do with it... I will look in a minute. If that don't help use your friend! Google! I know what I need to change, and what file. The problem is that it won't let me open the file and edit it live, nor will it let me download it, edit it, and then upload again. Wanted to know if there was any thing I could to change it via ssh conncetion. . . . hmmmmm. . . . I wonder if I can delete and create a new file. . . . . . . I'll try that out in a bit! Quote
Matty Posted June 21, 2007 Posted June 21, 2007 Re: PHP Configuration? You never said you didn't have write access. Thats a poor VPS if you don't have full control over it. I think the only way you would be able to do it is contact the host? I'm not sure. Quote
Draco Posted June 22, 2007 Author Posted June 22, 2007 Re: PHP Configuration? You never said you didn't have write access. Thats a poor VPS if you don't have full control over it. I think the only way you would be able to do it is contact the host? I'm not sure. Well according to the file list write permissions are setup for me, however I can't find anywhere to do so, tried using fopen and writing that way but access is denied because of the files location. Yeah the panel for it sucks, guess I'm gonna have to shell out some more cash for the cpanel version, cuz the current one sucks ass. Quote
Draco Posted June 22, 2007 Author Posted June 22, 2007 Re: PHP Configuration? well problem fixed, guess since the panel sucks any edits i want to do I gotta do locally and upload them, no biggy I guess.... Delete old file, upload new, restart server. . . and its all good now! Quote
Matty Posted June 24, 2007 Posted June 24, 2007 Re: PHP Configuration? Glad it worked out okay. I guess its not the end of the world to do it that way! Quote
monbster Posted July 7, 2007 Posted July 7, 2007 Re: PHP Configuration? well problem fixed, guess since the panel sucks any edits i want to do I gotta do locally and upload them, no biggy I guess.... Delete old file, upload new, restart server. . . and its all good now! try using emacs php.ini in the correct directory. if you have permission the file should open for writing. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.