jaysmyhero Posted October 27, 2008 Share Posted October 27, 2008 Hey I am Installing A script on my website and it calls for this > upload_max_filesize = 30mb > post_max_size = 30mb > register_globals = off (This setting is required) > display_errors = off > log_errors = off > magic_quotes_gpc = on > magic_quotes_runtime = off > max_execution_time = 9000 > max_input_time = 9000 > memory_limit = 100M > If php version is 5+ then register_long_arrays is required to be set to on. However mine has to stay like this cause that's that dram host allows they wont change it. > upload_max_filesize = 7mb > post_max_size = 8mb > register_globals = off (This setting is required) > display_errors = on > log_errors = off > magic_quotes_gpc = off > magic_quotes_runtime = off > max_execution_time = 30 > max_input_time = 60 > memory_limit = 90M > register_long_arrays = offdisplay_errors, I need custom PHP installed on my server can some one please do this. here are the directions. http://wiki.dreamhost.com/Installing_PHP5 I am not gd with it. And I don't know how to do it. I do not even know where to begin I would really appreciate it. Thanks in advance. Please PM me I asked them to do it they said they cant! Quote Link to comment Share on other sites More sharing options...
trq Posted October 27, 2008 Share Posted October 27, 2008 You posted the instructions yourself, how about following them? This isn't a 'can you do this for me?' board. Quote Link to comment Share on other sites More sharing options...
jaysmyhero Posted October 27, 2008 Author Share Posted October 27, 2008 And I don't know how to do it. I do not even know where to begin I would really appreciate it. Thanks in advance. I clearly understand that I just thought some one nice enough would be able to help out a poor guy... Instead of......? ??? Quote Link to comment Share on other sites More sharing options...
trq Posted October 27, 2008 Share Posted October 27, 2008 If you tell us where your stuck we will try and help. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted October 27, 2008 Share Posted October 27, 2008 Those are all core php setting. It is not necessary to build a custom version of php to change or enable them. If this is your own server (VPS, Dedicated), you would have the necessary access to the master php.ini to change these. If you are on a shared web server, you won't have the ability to install php anyway. If your host has enabled it, you can put php settings into a .htaccess file (when php is running as an Apache module) or in a local php.ini (when php is running as a CGI application.) Quote Link to comment Share on other sites More sharing options...
corbin Posted October 27, 2008 Share Posted October 27, 2008 Looks to me like you're on shared hosting, which like PMFaBiSmad said, you're out of luck in that case. Quote Link to comment Share on other sites More sharing options...
jaysmyhero Posted October 27, 2008 Author Share Posted October 27, 2008 Yeah. They said sorry we cant make those changes for u and then through the link at me to deal with. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted October 27, 2008 Share Posted October 27, 2008 Have you determined if you can or cannot put php settings in to a local php.ini (when php is running as a CGI application) or in a .htaccess file (when php is running as an Apache module)? Only a few of those settings will stop your script from working and if the script was written following current recommended settings, even those few settings won't matter. I have added comments on each setting [comment...] - > upload_max_filesize = 30mb [only limits upload size] > post_max_size = 30mb [only limits upload size] > register_globals = off (This setting is required) [matches your existing setting] > display_errors = off [causes errors to not be output to the browser. Your existing setting should actually be off because this allows hackers to feed your scripts unexpected data to trigger errors which exposes username and path information] > log_errors = off [matches your existing setting] > magic_quotes_gpc = on [should not be relied on because not all characters that can break a query are escaped and has been completely removed in php6] > magic_quotes_runtime = off [matches your existing setting] > max_execution_time = 9000 [why so long? This can be set in your script anyway] > max_input_time = 9000 [time allowed to parse POST/GET/FILE data. Should not matter in most cases.] > memory_limit = 100M [only a 10M difference with your existing setting and likely won't affect operation of the script] > If php version is 5+ then register_long_arrays is required to be set to on. [if your script is dependent on register_long_arrays, which have been removed in php6, it is time to go through the script and update variable names to current standards.] Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted October 28, 2008 Share Posted October 28, 2008 The following is from the dreamhost wiki/documentation http://wiki.dreamhost.com/PHP_Magic_Quotes - PHP5 has Magic Quotes turned OFF by default, though that setting can be changed for use on your domain by installing your own version of PHP5 or modifying your own copy of php.ini (for use with a local copy of Dreamhost's default PHP installation). I'm going to guess that you can change the settings (within limits) in your own php.ini for your account - http://wiki.dreamhost.com/PHP.ini Quote Link to comment Share on other sites More sharing options...
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.