php-ldap is needed by aastra

dad311

Guru
Joined
Jan 13, 2008
Messages
604
Reaction score
2
Just install the new Openvz image (w/centos 5.7) and I'm not able to setup my Aastra phones. Looks like I need to install php-ldap.

error: Failed dependencies:
php-ldap is needed by aastra-xml-scripts-2.3.0-1.noarch


My question is how to install php-ldap? Do I need to enable some repos? If so which one(s)?

Anyone else seen this issue????
 
1. did you run update100?
2. what does yum list php show?

if you ran update100 then

yum update --enablerepo=tatic php-ldap

if you did NOT run update100 and your php is 5.1.xx then go into /etc/yum.repos.d and edit

CentOS-Base.repo and edit the

exclude=

lines to take out php*

I am just updating all of the payloads to have these things installed by default.

Tom
 
1. did you run update100?
2. what does yum list php show?

if you ran update100 then

yum update --enablerepo=tatic php-ldap

if you did NOT run update100 and your php is 5.1.xx then go into /etc/yum.repos.d and edit

CentOS-Base.repo and edit the

exclude=

lines to take out php*

I am just updating all of the payloads to have these things installed by default.

Tom


I removed ALL the php* from the CentOS-Base.repo. No love, see the paste below. The update100, are you referring to update-scripts/update-fixes? If so, I ran update-scripts/fixes. thx


root@pbx186:/tmp $ yum install php-ldap
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.ash.fastserv.com
* extras: mirror.ash.fastserv.com
* updates: mirror.rackspace.com
addons | 951 B 00:00
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-ldap.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-ldap
--> Finished Dependency Resolution
php-ldap-5.1.6-27.el5_5.3.x86_64 from base has depsolving problems
--> Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-ldap-5.1.6-27.el5_5.3.x86_64 (base)
Error: Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-ldap-5.1.6-27.el5_5.3.x86_64 (base)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest





root@pbx186:/tmp $ yum list php
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.aol.com
* extras: mirror.net.cen.ct.gov
* updates: mirror.highspeedweb.net
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Installed Packages
php.x86_64 5.3.8-1.w5
 
You have the update100 loaded as it is the prox template thus

1. add back to /etc/yum.repos.d/CentOS-Base.repo the following

exclude=kernel* php* apr* httpd*

2. type the following


yum install --enablerepo=tatic php-ldap

should work

if not check to make sure you have the

/etc/yum.repos.d/piaf.repo file

which should be there

The prox template has been updated to higher versions of php, httpd, and apr.


(BTW I dont use this template as I always install a full iso onto prox)

Tom
 
No luck, see below. And yes I do have the piaf.repo file.


root@pbx186:/etc/yum.repos.d $ yum install --enablerepo=tatic php-lda
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.rackspace.com
* extras: mirror.ash.fastserv.com
* tatic: www.pbxinaflash.com
* updates: mirror.cisp.com
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
No package php-lda available.
Nothing to do
 
So whats the easiest way around this issue? Is this a Centos 5.7 issue or just a issue with my repos?

Im also having a issue with Avantfax, Ive done some Googleing, and it starting to point to a php issue. Im starting to think both of these issues might be related.
 
should be php-ldap not php-lda

yum install --enablerepo=tatic php-ldap

I just installed it on a regular piaf system 64 bit with no problems using the above command. This system was converted over to the newer versions of httpd/php/apr just like the openvz template.

This has nothing to do with centos it is a updated/more secure php version (more secure for now who knows what tomorrow will bring). This was brought about due to some security concerns raised by others when using proxmox with various asterisk distros.


while this wont help you all versions of our payloads now include all of the required php modules for the aastra stuff I think. (THIS DOES NOT INCLUDE THE VZ TEMPLATE) I have not released them just yet as I am working on the first release of PIAF 1757 which should be out in beta form shortly.


As for your other concerns you could try changing the piaf.repo tatic

[tatic]
name=TATIC $releasever - $basearch
#baseurl = http://www.pbxinaflash.org/piafrepo/tatic/$basearch/
mirrorlist = http://www.pbxinaflash.org/piafrepo/tatic/$basearch/mirrorlist
enabled = 1
gpgcheck = 0

and then try running your programs for install. This will then have the option of loading the correct apr/http/php modules as needed.

Eventually we might go to hosting our own repo for everything including centos but that is a while in the future.


Let me know

Tom
 
Sorry for the typo, "yum install --enablerepo=tatic php-ldap" worked.

However, Im now researching the next problem, see below. Notice the "Upgrading package" failed and I got a php error while doing the install checks. There was no log file created.:rolleyes5:



root@pbx186:/tmp $ ./install-aastra-xml.x
Installation of Aastra XML scripts version 2.3.0 (32/64 bits)

