0

I want to use the php configuration settings of my localhost on my server. How can i do that?

3
  • Can you elaborate a bit? You mean, you want to configure PHP on your server exactly the same way it's configured on your local machine? What kind of server do you have, and what exactly do you want to configure? Commented Feb 23, 2011 at 7:45
  • Does your server allows you to change the PHP configuration? Commented Feb 23, 2011 at 7:49
  • its apache and i don't know i am allowed or not? Commented Feb 23, 2011 at 7:55

2 Answers 2

3

Usually you do it the other way around. You configure your local machine to resemble the server. That because the server usually are the production machines and have other limitations in terms of security. You can take a look at phpinfo() output and compile in the server exactly the same things.

Sign up to request clarification or add additional context in comments.

2 Comments

I cannot view it. Its disabled for security reasons
you can check it maybe in the command line or using get_loaded_extensions no.php.net/manual/en/function.get-loaded-extensions.php
0

You can compare the current settings by looking at the current output of phpinfo() or, alternatively, var_dump(ini_get_all(null, false)).

Then, depending on the server you're using, you will add the values to change in a php.ini, or .htaccess, that you upload to the webroot folder of the server. (The production server may limit the capabilities, this is very common for example for the maximum memory directive.)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.