Diasbled Function In Php.ini
suppose that i am a costumer. is it possible to see disabled function in php.ini?
(using any script)
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Howto Convert Ini_set Function In Code To Php.ini Setting
I have a website that was running fine for a month or two until my host recently changed some settings on the server, and now it shows a bunch of errors. I contacted the host and they said > "To avoid the errors, please do not use disabled function. If you need such functionality, you can have your own php.ini on your root http folder containing only necessary option" Since I'm not a programer, I have no idea what they're talking about. So, I asked them how to do that, they're reply of course was> "Please consult with the script writer on how to convert ini_set function in your code to php.ini seting. As the script is not encrypted, you can do it with commenting all ini_set calls and write a substitute on php.ini (Create php.ini file in webroot folder)." I tried to contact the developer, but it appears he has gone MIA! So, now I am left with no clue how to fix the website, so I turn to you guys! The website is [url]. You can see the errors in the header, but I'll post them here as well>> "Warning: ini_set() has been disabled for security reasons in /home/buymydom/public_html/includes/global.php on line 3 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/buymydom/public_html/includes/global.php:3) in /home/buymydom/public_html/includes/global.php on line 32 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/buymydom/public_html/includes/global.php:3) in /home/buymydom/public_html/includes/global.php on line 32" My question is, How do I convert ini_set function in my code to php.ini?
View Replies!
View Related
PHP Mail() Function Not Working
I have just changed servers and uploaded a mail() script which was working on my previous config but does not work on the new server config. What is stopping the emails from being delivered, is there something new in WHM that I need to do? Here are my WHM and cPanel details: WHM 11.11.0 cPanel 11.15.0-R18264 REDHAT 4 i686 on standard - WHM X v3.1.0
View Replies!
View Related
PHP Mail() Function Stopped Working
I have a dedicated that suddenly stop php mail() function to work. Very strange because if I run php script with mail() function as root on command line all working fine. But If I run php script with mail() function in my browser so not work. Seems that only ROOT can run mail() function.
View Replies!
View Related
PHP Mail() Function Not Working With Lighttpd
I recently started using lighttpd + with PHP using Fast-CGI on a server hosting 14 blogs powered by WordPress, the server works great and this change reduced server load in about 50% which is nice for us, considering some of our blogs have a very high visitor traffic. Our only problem so far is that since we switched to lighttpd the PHP's mail() function is just not working. I have compiled and re-compiled PHP and Lighttpd without any effects. I have a test site still working with Apache and PHP scripts can send mail without problems. I've searched forums and Google for some kind of answer but none whatsoever maybe someone can give me pointers on how to solve this. Thanks a lot!! Server details: Lighttpd version: 1.4.15 PHP version: 4.4.4 Kernel: 2.6.9-42.0.3.ELsmp Server has cPanel/WHM installed PHP configure options: --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-xmlrpc --with-zlib --with-kerberos --with-imap-ssl --enable-fastcgi --enable-force-redirect
View Replies!
View Related
Setting Up PHP Mail() Function On New Server
how to set up the mail () function in my PHP.ini on a Linux server. Is there a generic path that I need to use in order to allow the mail function to work in the scripts? We do have a mail server set up, the address of which being "mail.companyname.com" ... do I need to insert that into the ini file somwhere instead?
View Replies!
View Related
How To Allow PHP.ini
how I can allow customers to place a PHP.ini in certain directories to override some basic settings like "upload_max_filesize" and what not. I have seen this done before but not sure how to get it working.
View Replies!
View Related
Php.ini
I am unable to find php.ini on my server. [root@sml101 ~]# whereis php.ini php: /usr/bin/php /etc/php.ini /etc/php.d [root@sml101 ~]# cat /etc/php.ini memory_limit = "32M" include_path = "".:"" short_open_tag = "On" file_uploads = "On" safe_mode = "Off" [root@sml101 ~]# But in above php.ini file there is nothing to do, i want to change register_global on but php.ini seems to be missing or hidden. I have taken php info function on a domain and it is showing following path: Configuration File (php.ini) Path /etc/php.ini
View Replies!
View Related
Configure Webserver So That The Php Scripts To Be Able To Use The Mail() Function
I just purchased a vps from rapidswitch, installed lamp, webmin, etc. All is working fine, with one exception. I can't send mail via mail() function. I have set the MX so that my email addresses are handled by google for domains so i can send and receive mails without problems. What i cant do, is for example to install a cms and make it send emails for the new registered users, etc. I have installed postfix via yum, and i've tried to configure it.. but i kind of give up after a few hours of trying. Someone could point me to the right direction on how to configure postfix for just this ? to be able to send mails via php. I don't care if it's postfix, qmail, etc.
View Replies!
View Related
Allow Custom Php.ini
I would like to know how to allow customers to use their own php.ini file. I have had hosts in the past that allowed you to use a custom php.ini file so long as you put it in every directory that you would need to use it. I was just trying to figure out how this is done as I am new to all of this and trying to learn.
View Replies!
View Related
PHP.ini Override
i use Cpanel/WHM , how can override php settings when php run az CGI ,when i put php.ini in root of any website the setting didn't override main php.ini settings.
View Replies!
View Related
How To Custom Php.ini
I'm using CentOS 5, Cpanel/WHM with php as cgi, when i try to put a php.ini file to to custom php for one account and it overwrite main setting on our server, someone use this bug to run c99 and try local attack other account, i've try fix this problem by edit /opt/suphp/etc/suphp.conf and set phprc_paths to /usr/local/lib/. But when i do this, php.ini in my custom account doesnt work any more... How can i custom php for one account and it not effect to main setting to prevent local attack?
View Replies!
View Related
Local Php.ini
I run multiple domains/sites on my linux server. I know there is a php.ini files that comes with the php installation package. But I have heard that there is a way to create a local php.ini file for each domain. Does anyone knows how to create local php.ini files for each domain. Is there a special setting i need to do to make it run?
View Replies!
View Related
Php.ini Being Truncated
Whenever I edit the /etc/php.ini file and change something, (like Off to On, or vice versa), it always becomes truncated, going from approximately 38kb to about 3kB. Almost everything gets erased. Would anyone know how this could be caused, or more importantly, how it can be fixed? I have a Linux CentOS 4.4 VPS with Virtuozzo.
View Replies!
View Related
Customised Php.ini
There is a shared server running PHPSuexec, and we need to change some php settings, and therefore doing that in .htaccess is not possible. We copied php.ini from /usr/local/lib/, made a modification and placed it in the web root path. I thought that any settings that have been changed would 'propagate' throughout the rest of the website (i.e. all paths underneath the web root, in the heirarchy), but unfortunately, we have found out that this is not the case. The settings that were modified, were only reflected in the web root path. Is there some method to ensure that the php modifications are reflected throughout the entire website ? We don't really want to have to place a copy of the entire (modified) php.ini in every path.
View Replies!
View Related
Suhosin And Php.ini
i have a dedicated server and i have installed suhosin through els well els never asked me for configurations or anything ,, it just installed it any way i'm trying to install AWBS on my server ,, AWBS needs safe_mode to be off so i went (pico /usr/local/lib/php.ini) all the lines were commented suhosin added this to every line at the begining PHP Code: ;suhosin.version=0.9.20 so everyline became commented any way i was trying to turn off the safe mode so i searched for it and replaced On with Off but the changes didn't take effect (locate suhosin) found bunch of folders and suhosin.so files that i couldn't manage is installing this extension ,, replaces the php.ini effect with another one ??? how can i configure php.ini to turn off the safe mode and also disable some functions while suhosin is there + how to remove suhosin without losing any data which command shall i use
View Replies!
View Related
Change Php.ini
I have a problem that am not able to connect with mssql_connect() function to MSSql server. Error is: undefined function mssql_connect(). On local this problem is get solved by uncomment extension=mssql_php.dll and extension=mssql_pdo_php.dll line by removing ";" in front of it. ::But how do i same on the online server?. ::If possible with coding or is thr any other way to do this plz let me know? ::If thr is a way to change .htaccess file to make this change or any better solution with .htaccess.. ::If thr ia a way to change the path for php.ini and we put our php.ini file in other folder and access that rather than php.ini on server.
View Replies!
View Related
Custom Php.ini
I have a reseller account on a server, and I have a client who needs to used a custom php.ini file to set the session.save_path variable. He has created this file and placed in the public_html folder, but this path still comes up as 'No Value' and the Configuration File Path still reads '/usr/local/Zend/etc/php.ini '. What do I need to do to get this site to read from the correct php.ini file? I tried setting this in the .htaccess file, to no avail.
View Replies!
View Related
Php.ini On Ubuntu Is Confusing Me
I am all too familiar with php on my win box but now am working on Linux. the extension_dir is commented out (??) however CURL does work but there is nothing about CURL in php.ini. I cant find any php.so files. Also the php.ini file lives in /etc/php5/apache2 Does this look like a standard install? Where do the .so files live? Ultimatly I want to install Turck MMCache which requires some extensions and when ever I try to do phpize there is the error message Cannot find config.m4 (google is not helping solve the problem) apt-get install m4 says I have the latest version. phpize is a shortcut in usr/bin that points to etc/alternatives/phpize which in turn is a shortcut to usr/bin/phpize5
View Replies!
View Related
CPanel Php.ini Override
I am setting a dedicated server for a mate with cPanel/WHM 11. He says he wants a custom php.ini file such that you can override the settings when you upload a php.ini file in /home/site/public_html/ how to allow this in the global settings?
View Replies!
View Related
Php.ini Error Handling
If I have a php page with no errors, everything works fine. If I remove a semicolon so it should give me an error, it displays nothing but a white page... Also, there is no error_log created. php.ini error config: Code: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; error_reporting is a bit-field. Or each number up to get desired error ; reporting level ; E_ALL - All errors and warnings ; E_ERROR - fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) ; E_PARSE - compile-time parse errors ; E_NOTICE - run-time notices (these are warnings which often result ; from a bug in your code, but it's possible that it was ; intentional (e.g., using an uninitialized variable and ; relying on the fact it's automatically initialized to an ; empty string) ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's ; initial startup ; E_COMPILE_ERROR - fatal compile-time errors ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) ; E_USER_ERROR - user-generated error message ; E_USER_WARNING - user-generated warning message ; E_USER_NOTICE - user-generated notice message ; ; Examples: ; ; - Show all errors, except for notices ; ;error_reporting = "E_ALL" ; ; - Show only errors ; ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; ; - Show all errors except for notices ; error_reporting = E_ALL & ~E_NOTICE ; Print out errors (as a part of the output). For production web sites, ; you're strongly encouraged to turn this feature off, and use error logging ; instead (see below). Keeping display_errors enabled on a production web site ; may reveal security information to end users, such as file paths on your Web ; server, your database schema or other information. display_errors = On ; Even when display_errors is on, errors that occur during PHP's startup ; sequence are not displayed. It's strongly recommended to keep ; display_startup_errors off, except for when debugging. display_startup_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below)) ; As stated above, you're strongly advised to use error logging in place of ; error displaying on production web sites. log_errors = On ; Set maximum length of log_errors. In error_log information about the source is ; added. The default is 1024 and 0 allows to not apply any maximum length at all. ;log_errors = On; ; Do not log repeated messages. Repeated errors must occur in same file on same ; line until ignore_repeated_source is set true. ignore_repeated_errors = Off ; Ignore source of message when ignoring repeated messages. When this setting ; is On you will not log errors with repeated messages from different files or ; sourcelines. ignore_repeated_source = Off ; If this parameter is set to Off, then memory leaks will not be shown (on ; stdout or in the log). This has only effect in a debug compile, and if ; error reporting includes E_WARNING in the allowed list report_memleaks = On ; Store the last error/warning message in $php_errormsg (boolean). track_errors = Off ; Disable the inclusion of HTML tags in error messages. ;html_errors = Off ; If html_errors is set On PHP produces clickable error messages that direct ; to a page describing the error or function causing the error in detail. ; You can download a copy of the PHP manual from http://www.php.net/docs.php ; and change docref_root to the base URL of your local copy including the ; leading '/'. You must also specify the file extension being used including ; the dot. ;docref_root = "/phpmanual/" ;docref_ext = .html ; String to output before an error message. ;error_prepend_string = "<font color=ff0000>" ; String to output after an error message. ;error_append_string = "</font>" ; Log errors to specified file. error_log = "error_log" ; Log errors to syslog (Event Log on NT, not valid in Windows 95). ;error_log = error_log;
View Replies!
View Related
About Secure Php.ini Directories
how can i secure the following options in php with whm box this is my php.ini settings Code: open_basedir = /home:/tmp include_path = ".:/usr/lib/php:/usr/local/lib/php:/usr/lib/php/extensions:/usr/lib/php/extensions/no-debug-non-zts-20020429:"; safe_mode_gid = Off safe_mode_include_dir = safe_mode_exec_dir = i want no one can access other user (User Bypass) with php shell i am running whm with apache 1.3.39 and php 4.4.7 phpsuexec how can i secure these options
View Replies!
View Related
Extension_dir Setting In Php.ini
I have just installed a php download script from rwscripts.com. My web host is netfirms, and I've set it to PHP4 (same as the php script I got). However, after the installation was completed, I'm getting this error messege. "extension_dir does not exists /usr/local/nf/lib/extensions/no-debug-non-zts-20020429" I've found this from rwscript's FAQ: "extension_dir does not exists /usr/lib/php/extensions/no-debug-non-zts-20020429 The extension_dir setting in php.ini should point to the real directory for SourceGuardian loaders to work (as well as any other dynamic PHP extension). This may be any directory on server. Common setting is /usr/local/lib/php/extensions. Please contact your server provider about this issue. They need to create this directory and alter the setting in php.ini and then restart the webserver. " But I don't really understand. I've contacted Netfirms, but they never replied me. Where can I change the php.ini config? Is there any better webhosting who supports php,
View Replies!
View Related
Unable To Make Changes To Php.ini
i'm trying to configure PHP, as I really need to turn magic quotes off and raise the memory limit. i don't want to use .htaccess - too many sites I got plesk 8.2.1, php5.1 well, to make it short, I ran 'phpinfo()' to see where php.ini was: etc/php.ini I change that, restart httpd, nothing happens. restart the server, nothing still. my changes are not applied when I run 'phpinfo()' again. i try 'locate php.ini' from the terminal, there are a few! /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/conf/php.ini.def /usr/local/sitebuilder/php.ini /etc/php.ini /etc/php.ini. /etc/php.ini.saved_by_psa /etc/php.ini.rpmsave ... plus some in the opt folder (that should be just the cache, uh?) the problem is that I tried to open all of them, to see where the hell php was getting the settings from, but none of them seem to reflect php's settings. meaning, I don't know what file I can use to configure PHP. all of them, for instance, say 'memory_limit: 32M', but php is set at 8M, and phpinfo() tells me memory_limit 8M. any idea why this might be happening? does Plesk have some tool to configure PHP that makes PHP ignore my changes?
View Replies!
View Related
How To Disallow Php.ini Overriding
if i enabled phpsuexec the client can remove all disable_functions and every thing if he just uploaded php.ini to his public_html folder i thought about this: ln -s /usr/local/lib/php.ini /home/user/public_html/php.ini and it work perfectly but if the user triad to make edit via FTP to the file he will see the file content but can't edit i triad to chmod to 0 but it will stop PHP is there any solution to stop the user see the content for the file?
View Replies!
View Related
Php.ini Store Sessions In Database
Is there a way in the php.ini file to force all sessions to be stored in a database? For example, in ColdFusion you can configure sessions to be stored in a db. Can you do this in PHP? Thereby forcing all sessions no matter what the customer specifies to be stored in a db.
View Replies!
View Related
Php.ini And .htaccess File Permissions
I'm on a shared FreeBSD server, running Apache with Drupal, and vBulletin. I had to create a local php.ini file in my public_html folder for Drupal, and another in my forum folder for vBulletin. Now my question is, what should I set the permissions of these files to? Also, what should I set .htaccess permissions to as well? I'd like to keep them invisible to the public. But, I don't want any problems with Drupal, or vBulletin ether. I'm used to using Linux and I know how permissions work on a desktop. I just don't know what they do when used on a server. I'm guessing 640, but I'd like to make sure before I change anything.
View Replies!
View Related
Changing Settings For Php.ini On IIS
I have IIS on my computer and I want to start using a php driven forum (SMF) on my web site. Before I upload the files I need to check the following settings are on: the engine directive must be On. the magic_quotes_sybase directive must be set to Off. the session.save_path directive must be set to a valid directory, or empty. the file_uploads directive must be On. the upload_tmp_dir must be set to a valid directory, or empty. I cant find anywhere within IIS where these directions maybe found. Can anyone point me in the right direction?
View Replies!
View Related
Php.ini - Editing It Messed My Whole Server Up
I have changed one value in /etc/php.ini safe_mode = On then restarted apache. Now, when I try to access any mysql based sites, like forum or gallery - I get a blank page. I went back and changed safe_mode back to 'Off'. Restarted the server - but I am still unable to load any pages. Running CentOS.
View Replies!
View Related
Accessing PHP.ini On A Dedicated Server
I'm using a dedicated server for the first time and I want to access the PHP.ini file so that I can set up the mail() function and also enable error reporting. However, all access has to be done remotely through a KVM console and I'm unsure what I need to do in order to get to the file that I want.
View Replies!
View Related
I Want To Use Individual Php.ini For 1 Of My Website In Hsphere
I have hsphere working on my server. Now I need to install phpacution. After the installation of php auction I am getting this message Extension dir /hsphere/shared/apache/libexec/php4ext/ You must to place ixed files at/hsphere/shared/apache/libexec/php4ext// I tried to copy php.ini in the root of my website but it has take down all of my websites. So will youlet me know how can I get php.ini working for 1 on my website from its root?
View Replies!
View Related
How To Edit Php.ini? Dedicated Server
linux hosting. Basically i want to edit php.ini inside my dedicated box to include Code: disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, base64_decode, base64_encodem, proc_terminate but how can i edit php.ini? I know where my php.ini and I have root access.
View Replies!
View Related
Is It Secure To Let The Customer Use Thire Own Php.ini
while i'm running php as a cgi moudle and running SuExec , is it secure to let the customer use thire own php.ini file , for example /home/someuser/public_html/php.ini ?? while putting in mind that using thire own php.ini will let them to change the disable_function , so if there is any disable_functions in the original php.ini they can remove it for thire website. So is that action is secure for the server?
View Replies!
View Related
Session Errors - Php.ini Related
I have a Cpanel box, in WHM I used the "PHP Configuration Editor" and changed the php execution time (minor change). After clicking save I now get the following error on any php using sessions: Warning: session_start() [function.session-start]: open(/tmp /sess_1d374c43a0f726cd43776f9f92485bec, O_RDWR) failed: No such file or directory (2) in /home/continou/public_html/control/index.php on line 4 One thing I noticed it did was turn on PHPSuexec which generally causes problems for me. I turned that off and the error response changed slightly (to above) but the problem is not solved. I tried rebooting the server. /tmp does exist, I am now rebuilding apache in hopes that corrects the problem.
View Replies!
View Related
|