Services

The following section provides a complete description of each service along with instructions on how to run and stop the services.

Java Bridge

Description

Integrates Java libraries and classes within PHP applications.

To Enable

Run the setup tool and select option number, 2 "Setup Java Bridge" and input the required data.

To Disable

  • In Unix, Linux and Mac: Execute: /usr/local/Zend/Platform/bin/javamw.rc stop.

  • In i5/OS Execute GO ZENDPLAT/ZPMENU option 2 and then option 3.

  • In Windows: Go to Services (Start | Settings | Control Panel | Administrative Tools | Services) and stop the service (double-click on the service name and in the "Startup Type" field select the option "Disabled') "Zend Platform Java Bridge", you can also run one of these commands in the command line (Start | Run, enter CMD in the text area and press enter to open the command line):

net stop ZPJava

or

net stop "Zend Platform Java Bridge"

*Quotes are mandatory.

 

To completely disable the Java Bridge, remove the directive zend_extension_manager.java_bridge from the php.ini to prevent loading a redundant shared object (in UNIX, linux i5/OC and Mac .so in Windows .dll).

Resulting Outcome

If stopped, integration with Java libraries and classes within PHP applications will be not be available.

Session Clustering

Description

Session Clustering increases PHP application scalability.

To Enable

Run the setup tool and select option number, 1 "Setup Session Clustering"

To Disable

  • In Unix, Linux and Mac: Execute: /usr/local/Zend/Platform/bin/scd.sh stop and the directives zend_extension_manager.mod_cluster and session.save_handler=cluster from the php.ini to prevent loading a redundant shared object (in Unix .so in Windows .dll).

  • In Windows: Go to Services (Start | Settings | Control Panel | Administrative Tools | Services) and stop the service (double-click on the service name and in the "Startup Type" field select the option "Disabled') "Zend Platform Session Clustering", you can also run one of these commands in the command line (Start | Run, enter CMD in the text area and press enter to open the command line):

net stop ZPSC

or

net stop "Zend Platform Session Clustering"

*Quotes are mandatory.

 

To completely disable Session Clustering, remove the directives zend_extension_manager.mod_cluster and session.save_handler=cluster from the php.ini to prevent loading a redundant shared object (in Unix .so in Windows .dll).

Resulting Outcome

If stopped, the ability to make sessions accessible to all cluster members will not be available.

Job Queues

Description

Job Queues reroutes and delays the execution of processes and to improve response times during interactive Web sessions.

To Enable

Run the setup tool and select option number, 3 "Setup Job Queues".

To Disable

  • In Unix, Linux and Mac: Execute: /usr/local/Zend/Platform/bin/jqd.sh stop and remove the directive zend_extension_manager.jobqueue_client from the php.ini to prevent loading a redundant SO.

  • In Windows: Go to Services (Start | Settings | Control Panel | Administrative Tools | Services) and stop the service (double-click on the service name and in the "Startup Type" field select the option "Disabled') "Zend Platform Job Queues", you can also run one of these commands in the command line (Start | Run, enter CMD in the text area and press enter to open the command line):

net stop ZPJobQ

or

net stop "Zend Platform Job Queue"

*Quotes are mandatory.

 

To completely disable Job Queues, remove the directive zend_extension_manager.jobqueue_client from the php.ini to prevent loading a redundant shared object (in Unix .so in Windows .dll).

Resulting Outcome

If stopped, the ability to reroute and delay execution of jobs will be disabled (jobs that are already running will not be stopped).

Note:

To ensure the Java Bridge, Session Clustering and Job Queue services do not start again next time the server is booted, erase the following:
1) Open /usr/local/Zend/Platform /etc/rc.d/, and remove these symbolic links:
- S10mysql.sh -> /usr/local/Zend/Platform/MySQL/bin/mysql.sh
- S20jqd.sh -> /usr/local/Zend/Platform/bin/jqd.sh
- S30scd.sh -> /usr/local/Zend/Platform/bin/scd.sh
- S40javamw.rc ->  /usr/local/Zend/Platform/bin/javamw.rc
*Not all will appear depending on your configuration preferences.
2) Delete platform_init.sh.
In Windows, open the Service Manager (Start | Settings | Control Panel | Administrative Tools | Services and set them to Disabled.
When reactivating these services this information will be restored automatically.

Cache Cleaner

Description

Cleans old files from the cache directory and maintains cache size below the limits. It runs as a stand-alone background program (daemon), it may be signaled by the user manually, or from the crontab, or from httpd when the cleanup is needed.

To Enable

Automatically configured during installation

To Disable

  • In Unix, Linux Mac: Run the command:

#crontab -u $apache_user -e as root and remove the following line:

"r;*/10 * * * *  /usr/local/Zend/Platform/bin/cache_clean -l /usr/local/Zend/Platform/etc/zend.ini &>/dev/null"

  • In i5/OS Execute GO ZENDPLAT/ZPMENU option 2 and then option 5.

  • In Windows: Go to Services (Start | Settings | Control Panel | Administrative Tools | Services) and stop the service (double-click on the service name and in the "Startup Type" field select the option "Disabled') "Zend Platform Cache Cleaner", you can also run one of these commands in the command line (Start | Run, enter CMD in the text area and press enter to open the command line):

net stop ZPCache

or

net stop "Zend Platform Cache Cleaner"

*Quotes are mandatory.

Resulting Outcome

This stand-alone background program cleans the cache directory from old files and maintains cache size below the limits. Deactivating it should only be done in the event you choose not to use Platform's caching abilities.

Collector Center

Description

Collects PHP events for PHP Intelligence.

To Enable

Automatically configured during central installation. In Windows the node collector service (that is part of the four collector services) is also installed in the Node installation.

To Disable

  • In Unix, Linux and Mac: Run the command:

#crontab -u $apache_user -e as root and remove the following line:

*/2 * * * *  /usr/local/Zend/Platform/bin/collector_center /usr/local/Zend/Platform/etc -D

  • In i5/OS Execute GO ZENDPLAT/ZPMENU option 2 and then option 2.

  • In Windows: Go to Services (Start | Settings | Control Panel | Administrative Tools | Services) and stop the services (double-click on the service name and in the "Startup Type" field select the option "Disabled') "Zend Platform Action", "Zend Platform Pinger" "Zend Platform Collector Center" "Zend Platform Node Collector" you can also run one of these commands in the command line (Start | Run, enter CMD in the text area and press enter to open the command line):

net stop ZPAction

net stop ZPPinger

net stop ZPCollector

net stop ZPNodeCollector

 

or

net stop ”r;Zend Platform Action”

net stop ”r;Zend Platform Pinger”

net stop ”r;Zend Platform Collector Center”

net stop ”r;Zend Platform Node Collector”

*Quotes are mandatory.

Resulting Outcome

If deactivated, PHP events will not be captured. This should be done in the event you do not wish to utilize PHP Intelligence's monitoring abilities.

 

 

Related Links

Related Links:
Zend Platform Built-In Services and Extensions

Setup Tool

Extensions