PHPModules

Synopsis

This Modules aims at installing and enveloping some of the common and helpful, supporting Php modules. Few examples are: php5-gd the image libs, php5-imagick the image libs, php5-curl the remote file handling libs, php5-mysql the libs for handling mysql connections. Let us see how to use this module, the process of installation in 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 Php module. It lists out the alternative parameters of Php module. It also describes the syntax for installing the Php module. The help command for Php module is shown as below.

ptconfigure PHPModules 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 Php module.

kevell@corp:/# ptconfigure PHPModules help

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


 This command allows you to install some common and helpful PHP Modules.

 PHPModules, php-mods, phpmods, php-modules, phpmodules

       - install
       Installs some common PHP Modules. These include php5-gd the image libs,
       php5-imagick the image libs, php5-curl the remote file handling libs,
       php5-mysql the libs for handling mysql connections.
       example: ptconfigure phpmods install

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

Installation

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

ptconfigure phpmods install

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

Parameters Alternative Parameter Options Comments
Install PHP Modules? (Y/N) Instead of phpmods, we can use PHPModules, php-mods, php-modules, phpmodules also. Y(Yes) If the user wish to proceed the installation process they can input as Y.
Install PHP Modules? (Y/N) Instead of phpmods, we can use PHPModules, php-mods, php-modules, phpmodules 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.

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

kevell@corp:/# ptconfigure phpmods install

Install PHP Modules? (Y/N)
y
*******************************
*        Pharaoh Tools        *
*         PHP Mods!        *
*******************************
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all amd64 Packages (/var/lib/apt/lists/
packages.dotdeb.org_dists_squeeze_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all amd64 Packages (/var/lib/apt/lists
/packages.dotdeb.org_dists_squeeze_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all amd64 Packages (/var/lib/apt/lists/
packages.dotdeb.org_dists_squeeze_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all amd64 Packages (/var/lib/apt/lists/
packages.dotdeb.org_dists_squeeze_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all i386 Packages (/var/lib/apt/lists/
packages.dotdeb.org_dists_squeeze_all_binary-i386_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all i386 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-i386_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all i386 Packages (/var/lib/apt/lists/
packages.dotdeb.org_dists_squeeze_all_binary-i386_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all i386 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all amd64 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all amd64 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all amd64 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all amd64 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all i386 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-i386_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all i386 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-i386_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all i386 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-i386_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ squeeze/all i386 Packages (/var/lib/apt/lists
packages.dotdeb.org_dists_squeeze_all_binary-i386_Packages)
php5_invoke: Enable module apcu for cgi SAPI
php5_invoke: Enable module apcu for cli SAPI
rmdir: failed to remove ‘/usr/share/doc/php-apc’: Directory not empty
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
 php5-apcu
Suggested packages:
 php5-gd
The following NEW packages will be installed:
 php-apc php5-apcu
0 upgraded, 2 newly installed, 0 to remove and 252 not upgraded.
Need to get 75.9 kB of archives.
After this operation, 344 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe php5-apcu amd64 4.0.2-2build1 [73.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/universe php-apc all 4.0.2-2build1 [2,762 B]
Fetched 75.9 kB in 42s (1,783 B/s)
Selecting previously unselected package php5-apcu.
(Reading database ... 233423 files and directories currently installed.)
Preparing to unpack .../php5-apcu_4.0.2-2build1_amd64.deb ...
Unpacking php5-apcu (4.0.2-2build1) ...
Selecting previously unselected package php-apc.
Preparing to unpack .../php-apc_4.0.2-2build1_all.deb ...
Unpacking php-apc (4.0.2-2build1) ...
Setting up php5-apcu (4.0.2-2build1) ...
Setting up php-apc (4.0.2-2build1) ...
[Pharaoh Logging] Adding Package php-apc from the Packager Apt executed correctly
php5_invoke: Enable module gd for cgi SAPI
php5_invoke: Enable module gd for cli SAPI
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  php5-gd
0 upgraded, 1 newly installed, 0 to remove and 252 not upgraded.
Need to get 0 B/28.0 kB of archives.
After this operation, 163 kB of additional disk space will be used.
Selecting previously unselected package php5-gd.
(Reading database ... 233448 files and directories currently installed.)
Preparing to unpack .../php5-gd_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
Unpacking php5-gd (5.5.9+dfsg-1ubuntu4.7) ...
Setting up php5-gd (5.5.9+dfsg-1ubuntu4.7) ...
[Pharaoh Logging] Adding Package php5-gd from the Packager Apt executed correctly
E: Unable to correct problems, you have held broken packages.
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php5-imagick : Depends: libmagickcore3 (>= 8:6.6.0.4) but it is not installable
               Depends: libmagickwand3 (>= 8:6.6.0.4) but it is not installable
               Depends: libtiff4 but it is not installable
               Depends: php5-common (= 5.3.29-1~dotdeb.0) but 5.5.9+dfsg-1ubuntu4.7 is to be installed
[Pharaoh Logging] Adding Package php5-imagick from the Packager Apt did not execute correctly
php5_invoke: Enable module curl for cgi SAPI
php5_invoke: Enable module curl for cli SAPI
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
 php5-curl
0 upgraded, 1 newly installed, 0 to remove and 252 not upgraded.
Need to get 0 B/27.4 kB of archives.
After this operation, 142 kB of additional disk space will be used.
Selecting previously unselected package php5-curl.
(Reading database ... 233455 files and directories currently installed.)
Preparing to unpack .../php5-curl_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
Unpacking php5-curl (5.5.9+dfsg-1ubuntu4.7) ...
Setting up php5-curl (5.5.9+dfsg-1ubuntu4.7) ...
[Pharaoh Logging] Adding Package php5-curl from the Packager Apt executed correctly
Reading package lists...
Building dependency tree...
Reading state information...
php5-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 252 not upgraded.
[Pharaoh Logging] Package php5-mysql from the Packager Apt is already installed, so not installing.
E: Unable to correct problems, you have held broken packages.
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php5-memcache : Depends: php5-common (= 5.3.29-1~dotdeb.0) but 5.5.9+dfsg-1ubuntu4.7 is to be installed
[Pharaoh Logging] Adding Package php5-memcache from the Packager Apt did not execute correctly
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  php5-memcached
0 upgraded, 0 newly installed, 0 to remove and 251 not upgraded.
[Pharaoh Logging] Adding Package php5-memcached from the Packager Apt did not execute correctly
php5_invoke: Enable module mongo for cgi SAPI
php5_invoke: Enable module mongo for cli SAPI
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
 php5-mongo
0 upgraded, 1 newly installed, 0 to remove and 252 not upgraded.
Need to get 94.5 kB of archives.
After this operation, 334 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe php5-mongo amd64 1.4.5-1build1 [94.5 kB]
Fetched 94.5 kB in 45s (2,096 B/s)
Selecting previously unselected package php5-mongo.
(Reading database ... 233462 files and directories currently installed.)
Preparing to unpack .../php5-mongo_1.4.5-1build1_amd64.deb ...
Unpacking php5-mongo (1.4.5-1build1) ...
Setting up php5-mongo (1.4.5-1build1) ...
[Pharaoh Logging] Adding Package php5-mongo from the Packager Apt executed correctly
... All done!
*******************************
Thanks for installing , visit www.pharaohtools.com for more
******************************


Single App Installer:
--------------------------------------------
PHPModules: 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.
  • All the frequently used php modules installation gets enveloped under a single process.
comments powered by Disqus