cURL in DAB

apmuthu

Well-Known Member
Feb 26, 2009
807
8
58
Chennai - India & Singapore
github.com
When building a VM using DAB, choosing PHP5 does not automatically install cURL for PHP5. It needs to be installed from the VM's console using:
Code:
aptitude install php5-curl
Then restart the VM. Afterwards, the console displays it's successful installation:

Code:
aptitude show php5-curl

Package: php5-curl
State: installed
Automatically installed: no
Version: 5.2.6.dfsg.1-1+lenny3
Priority: optional
Section: web
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Uncompressed Size: 119k
Depends: libc6 (>= 2.7-1), libcurl3 (>= 7.16.2-1), phpapi-20060613+lfs, php5-common (= 5.2.6.dfsg.1-1+lenny3)
 
just add this package in the dab configuration files before your create the template and it get installed.
 
In dab Makefile, we just insert the aptitude commands by replacing aptitude with dab.
For example, in the Makefile:-
Code:
.
.
.
dab task mysql
dab task php
.
.
dab install php5-mysql
dab install php5 curl
.
.
.

The man dab pages need more examples.

How do we install innodb for mysql and configure it in dab?
 
Last edited:
perl do support CURL.try php also.CURL is well supported in perl and you need to install the modules before using them,
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!