473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Symantec Using its own php.ini & IIS using its own.

Chrisjc
375 256MB
Good afternoon,
I am seeking some php configuration help. Here is the run down I am running Windows server 2003 and IIS V6.0 I have never had issues before until now. I have Symantec Antivirus 11.0 Manager, it controls all the Symantec clients in the company.

Now it uses a web interface for all of its commands and settings which is called (SEPM) This reporting unit uses php, Symantec by default is loading its php.ini from “C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Php\php.ini”

Which is fine, however after I installed php 5.2.5 Symantec try’s to read the new php.ini located at “C:\Program Files\PHP\php.ini” When I need it to be reading from “C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Php\php.ini” Because it is a custom php.ini for Symantec and the default php will not work. And I need the default php.ini for IIS websites.

So my question over all is, how can I run two php.ini files and make Symantec stop reading the default php location. Now I did contact Symantec support they gave me an article that tells me how to fix the registry to point to the correct one however this isn’t working.

Here is what the article says. THIS DIDN’T WORK unless I did it wrong? I did the regedit part.

Question/Issue:
How do you specify which php.ini file the Symantec Endpoint Protection Manager website uses?


Symptoms:
• Multiple PHP versions are installed to the same web server.
• A non-default php.ini file is being used to set environment variables for the SEPM Reporting website.




Solution:
PHP (PHP Hypertext Processor) will check several locations for instructions on how to load php.ini in a specific order. Depending on how many other websites are being hosted on the SEPM server, and what versions of PHP (PHP Hypertext Processor) they use, some of these methods may interfere with the working of other PHP installations on the server. The best method to use will vary depending on idividual scenarios.

How PHP determines where to load php.ini from (this method is used for versions 5.2 and newer):
1. The -c command-line option
2. The PHPRC environment variable
3. Version specific registry value (ie HKEY_LOCAL_MACHINE\Software\PHP\5.2.5\IniFilePath if the version of PHP used is 5.2.5)
4. Version independent registry value
5. Current working directory (ie C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Php for a default installation of SEPM)
6. The Windows directory (ie C:\Windows by default on Windows 2003)

Configuring where php.ini is loaded from using the command-line:
1. Install and configure the FastCGI plugin for IIS:
1. The FastCGI plugin and instructions on installing it are included in CD2 of the Symantec Endpoint Protection (SEP) installation CD under the TOOL\NOSUPPORT\FASTCGI folder.
2. Follow the installation instructions contained in FASTCGI_SETUP_README.PDF contained in this folder.
2. After the FastCGI plugin is successfully installed, modify the fcgiext.ini:
1. Open My Computer and browse to the inetsrv directory (C:\Windows\System32\inetsrv by default).
2. Open fcgiext.ini with a text editor.
3. Find the php related settings under the [PHP] header.
4. Beneath the line beginning with ExePath, add the following line:
• Arguments=-c "<path to php.ini>"
• The default location for this file is C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Php\php.ini
5. Click Start->Run and enter "iisreset.exe /restart". Hit Enter.

Configuring where php.ini is loaded from using the registry:

This method can affect how other versions of PHP load the php.ini on this system. If other versions of PHP are installed on this system, please use the version-specific method. Please make sure to back up the registry before making any changes

Version idepended method:
1. Click Start->Run and type regedit. Hit Enter.
2. In the registry editor, expand My Computer, then HKEY_LOCAL_MACHINE\Software\
3. If the sub-key PHP does not exist
1. Create it by right-clicking on the right-hand pane and choosing New->Key.
2. Name the new registry key PHP.
4. If the value IniFilePath does not exist
1. Create it by right-clicking on the right-hand pane and choosing New->String Value.
2. Name the new registry value IniFilePath.
5. Modify the IniFilePath value and add the file path to the SEPM Php.ini file (ie C:\program files\Symantec\Symantec Endpoint Protection Manager\PHP\Php.ini).
6. Close the registry editor
7. Click Start->Run and enter "iisreset.exe /restart". Hit Enter.

Version dependent method:
1. Browse to the PHP sub-folder inside the SEPM folder (C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Php by default).
2. Right-click on php-cgi.exe and choose Properties.
3. Select the Version tab. Note the first three digits of the 4-digit File version number.
4. Click Start->Run and type regedit. Hit Enter.
5. In the registry editor, expand My Computer, then HKEY_LOCAL_MACHINE\Software\
6. If the sub-key PHP does not exist
1. Create it by right-clicking on the right-hand pane and choosing New->Key.
2. Name the new registry key PHP.
7. Right-click in the right-hand pane and choose New->Key.
8. Name the new registry key to correspond with the first 3 digits of the php-cgi.exe File version (ie 5.2.5 for the 5.2.5.5 version of PHP that ships with SEPM 11.0.2000).
9. Right-click on the right-hand pane and choosing New->String Value.
10. Name the new registry value IniFilePath.
11. Modify the IniFilePath value and add the file path to the SEPM Php.ini file (ie C:\program files\Symantec\Symantec Endpoint Protection Manager\PHP\Php.ini).
12. Close the registry editor
13. Click Start->Run and enter "iisreset.exe /restart". Hit Enter.

Any ideas?

Thank you,

Chris
Jan 5 '09 #1
5 4595
Chrisjc
375 256MB
So I am going to take it that no one has ever used TWO php.ini files?
Jan 7 '09 #2
r035198x
13,262 8TB
My understanding is that since you have one PHP engine running, it will start using only one php.ini file.
Jan 8 '09 #3
Chrisjc
375 256MB
Correct, but is there anyway to make one application use a php.ini in another location... and then a 2nd php.ini be used by everything else...

Or are you stating that only one will work that you know of?

Thank you,

Chris
Jan 8 '09 #4
r035198x
13,262 8TB
If my understanding (stated above) is correct then I do not see how that is possible. The engine reads the php.ini at start up and uses it's settings for its subsequent execution. Using a different php.ini would require the engine to be reloaded (appserver to be restarted). Perhaps there is a way of starting multiple differently configured instances of the engine but I don't know about that one.
Jan 9 '09 #5
Chrisjc
375 256MB
hmm well I am just going to pull another server out of deep sleep and make it Mr. IIS Server. & let Mr. Symantec be on its own haha

Thanks for your help.
Jan 9 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Bill | last post by:
For my personal use I am accessing a railway timetable page, parsing its contents and then sending brief relevant information as the subject line of an email to be read on a mobile phone. The...
6
by: George R. Gonzalez | last post by:
Ok, I've wasted two days trying to figure this out. I'm stuck using Symantec C++ 7.5 on this one project. I'd port it over to something more recent, but time is pressing... I need to move some...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
23
by: Bjorn | last post by:
Hi. Every time i post data in a form the contents are being checked for validity. When i click the back-button, all data is gone and i have to retype it. It's obvious that only a few or none of...
3
by: rb | last post by:
Developing web site like I've been doing it so many times before and all of the sudden - literaly - symantec jumps in start complaing about viruses found in temporary dll's created in temp .NET...
0
by: deba | last post by:
Hi i have 1.5 years experience in C++ and VC++.I have got a call from symantec india.Can u guys suggest me what they ask in their interview.More u suggest it will be more helpful to me. Thanx in...
13
by: mark4asp | last post by:
When I write a url in xhtml, with an unencoded ampersand, like this: http://localhost:2063/Client/ViewReport.aspx?Ref=58&Type=SUMMARY the xhtml sytax checker correctly indicates an error,...
12
by: neovantage | last post by:
Hi, I am working on an image to process it with different ways/options given in the page. My page name is cart and it has an uploaded image having thumbnail view. When i click on that thumbnail...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.