LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2009, 01:03 PM   #1
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Rep: Reputation: 15
Yum PHP Installation


Hopefully this will be my last stupid question for a while :-)

I'm trying to install PHP via Yum on Fedora 10 over SSH. It gets to the very end and shows:

Code:
 --> Missing Dependency: apr-util-ldap is needed by package httpd-2.2.11-2.fc10.i386 (updates)
Error: Missing Dependency: apr-util-ldap is needed by package httpd-2.2.11-2.fc10.i386 (updates)
How do I install them? I tried typing the actual package names like "yum packagename install" but it didn't work. What am I doing wrong?
 
Old 06-03-2009, 01:17 PM   #2
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Also getting this when trying to start Apache:

Code:
[root@67439 bin]# apachectl start
-bash: apachectl: command not found
Followed the compiling tutorial here: http://httpd.apache.org/docs/2.0/install.html

Edit: Fixed this by doing:

cd /usr/local/apache2/bin
cp apachectl /etc/init.d/httpd

Now service httpd start/stop/restart/status works.


Still having the initial problems with the yum php install though.

Last edited by athomas; 06-03-2009 at 08:02 PM.
 
Old 06-03-2009, 05:49 PM   #3
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Anyone know what I'm doing wrong?
 
Old 06-03-2009, 06:47 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How did you install apache - was it from source? Installing with yum should have created the necessary startup script.
 
Old 06-03-2009, 08:01 PM   #5
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
How did you install apache - was it from source? Installing with yum should have created the necessary startup script.
I fixed the startup problem, read the edited text above.

Still having problems with the PHP install.
 
Old 06-03-2009, 08:11 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Thats wasn't the question though. If you installed from source, you may have caused yourself headaches in the php department.
 
Old 06-03-2009, 08:41 PM   #7
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
Thats wasn't the question though. If you installed from source, you may have caused yourself headaches in the php department.
Yeah I downloaded the tarball, did this...

gzip -d (filename, I forget it...)
tar xvf (filename)
./configure
make
make install

Then did the file copying, then started the service. Works fine. It's giving the error in the initial post.
 
Old 06-03-2009, 08:44 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Then I'd try removing the original apache with "yum remove httpd". Not quite sure what else it will try to remove, so take care.
 
Old 06-03-2009, 09:04 PM   #9
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
Then I'd try removing the original apache with "yum remove httpd". Not quite sure what else it will try to remove, so take care.
Well Yum install Apache has never worked. What I need to know is where to get the two dependencies at... Google turned up nothing at all.
 
Old 06-03-2009, 09:15 PM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm not sure why you need it, but try http://rpmfind.net/linux/rpm2html/se...=apr-util-ldap
 
Old 06-03-2009, 10:34 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well
Code:
yum groupinstall "Web Server"
is the easiest way . BUT , there always is one, i like to have( Apache,MySQL ,php, PhpMyAdmin, AWStats, and GeekLog, other things ) all in the same folder( /opt/www ) and not scattered all over the system . So i do a source build for everything . but you WILL need to build apache with the php turned on ( that is default - if i remember correctly . so build php FIRST.
as i recall this is the build order
php
mysql
phpMyAdmin
Apache
AwStats
( the cms) - my case geeklog- with gallery2

---------- added -------
also i tell everybody that wants to install apache to
Build everything - from source - the first 12 installs
that way YOU WILL know HOW TO CONFIGURE it and LOCK IT DOWN .

Last edited by John VV; 06-03-2009 at 10:37 PM.
 
Old 06-03-2009, 11:29 PM   #12
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by John VV View Post
well
Code:
yum groupinstall "Web Server"
is the easiest way . BUT , there always is one, i like to have( Apache,MySQL ,php, PhpMyAdmin, AWStats, and GeekLog, other things ) all in the same folder( /opt/www ) and not scattered all over the system . So i do a source build for everything . but you WILL need to build apache with the php turned on ( that is default - if i remember correctly . so build php FIRST.
as i recall this is the build order
php
mysql
phpMyAdmin
Apache
AwStats
( the cms) - my case geeklog- with gallery2

---------- added -------
also i tell everybody that wants to install apache to
Build everything - from source - the first 12 installs
that way YOU WILL know HOW TO CONFIGURE it and LOCK IT DOWN .

Output is similar to before...

Code:
httpd-2.2.11-2.fc10.i386 from updates has depsolving problems
  --> Missing Dependency: apr-util-ldap is needed by package httpd-2.2.11-2.fc10.i386 (updates)
httpd-2.2.11-2.fc10.i386 from updates has depsolving problems
  --> Missing Dependency: apr-util-ldap is needed by package httpd-2.2.11-2.fc10.i386 (updates)
Error: Missing Dependency: apr-util-ldap is needed by package httpd-2.2.11-2.fc10.i386 (updates)
I don't know what the problem is... it's a Fedora 10 install.
 
Old 06-03-2009, 11:39 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What does "yum repolist" give?
 
Old 06-04-2009, 10:28 AM   #14
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
What does "yum repolist" give?
Code:
repo id                 repo name                                  status
fedora                  Fedora 10 - i386                           enabled: 2220
updates                 Fedora 10 - i386 - Updates                 enabled: 5537
repolist: 7757
 
Old 06-04-2009, 04:02 PM   #15
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Anyone have anything for this? I'm a bit confused.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install PHP: yum tries to install duplicate httpd beebopbogo Linux - Software 1 05-26-2009 02:08 AM
PHP-OCI and YUM cristinaaragon Fedora 3 10-30-2007 09:32 AM
Yum php-mysql 3.22 vs 4.1 Crump Fedora 1 04-21-2007 06:49 AM
Can YUM Reinstall PHP? stefaandk Fedora 3 06-27-2005 07:23 PM
Need yum repos with php 4.3.11 ericcarlson Fedora 1 05-30-2005 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration