PHPVM

Synopsis

This module acts as a facilitator for installing and as well as updating the php vm with the latest version. Let us see about the usage of this module and the possible ways to use this module in the upcoming topics.

Help Command

The help command guides the users regarding the purpose and as well as about the options that are included in the Phpvm module. It lists out the alternative parameters of Phpvm module. It also describes the syntax for installing the Phpvm module. The help command for Phpvm module is shown as below.

ptconfigure Phpvm help

The syntax for declaring the help command is not case sensitive which is an added advantage. The following screenshot visualize you about the help command under Phpvm.

kevell@corp:/# ptconfigure phpvm help

******************************


 This command allows you to update PHPVM.

 PHPVM, Phpvm, phpvm

       - install
       Installs the latest version of PHPVM
       example: ptconfigure phpvm install

------------------------------
End Help
******************************

Installation

The command used for installing the phpvm in the users machine is shown below:

ptconfigure phpvm install

After inputting the command above, the following process occurs as shown in the tabular format.

Parameters Alternative Parameter Options Comments
Install PHPVM? (Y/N) Instead of phpvm, we can use PHPVM, Phpvm also. Y(Yes) If the user wish to proceed the installation process they can input as Y.
Install PHPVM? (Y/N) Instead of phpvm, we can use PHPVM, Phpvm also. N(No) If the user wish to quit the installation process they can input as N.|

If the user proceeds the installation, during the process of installation is described in the below lists:

  • builds the dependency tree.
  • Reads the state information.
  • list outs the packages that are automatically installed.
  • list outs the new packages that are installing.
  • details regarding the number of files upgraded, newly installed, removed and not upgraded.
  • Reads the package lists and displays the list of package that are already installed.

The following screenshot pictorially depicts the above described process of installation.

kevell@corp:/# ptconfigure phpvm install

