Jump to content

Custom PHP5 Install!, Installing CUSTOM PHP


Recommended Posts

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!

Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

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.]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.