LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-25-2005, 03:14 PM   #1
TenEighty
Member
 
Registered: Oct 2004
Location: Vancouver, B.C., Canada
Distribution: Kubuntu
Posts: 59

Rep: Reputation: 15
uninstall php


I can't figure out how on earth one is supposed to remove php5 that was installed from source. I have looked all over, and there are examples using rpms but not for source. I tried make uninstall, nope. I looked through ./configure --help, tried php home page.

Php seems to have broken my apache server, which will no longer start. I compiled and recomplied and recompiled, both apache and php, but nothing at all has changed.

I just want php5 wiped off my hard drive. If I can get apache to work again after that, maybe I'll try php4.

Last edited by TenEighty; 12-25-2005 at 03:16 PM.
 
Old 12-26-2005, 10:20 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
what version of apache are you running? The thing is when compiling php you need to tell it which apache abi to use. If you don't specify which abi to use, php will configure with its own provided abi which is the abi for apache 1.X. If you're running apache 2.X then your compiled php module will not work. when you do the configure part of building php you tell it which abi to use with the --with-apxs2 flag.

ex.

./configure --with-apxs2=/path/to/apache/install/bin/apxs --other_option --other_option ...

now when you make and make install, the php module built will be compatible with the version of apache you're running.

You'll also need to add handlers in your httpd.conf file. The old handler of php-script won't work with php5. the new handler in httpd.conf will be php5-script.
 
  


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
Uninstall postgresQL and PHP vickr1z Linux - Newbie 1 09-14-2004 05:39 PM
How do I uninstall Apache/PHP/Mysql ? MattOlz Slackware 3 03-25-2004 02:40 AM
php uninstall bnumark Linux - Software 1 06-28-2003 04:19 AM
Uninstall Apache 2.0.40, mySQL and PHP wt2000 Linux - Newbie 9 02-22-2003 07:31 AM
Uninstall apache, MySql, and php ChaNce Linux - Software 2 07-13-2001 02:17 PM

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

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

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