Knowledgebase
Portal Home > Knowledgebase > Apache > how do I enable register_globals for one of my scripts?
how do I enable register_globals for one of my scripts?
| If you install modernbill, or any other scripts that require php_globals to be on, you can use the following setup: PLEASE NOTE: register_globals=on could be a security risk. If possible, try not to use it. Your website could be compromised, or defached. register_globals have been disabled on the servers for this reason. In the folder where you need register_globals to be enabled, do the following: - Open your cPanel and logon with your cPanel account.
- Click on File Manager, wich will open a new window.
- Click on the icon next to "www" OR "public_html" to get into the root of your website. If you need register_globals enabled on your main website, continue to step 4.
- If you need to enable register_globals enabled on a subdomain, or folder, click on the icon next to the name of the subdomain, or folder
- Click on "Create New File", which will create a text box on the top right hand corder, type in "php.ini", choose "Text Document" from the drop down & click on "Create"
- Now, back to the list of files, locate php.ini and click the file name, and then on "Edit File" in the top right hand corner. This will open the file in a new window.
- Paste the following code into the file, and save it
error_reporting = 2039 magic_quotes_gpc = On register_globals = On [Zend] zend_optimizer.optimization_level=15 zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2_6_2 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2_6_2 zend_optimizer.version=2.6.2 zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so - Once done, register_globals will be enabled for this folder
|
Add to Favourites
Print this Article
|
Also Read
Powered by WHMCompleteSolution