PDA

View Full Version : Again PHP problems


Guust
08-19-2003, 11:21 AM
Hi,

I'm from Safe2Surf webhosting and we are using DA control panel. I love it very much, but we keep getting problems with php scripts. Some customers have bassicscripts (paidscripts) and even they are not working properly. Is it posseble to enable all PHP4 options? Because I think there lies the problem.

Thanx a lot
Guust Hilte
Safe2Surf

DirectAdmin Support
08-19-2003, 11:50 AM
Hello,

The only php problem we've encountered is the register_globals issue, which is supposed to be off (http://www.php.net/manual/en/security.registerglobals.php ). Many scripts simply require this to be on, so turning it on will fix any issues 99% of the time.

http://www.directadmin.com/forum/showthread.php?s=&threadid=210&highlight=registerglobals

John

Guust
08-30-2003, 03:34 AM
Ok, I finally know what the 'problem' is my customers have:
They use GD Library in there scripts and this function have to be enabled. Is this possible?

thanx

Guust
08-30-2003, 11:47 AM
I also would like to have safe mode enabled. Does anyone know how I can enable this options?

DirectAdmin Support
08-31-2003, 01:09 AM
Hello,

GD *should* be installed already. You can double check this by creating a php file with the following contents:
<? phpinfo(); ?>

This will generate everything you could ever want to know about what's enable and installed.

As for safemode, you can either make the changes in an .htaccess file, or you can edit: /usr/local/lib/php.ini directly.

John

Guust
08-31-2003, 03:36 AM
I tryed this one:
php_value register_globals 1
php_value safe_mode 1

register_globals is enabled now but safe_mode isn't.
I think this is because:

safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value

Guust
09-02-2003, 12:00 PM
How comes there aren't php and mysql errors when a php/mysql scripts isn't working properly.

Normaly you get an error from php/mysql. Could this be enabled?

DAclub
09-04-2003, 09:24 AM
Originally posted by Guust
How comes there aren't php and mysql errors when a php/mysql scripts isn't working properly.

Normaly you get an error from php/mysql. Could this be enabled?

i have some scripts that is not working for one reason or another. i add my voice to yours about enabling the show errors on MySQL and PHP.

l0rdphi1
09-04-2003, 09:27 AM
PHP and MySQL are showing errors for me no modification whatsoever.

DAclub
09-04-2003, 09:35 AM
Originally posted by l0rdphi1
PHP and MySQL are showing errors for me no modification whatsoever.

i get no errors at all ! althought i have some scripts that aint working ! :(

l0rdphi1
09-04-2003, 09:49 AM
The scripts themselves could be disabling errore (of their own).

DirectAdmin Support
09-04-2003, 12:47 PM
That last thing you could try is to re-copy the stock php.ini in case the other one was modified to cause these errors.
As root, run:
cp -f /usr/local/directadmin/customapache/php-4.3.3/php.ini-dist /usr/local/lib/php.ini

Note that register globals will turned off, so if you are dependant on them being on, you'll need to do that in this file.

If that doesn't work, then there is either an .htaccess file turning the errors off, or the code itself.

John