Checking package php-gd ... Nothing to do
Checking package php-ldap ... Nothing to do
Checking package avahi ... Nothing to do
Checking phone firmware package ... Upgrade needed
Downloading package ... OK
Upgrading package ... FAILED
Please check /tmp/aastra_install.log.
Checking package aastra-xml-scripts 2.3.0 ... Installation needed
Downloading package ... OK
Installing package ... OK
Checking mDNSResponder package ... Nothing to do
Modifying firewall rules for auto-discovery ... Nothing to do
Setting permissions ... OK

Aastra XML scripts 2.3.0 successfully installed.





root@pbx186:/tmp $ /var/www/html/aastra/utilities/check_install

Aastra XML scripts 2.3.0-1 Installation Check
=============================================

----------------------- Package installation -----------------------
Package php-gd ............................................ Passed
Package php-ldap .......................................... Passed
Package avahi ............................................. Passed
No Package mDNSResponder .................................. Passed
No Package mDNSResponder-util ............................. Passed
Phone firmware package (3.2.1) ............................ Passed
Package aastra-xml-scripts ................................ Passed
PHP Fatal error: Call to undefined function posix_getpwuid() in /var/www/html/aastra/utilities/check_install on line 211

 
This seemed to fix the check install_error:

yum install --enablerepo=tatic php-posix

/var/www/html/aastra/utilities/check_install

Aastra XML scripts 2.3.0-1 Installation Check
=============================================

----------------------- Package installation -----------------------
Package php-gd ............................................ Passed
Package php-ldap .......................................... Passed
Package avahi ............................................. Passed
No Package mDNSResponder .................................. Passed
No Package mDNSResponder-util ............................. Passed
Phone firmware package (3.2.1) ............................ Passed
Package aastra-xml-scripts ................................ Passed
Cache Directory (/var/cache/aastra/) ...................... Passed
t*f*t*p Directory (/tftpboot) ................................ Passed
/tftpboot/aastra.cfg ...................................... Passed
php-agi connection ........................................ Passed
freePBX database connection ............................... Passed
------------------ Asterisk/freePBX Configuration ------------------
Asterisk version (1.8) .................................... Passed
Asterisk location set to /etc/asterisk/ ................... Passed
Asterisk spooler set to /var/spool/asterisk/ .............. Passed
Voicemail configuration ................................... FAILED
-> Please enable pollmailboxes in /etc/asterisk/voicemail.conf
USEDEVSTATE set to True ................................... Passed
Wideband Codec (g722) configuration ....................... WARNING
-> You may want to activate g722 in /etc/asterisk/sip_general_custom.conf or via the freePBX module
freePBX mode set to extensions ............................ Passed
6 extension(s) configured ................................. Passed
No meet-me room configured ................................ WARNING
-> Please configure meet-me rooms using freePBX
No parking extension configured ........................... WARNING
-> Please configure parking lot using freePBX
No Intercom prefix configured ............................. WARNING
-> Please configure Intercom prefix using freePBX
No day/night index configured ............................. WARNING
-> Please configure day/night index using freePBX if you plan to use this function
No ACD queue configured ................................... WARNING
-> Configure queues using freePBX interface
----------------- Aastra XML scripts Configuration -----------------
Debug mode not activated .................................. Passed
Trace mode not activated .................................. Passed
Language not forced ....................................... Passed
Asterisk SIP proxy forced to AA_PROXY_SERVER .............. Passed
Asterisk SIP registrar forced to AA_REGISTRAR_SERVER ...... Passed
Phone Signature check is enabled .......................... Passed
Self-configuration admin password not configured .......... WARNING
-> You may want to configure it in config/asterisk.conf
Self-configuration user password not configured ........... WARNING
-> You may want to configure it in config/asterisk.conf for users without VM
Logout password check is enabled .......................... Passed
Auto-Logout feature is enabled ............................ Passed
Auto-Logout idle screen message is enabled ................ Passed
DND pauses all ACD queues disabled ........................ Passed
Speed dial application configured ......................... Passed
Outgoing state display application configured ............. Passed
Outgoing external lookup application not configured ....... Passed
Date/Time format (US) ..................................... Passed
User asked for timezone (no) .............................. Passed
No hidden directory extension ............................. Passed
Local dial plan ........................................... Passed
Country code: 1
Long distance prefix: 1
International prefix: 011
No outbound prefix
No local prefix
Local extension length not set
 
So whats the easiest way around this issue? Is this a Centos 5.7 issue or just a issue with my repos?

Im also having a issue with Avantfax, Ive done some Googleing, and it starting to point to a php issue. Im starting to think both of these issues might be related.

IncredibleFax is not yet compatible with 64-bit system because it doesn't use yum to install some of the modules. You can look through the script for the downloads and then find the correct versions for 64-bit or wait a bit.
 

Members online

Forum statistics

Threads
26,686
Messages
174,406
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top