[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Activating php extensions

Posted on 2003-11-01
Medium Priority
Last Modified: 2008-02-01
Is it possible to activate the php extensions php_curl.dll and php_gd.dll by appending .htaccess or another local file?

I do not have access to /etc/php.ini and cannot uncomment the lines required to activate php extensions I require.

There lines are:

I know it's possible to override values set in /etc/php.ini by adding them to a the local file .htaccess.

php_value magic_quotes_gpc 0

As far as I understand, the php server needs to be restarted in order for the extensions to be loaded. Maybe somebody out there knows a trick?

Red Hat Linux release 8.0 (Psyche)
Apache Version 1.3.28 (Unix)
PHP Version 4.3.2
Question by:Kosmok
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

heskyttberg earned 375 total points
ID: 9670168

This can only be done with certain values.
An extension must be loaded when php starts and in this case this is when Apache starts.
And the linse should not be .dll in a RedHat environment.

So if you want thoose extension you have to talk the server owner into activating them.


Expert Comment

ID: 9683025

You can try the following, but I never tested it:

At top of page write:

/* You might set the absolute path where the extension exsists, like /home/user/extension/my_ext.so */


Expert Comment

ID: 9684785

An extension cannot be loaded in this fashion, since it needs to restart the whole php engine in order to load an extension.
For info on settings to change in this manner see:


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question