Install PHPVM? (Y/N)
Y
*******************************
*        Pharaoh Tools        *
*         PHPVM!        *
*******************************
Creating /tmp/ptconfigure-temp-script-45523327550.sh
chmod 755 /tmp/ptconfigure-temp-script-45523327550.sh 2>/dev/null
Changing /tmp/ptconfigure-temp-script-45523327550.sh Permissions
Executing /tmp/ptconfigure-temp-script-45523327550.sh
W: GPG error: http://packages.elasticsearch.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D27D666CD88E42B4
W: GPG error: http://packages.elasticsearch.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D27D666CD88E42B4
W: GPG error: http://packages.elasticsearch.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D27D666CD88E42B4
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free amd64 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free amd64 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free amd64 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free amd64 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free amd64 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free amd64 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free amd64 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free amd64 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free i386 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-i386_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free i386 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-i386_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free i386 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-i386_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free i386 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-i386_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free i386 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-i386_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free i386 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-i386_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free i386 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-i386_Packages)
W: Duplicate sources.list entry http://repos.zend.com/zend-server/6.1/deb/ server/non-free i386 Packages (/var/lib/apt/lists/repos.zend.com_zend-server_6.1_deb_dists_server_non-free_binary-i386_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 amd64 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-amd64_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 amd64 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-amd64_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 amd64 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-amd64_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 amd64 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-amd64_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 amd64 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-amd64_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 amd64 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-amd64_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 i386 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-i386_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 i386 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-i386_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 i386 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-i386_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 i386 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-i386_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 i386 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-i386_Packages)
W: Duplicate sources.list entry https://repo.varnish-cache.org/ubuntu/ precise/varnish-4.0 i386 Packages (/var/lib/apt/lists/repo.varnish-cache.org_ubuntu_dists_precise_varnish-4.0_binary-i386_Packages)
Hit https://repo.varnish-cache.org precise InRelease
Hit https://repo.varnish-cache.org precise/varnish-4.0 amd64 Packages
Hit https://repo.varnish-cache.org precise/varnish-4.0 i386 Packages
Get:1 https://repo.varnish-cache.org precise/varnish-4.0 Translation-en
Ign http://repos.zend.com server InRelease
Hit http://repos.zend.com server Release.gpg
Hit http://repos.zend.com server Release
Hit http://repos.zend.com server/non-free amd64 Packages
Hit http://repos.zend.com server/non-free i386 Packages
Ign http://repos.zend.com server/non-free Translation-en
Ign http://security.ubuntu.com trusty-security InRelease
Hit http://dl.hhvm.com trusty InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Ign http://in.archive.ubuntu.com trusty InRelease
Hit http://dl.hhvm.com trusty/main amd64 Packages
Ign http://pkg.jenkins-ci.org binary/ InRelease
Hit http://security.ubuntu.com trusty-security Release
Hit http://dl.hhvm.com trusty/main i386 Packages
Ign http://in.archive.ubuntu.com trusty-updates InRelease
Ign https://repo.varnish-cache.org precise/varnish-4.0 Translation-en
Hit http://security.ubuntu.com trusty-security/main Sources
Ign http://in.archive.ubuntu.com trusty-backports InRelease
Hit http://pkg.jenkins-ci.org binary/ Release.gpg
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://in.archive.ubuntu.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://in.archive.ubuntu.com trusty-updates Release.gpg
Hit http://pkg.jenkins-ci.org binary/ Release
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Hit http://in.archive.ubuntu.com trusty-backports Release.gpg
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Ign http://dl.hhvm.com trusty/main Translation-en
Hit http://in.archive.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://in.archive.ubuntu.com trusty-updates Release
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com trusty-backports Release
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://in.archive.ubuntu.com trusty/main Sources
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://pkg.jenkins-ci.org binary/ Packages
Hit http://in.archive.ubuntu.com trusty/restricted Sources
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://in.archive.ubuntu.com trusty/universe Sources
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://in.archive.ubuntu.com trusty/multiverse Sources
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://in.archive.ubuntu.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://in.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Ign http://archive.canonical.com trusty InRelease
Ign http://apt.newrelic.com newrelic InRelease
Hit http://in.archive.ubuntu.com trusty/universe amd64 Packages
Ign http://packages.elasticsearch.org stable InRelease
Ign http://ppa.launchpad.net trusty InRelease
Hit http://archive.canonical.com trusty Release.gpg
Hit http://apt.newrelic.com newrelic Release.gpg
Hit http://in.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Ign http://packages.elasticsearch.org stable InRelease
Hit http://archive.canonical.com trusty Release
Ign http://packages.dotdeb.org squeeze InRelease
Hit http://apt.newrelic.com newrelic Release
Hit http://in.archive.ubuntu.com trusty/main i386 Packages
Ign http://packages.elasticsearch.org stable InRelease
Hit http://archive.canonical.com trusty/partner Sources
Hit http://packages.dotdeb.org squeeze Release.gpg
Hit http://apt.newrelic.com newrelic/non-free amd64 Packages
Hit http://in.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://archive.canonical.com trusty/partner amd64 Packages
Get:2 http://packages.elasticsearch.org stable Release.gpg [490 B]
Hit http://apt.newrelic.com newrelic/non-free i386 Packages
Hit http://packages.dotdeb.org squeeze Release
Hit http://archive.canonical.com trusty/partner i386 Packages
Get:3 http://packages.elasticsearch.org stable Release.gpg [490 B]
Ign http://wireframesketcher.com  InRelease
Hit http://packages.dotdeb.org squeeze/all amd64 Packages
Hit http://in.archive.ubuntu.com trusty/universe i386 Packages
Get:4 http://packages.elasticsearch.org stable Release.gpg [490 B]
Hit http://packages.dotdeb.org squeeze/all i386 Packages
Ign http://pkg.jenkins-ci.org binary/ Translation-en
Hit http://in.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://packages.elasticsearch.org stable Release
Ign http://packages.elasticsearch.org stable Release
Ign http://archive.canonical.com trusty/partner Translation-en
Hit http://in.archive.ubuntu.com trusty/main Translation-en
Hit http://packages.elasticsearch.org stable Release
Ign http://packages.elasticsearch.org stable Release
Hit http://ppa.launchpad.net trusty Release.gpg
Ign http://apt.newrelic.com newrelic/non-free Translation-en
Hit http://in.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://packages.elasticsearch.org stable Release
Ign http://packages.elasticsearch.org stable Release
Hit http://in.archive.ubuntu.com trusty/restricted Translation-en
Ign http://packages.elasticsearch.org stable/main amd64 Packages/DiffIndex
Hit http://wireframesketcher.com  Release.gpg
Hit http://in.archive.ubuntu.com trusty/universe Translation-en
Ign http://packages.elasticsearch.org stable/main i386 Packages/DiffIndex
Hit http://in.archive.ubuntu.com trusty-updates/main Sources
Hit http://in.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://ppa.launchpad.net trusty Release
Ign http://packages.elasticsearch.org stable/main amd64 Packages/DiffIndex
Ign http://packages.dotdeb.org squeeze/all Translation-en
Hit http://in.archive.ubuntu.com trusty-updates/universe Sources
Ign http://packages.elasticsearch.org stable/main i386 Packages/DiffIndex
Hit http://in.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://wireframesketcher.com  Release
Get:5 http://in.archive.ubuntu.com trusty-updates/main amd64 Packages [407 kB]
Ign http://packages.elasticsearch.org stable/main amd64 Packages/DiffIndex
Ign http://extras.ubuntu.com trusty InRelease
Ign http://packages.elasticsearch.org stable/main i386 Packages/DiffIndex
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://extras.ubuntu.com trusty Release
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://wireframesketcher.com  Packages
Ign http://extras.ubuntu.com trusty/main Translation-en
Ign http://wireframesketcher.com  Translation-en
Get:6 http://in.archive.ubuntu.com trusty-updates/restricted amd64 Packages [8875 B]
Get:7 http://in.archive.ubuntu.com trusty-updates/universe amd64 Packages [243 kB]
Get:8 http://in.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [11.2 kB]
Hit http://packages.elasticsearch.org stable/main amd64 Packages
Hit http://packages.elasticsearch.org stable/main i386 Packages
Get:9 http://in.archive.ubuntu.com trusty-updates/main i386 Packages [399 kB]
Ign http://packages.elasticsearch.org stable/main Translation-en
Hit http://packages.elasticsearch.org stable/main amd64 Packages
Hit http://packages.elasticsearch.org stable/main i386 Packages
Ign http://packages.elasticsearch.org stable/main Translation-en
Hit http://packages.elasticsearch.org stable/main amd64 Packages
Hit http://packages.elasticsearch.org stable/main i386 Packages
Ign http://packages.elasticsearch.org stable/main Translation-en
Get:10 http://in.archive.ubuntu.com trusty-updates/restricted i386 Packages [8846 B]
Get:11 http://in.archive.ubuntu.com trusty-updates/universe i386 Packages [243 kB]
Get:12 http://in.archive.ubuntu.com trusty-updates/multiverse i386 Packages [11.4 kB]
Get:13 http://in.archive.ubuntu.com trusty-updates/main Translation-en [194 kB]
Hit http://in.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://in.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://in.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://in.archive.ubuntu.com trusty-backports/main Sources
Hit http://in.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://in.archive.ubuntu.com trusty-backports/universe Sources
Hit http://in.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://in.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://in.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://in.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://in.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://in.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://in.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://in.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://in.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://in.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://in.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com trusty-backports/universe Translation-en
Fetched 1364 kB in 51s (26.6 kB/s)
Reading package lists...
Temp File /tmp/ptconfigure-temp-script-45523327550.sh Removed
[Pharaoh Logging] Package apache2 from the Packager Apt is already installed, so not installing
[Pharaoh Logging] Package mysql-server from the Packager Apt is already installed, so not installing
[Pharaoh Logging] Package php5 from the Packager Apt is already installed, so not installing
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
 gyp libc-ares-dev libc-ares2 libframework2-zend-server libicu36
 libjs-node-uuid libmcrypt4 liboci-us-locales-zend libpng3 libsqlite0
 libssl0.9.8 libv8-3.14-dev lighttpd-zend-server linux-headers-3.13.0-32
 linux-headers-3.13.0-32-generic linux-image-3.13.0-32-generic
 linux-image-extra-3.13.0-32-generic node-abbrev node-ansi node-archy
 node-async node-block-stream node-combined-stream node-cookie-jar
 node-delayed-stream node-forever-agent node-form-data node-fstream
 node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
 node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
 node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
 node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
 node-osenv node-qs node-read node-read-package-json node-request node-retry
 node-rimraf node-semver node-sha node-sigmund node-slide node-tar
 node-tunnel-agent node-which nodejs nodejs-dev php-5.3-bcmath-zend-server
 php-5.3-bz2-zend-server php-5.3-calendar-zend-server
 php-5.3-ctype-zend-server php-5.3-curl-zend-server php-5.3-exif-zend-server
 php-5.3-fcgi-zend-server php-5.3-fileinfo-zend-server
 php-5.3-ftp-zend-server php-5.3-gd-zend-server php-5.3-gettext-zend-server
 php-5.3-imap-zend-server php-5.3-intl-zend-server php-5.3-ldap-zend-server
 php-5.3-loader-zend-server php-5.3-mbstring-zend-server
 php-5.3-mcrypt-zend-server php-5.3-oci8-zend-server
 php-5.3-pdo-mysql-zend-server php-5.3-pdo-pgsql-zend-server
 php-5.3-pgsql-zend-server php-5.3-phar-zend-server php-5.3-posix-zend-server
 php-5.3-soap-zend-server php-5.3-sockets-zend-server
 php-5.3-sqlite-zend-server php-5.3-tidy-zend-server
 php-5.3-tokenizer-zend-server php-5.3-xsl-zend-server
 php-5.3-zip-zend-server sqlite sqlite3 ttf-dejavu-core zend-server-doc
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  php-5.3-common-extensions-zend-server php-5.3-mysql-zend-server
  php-5.3-mysqli-zend-server zend-server-php-5.3 zend-server-php-5.3-common
The following NEW packages will be installed:
 php5-mysql
0 upgraded, 1 newly installed, 5 to remove and 79 not upgraded.
9 not fully installed or removed.
[Pharaoh Logging] Adding Package php5-mysql from the Packager Apt did not execute correctly
... All done!
*******************************
Thanks for installing , visit www.pharaohtools.com for more
******************************


Single App Installer:
--------------------------------------------
PHPVM: Success
------------------------------
Installer Finished
******************************

Benefits

  • The parameters used in help and installation are not case sensitive which is an added advantage while compared to others.
  • It is well-to-do in both Ubuntu and as well as Cent OS.
  • This will module installs the phpvm in updated version.
  • If the module is already existing in the user machine it will display a message as it is already existing.
comments powered by Disqus