Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@host-xx-xx-xx-xx Desktop]# rpm -Uvh php-pear-5.0.4-10.5.i386.rpm
Preparing... ########################################### [100%]
package php-pear-5.0.4-10.5 is already installed
[root@host-xx-xx-xx-xx Desktop]# rpm -e php-pear-5.0.4-10.5.i386.rpm
error: package php-pear-5.0.4-10.5.i386.rpm is not installed
I've been trying to install PHP on this thing. The server’s been a mess all day. This little thing is preventing me from installing PHP through an RPM
I can't install PHP from a tarball cause it says it can't find APSX, perl is not installed, or apache wasn't configured with the enable-so option. (i compiled apache from a tarball earlier today using that parameter)
I'm also fairly sure perl was installed, I got into this whole messed when i finished compiling PHP, and did a make install for PHP and apache stopped responding. I have a working apache, nut now I have no PHP, and all of the sites are in PHP.
that's wrong. You don't erase the rpm's filename, you use the package name.
rpm -e php-pear
anyway, php is installed. the problem could be that the php rpm you're installing was compiled against a different apache abi version than the one you have installed. Things go boom when this happens.
Unfortunately it's hard to say how to fix it since there could be a lot things you might not have installed, like perl.
Also when compiling apache, there's a few so options that don't get built even if you specify them to be built because you need to use the corresponding --with-<package> option.
Let's assume you have everything under the sun installed. For apache2.2.0, this is what I used to configure the apache build:
when you do a make install, php will install the apache module and edit your httpd.conf file with the load module directive. You still need to edit your httpd.conf file (from the above example for me, it's in /usr/local/Apache2.2.X/conf) to add the appropriate handlers and type.
but it's going to be hard to diagnose your woes because I don't know what you have installed and don't have installed, whether you have all the devel packages installed that you need, etc...
Thanks for your help. I was able to get Apache to install again after discovering i had passed teh value for apsx improperly. After fixing that apache rolled. Still don't know what the deal is with the circular dependency, but the packages I needed to install are on there for now. I already have a replacement box I’m standing up to take this one down for maintenance. (not only was there this problem, but a lot of other things that didn't seem right (that are working fine on the new machine).
PHP is installed, and I made sure that the load module statement is in the httpd.conf file. made sure libphp.so is in the right spot, and made sure that httpd calls .php files. Right now something still isn't working right with PHP. I’ve restarted httpd, and restarted the server, but PHP still isn’t kicking in.. but it's been a long day for me (I was working on this since 8:00 am and it's now 3:00 AM the next morning.. I'll check in tomorrow, and thanks a lot for your help.
Okay, so far this morning, I have checked the httpd.conf file, and have tried to restart Apache. That's when Apache crashes. I thought maybe something is messed up with my PHP, so I did make clan, make distclean, and reconfigured it using simpler parameters, apache still won't start. When I replace httpd.conf with the backup copy, it starts, with no PHP.
I checekd the syntax of those lines again and again, and I also made sure i put tehm with other entries that were similar. are there special directions i need to use when I restart apache?
what version of apache are you running? Also, what package did your apache come from? was it from apache.org or was it a package provided by your distro? the configure example I gave was for apache 2.2.0 which was from apache.org.
If you're still using the rpm of php, then again, it might not work since that rpm package might have compiled php with a different apache abi version.
I would say download php5 from php's website and compile your own php5 and then apache and php should work. Uninstall all of your rpm versions of php before doing this. if you need to see what packages you have installed with php in the package name:
rpm -qa | grep php
take note of the packages that are really php packages and uninstall those.
edit: I also forgot, check to see if perl is installed.
rpm -qa | grep perl
look that you see perl and perl-devel. it could be you don't have perl-devel installed.
Thanks so much for your suggestion. Yesterday evening, i was able ot get it running. I began looking for porblems in teh httpd.conf file, and it ended up when i removed the PHP module, Apache started. so i was able to rule out problems with Apache itself. Also, I learned how to use the RPM command properly. I was able to remove the packages that prevented from installing the PHP RPM file, and i was able to find a package for GD as well.
Okay, so now apache started, and PHP is working, Now teh name based hsoting is messed up. IN order to fix that i simply replaced my httpd.conf file with a backup i made before i started this whole thing, and it came back up. what a fun two days. Thanks so much for your suggestion. Yesterday evening, I was able to get it running. I began looking for problems in the httpd.conf file, and it ended up when I removed the PHP module, Apache started. So I was able to rule out problems with Apache itself. Also, I learned how to use the RPM command properly. After a little more digging I discovered that it was possible to work with multiple packages at the same time, by listing them nest to each other. Taking care of my circular dependency problem I was able to remove the packages that prevented from installing the PHP RPM file, and I was able to find a package for GD as well.
Okay, so now apache started, and PHP is working, Now the name based virtual servers are messed up. In order to fix that I simply replaced my httpd.conf file with a backup I made before I started this whole thing and it came back up. What a fun two days.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.