Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-12-21 11:01:08
- mikolaj_k
- New Member
- Registered: 2006-05-19
- Posts: 3
Warning: php_sapi_name() has been disabled for security reasons...
Hello,
when testing my site ( www.manufaktura.art.pl/test ), a warning appears in the header of my page. It says:
Warning: php_sapi_name() has been disabled for security reasons in /var/www/mnt/nfs01/nfs2/html/pro/kiedybylammala.art.pl/root/manufaktura/test/textpattern/include/txp_diag.php on line 403
In the Site Diagnostics I also get this message, along with:
Warning: php_uname() has been disabled for security reasons in /var/www/mnt/nfs01/nfs2/html/pro/kiedybylammala.art.pl/root/manufaktura/test/textpattern/include/txp_diag.php on line 407
and
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: phpinfo,set_time_limit,openlog,syslog,set_socket_blocking,putenv,getrusage,get_current_user,php_sapi_name,php_uname,get_extension_funcs,dl,assert_options,leak,error_log,chown,chgrp,filegroup,link,socket_set_blocking,bind,connect,socket
I have previously installed Textpattern 4.0.3 and it worked all right. Now I upgraded to 4.0.4 and have these problems. I don’t know much about PHP – please can somebody explain to me what is going wrong and what I should do to make it work…?
thanks in advance for any help,
Mikolaj
www.manufaktura.art.pl
Offline
Re: Warning: php_sapi_name() has been disabled for security reasons...
You webhost has disabled some PHP functions that Textpattern needs. Ask them to enable the use of ‘php_sapi_name’ and ‘php_uname’. There is no security reason for disabling them.
You may want to ask them to enable ‘phpinfo’, ‘getrusage’ and ‘get_current_user’ as well, because those can be useful too when using PHP scripts (not necessarily for Textpattern).
Last edited by ruud (2006-12-21 11:20:05)
Offline
Re: Warning: php_sapi_name() has been disabled for security reasons...
php_sapi_name() is needed to write portable php scripts, otherwise setting HTTP-Headers merely works on half the sites.
php_uname() i for displaying the OS in diagnostics, this helps with troubleshooting sometimes, but is not essential for functioning.
If you set your site’s proiductions status (in preferences) to live the warnings on the public side should disappear.
Offline
#4 2006-12-21 12:04:53
- mikolaj_k
- New Member
- Registered: 2006-05-19
- Posts: 3
Re: Warning: php_sapi_name() has been disabled for security reasons...
Thanks a lot – what a fast (and helpful) reaction!
Mikolaj
Offline