Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st May 2009, 14:23
need_a_linux_brain need_a_linux_brain is offline
Junior Member
 
Join Date: May 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP & PowerDNS and PowerAdmin on CentOS 5.3

Hello All,

Using the "How-To" entitled "Installing PowerDNS (With MySQL Backend) And Poweradmin On CentOS 5.2" (because there wasn't one available here for CentOS 5.3, at least that I could find), I attempted to correctly install PowerAdmin on my CentOS 5.3 dedicated server (which already has a DirectAdmin control panel installed on it and came pre-installed with my Linux distro). But, I couldn't install the several of the PHP packages needed for the PowerAdmin. Here's the output of "yum install":

No package httpd available.
No package php available.
No package php-devel available.
Package php-gd-5.1.6-23.2.el5_3.i386 installed and not available
Package php-imap-5.1.6-23.2.el5_3.i386 installed and not available
No package php-ldap available.
No package php-mysql available.
No package php-odbc available.
No package php-pear available.
Package php-xml-5.1.6-23.2.el5_3.i386 installed and not available
No package php-xmlrpc available.
Package php-mbstring-5.1.6-23.2.el5_3.i386 installed and not available
No package php-mcrypt available.
No package php-mhash available.
Package gettext-0.14.6-4.el5.i386 already installed and latest version
Nothing to do

Prior to attempting to install poweradmin (and successfully installing PowerDNS), I also had similar problems attempting to install "mysql". I received the following error: "No package mysql available."

I tried "yum install -y" and was only able to install several of the required PHP packages because I ran "yum search php" to locate them. When I ran "yum search" for "httpd", I found "system-config-httpd.noarch".

Just in case you wonder, I ran the "rpm -qa | grep" on php, pdns, poweradmin and hpttd. Nothing was returned for the last two but for the others, here's the output:

pdns-backend-pipe-2.9.21-4.el5.centos
pdns-backend-ldap-2.9.21-4.el5.centos
pdns-backend-geo-2.9.21-4.el5.centos
pdns-backend-sqlite-2.9.21-4.el5.centos
pdns-2.9.21-4.el5.centos
pdns-recursor-3.1.5-1.el5.centos
pdns-backend-mysql-2.9.21-4.el5.centos
pdns-backend-postgresql-2.9.21-4.el5.centos

rpm -qa | grep php

php-imap-5.1.6-23.2.el5_3
php-pdo-5.1.6-23.2.el5_3
php-cli-5.1.6-23.2.el5_3
php-gd-5.1.6-23.2.el5_3
php-common-5.1.6-23.2.el5_3
php-mbstring-5.1.6-23.2.el5_3
php-xml-5.1.6-23.2.el5_3

I did some research and found both the latetst PHP and Apache/httpd packages. Since both are tarballs, I used "wget" to download them to my /tmp directory (where the Poweradmin tarball is also located) but wasn't sure how to install them in the context of the tutorial.

Finally, I couldn't figure out in the tutorial where the instructions for configuring what hostname or server IP I want to use on my server. Are there any special instructions for installing it on a dedicated server?

Any help or suggestions? Can I even use Poweradmin with CentOS 5.3? (I tried to find documentation saying I couldn't so decided to try.)

Thanks.

Sasha
Reply With Quote
Sponsored Links
  #2  
Old 1st May 2009, 22:56
Jolman Jolman is offline
Member
 
Join Date: May 2009
Location: Kazakhstan
Posts: 34
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via Skype™ to Jolman
Default

You must add repositories for yum, example remi(googled)
Reply With Quote
  #3  
Old 2nd May 2009, 10:44
need_a_linux_brain need_a_linux_brain is offline
Junior Member
 
Join Date: May 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Question

Quote:
Originally Posted by Jolman View Post
You must add repositories for yum, example remi(googled)
Thank you for your response. I appreciate your desire to help me fix this but from what I understand based on the CentOS wiki, "remi" should be used with "extreme caution". I'm concerned about using third part repositories to install packages. I don't have the Linux knowledge to repair a broken OS because I download from the wrong repo. Besides, the "remi" site is in French and, as much as I love the language, I don't read it well.

Any other, more stable suggestions?

Thanks,

Sasha
Reply With Quote
  #4  
Old 2nd May 2009, 11:35
Jolman Jolman is offline
Member
 
Join Date: May 2009
Location: Kazakhstan
Posts: 34
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via Skype™ to Jolman
Default

How about "epel" it may be more appropriate repo.
Reply With Quote
  #5  
Old 3rd May 2009, 04:02
need_a_linux_brain need_a_linux_brain is offline
Junior Member
 
Join Date: May 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Question

Quote:
Originally Posted by Jolman View Post
How about "epel" it may be more appropriate repo.
Thank you; I'm pretty new at all of this so I did not want to FUBAR my server with unstable packages. So, this was more appropriate and I installed the repo. Then, I ran "yum install httpd php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mhash gettext" and got:

No package httpd available.
No package php available.
No package php-devel available.
Package php-gd-5.1.6-23.2.el5_3.i386 installed and not available
Package php-imap-5.1.6-23.2.el5_3.i386 installed and not available
No package php-ldap available.
No package php-mysql available.
No package php-odbc available.
No package php-pear available.
Package php-xml-5.1.6-23.2.el5_3.i386 installed and not available
No package php-xmlrpc available.
Package php-mbstring-5.1.6-23.2.el5_3.i386 installed and not available
No package php-mcrypt available.
No package php-mhash available.
Package gettext-0.14.6-4.el5.i386 already installed and latest version

However, I manually installed "httpd" from Apache using the PHP installations instruction (at which time I installed PHP). I installed PHP packages UnixODBC, libmcrypt, openldap, mhash, xmlprc as well as MYSQL and the PostgreSQL Database, using yum.

I also installed PEAR and the PEAR packages required by the Poweradmin site and made sure everything the site requires for Poweradmin was installed.

Now, I'm having some challenges checking to see if PEAR works, particularly "Verifying the Include Path" on problem is I'm unsure which directory is the "local web root" on my server, which is offsite.

I am also unsure where Poweradmin should have be installed--the folder from which I intend to run the program. Should it be in an Apache 2 directory or in /var/www/html where it is located? It's hard to check to see if Poweradmin works without knowing where I should have installed it--under what IP address or server hostname? Since I was installing Poweradmin on a pre-installed CentOS OS, I wasn't able to follow that part of the How-To.

Also, I don't know where "localhost" is on my server.

So, if you (or anyone else reading this thread) have any ideas or solutions to these isses, that would be great. I'd really like to get Poweradmin working after all this work.

Sasha
Reply With Quote
  #6  
Old 3rd May 2009, 15:43
Jolman Jolman is offline
Member
 
Join Date: May 2009
Location: Kazakhstan
Posts: 34
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via Skype™ to Jolman
Default

If you not installed a VirtualHost, then you root directory is - "/var/www/html"

To install Poweradmin do next:

First disable iptables and selinux !

cd /var/www/html
wget https://www.poweradmin.org/download/...dmin-2.1.2.tgz
tar xvfz poweradmin-2.1.2.tgz
touch /var/www/html/poweradmin/inc/config.inc.php
chown -R apache:apache /var/www/html/poweradmin

Now open a browser and launch the web-based Poweradmin installer (http://localhost/poweradmin/install)
or
(http://127.0.0.1/poweradmin/install)

Аbove mentioned steps will work if you not install and configure Bind !!!

loсalhost is constant with the address 127.0.0.1

http://www.howtoforge.com/installing...n-on-fedora-10
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PowerDNS with PowerAdmin Noodle2732 HOWTO-Related Questions 9 13th March 2009 09:37


All times are GMT +2. The time now is 22:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.