LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-26-2008, 02:36 AM   #1
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Rep: Reputation: 30
URGENT: apache/php not working after failed curl install


hi all i have a ubuntu 7.1 server and needed to install curl for a script and after running

Code:
apt-get install php5-curl
and still not seeing curl in my phpinfo(); i tried to uninstall apache/php then install it with curl with these commands:

Code:
apt-get remove apache2 php5 libapache2-mod-php5
Code:
apt-get install apache2 php5 libapache2-mod-php5 php5-curl
but now i can't start apache and when i try i get this error:

Code:
Syntax error on line 51 of /etc/apache2/sites-enabled/000-default:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
line 51 is "php_admin_flag safe_mode Off" and if i remove that line i get apache started but i can only run html files as php doesn't seem to be working/installed as when i got to a .php file it just downloads

and help will be very much appreciated!

Last edited by steve51184; 04-26-2008 at 05:24 AM.
 
Old 04-26-2008, 05:25 AM   #2
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
can i please get some help with this?
 
Old 04-26-2008, 06:21 AM   #3
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
seems php wasn't enabled as an apache module (weird) but all sorted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-curl trouble wificonnexion Linux - Newbie 7 05-11-2011 12:27 AM
retrieving failed: curl failed: exited with 19 or signal 0 msalimane Mandriva 4 01-25-2005 10:24 AM
curl/php/apache install problems ewlnxnewB Linux - Software 2 10-22-2004 03:33 AM
Apache/PHP - failed to open stream ridertech Linux - Software 1 08-10-2004 09:38 PM
PHP and CURL install on Mandrake 9 dmcentire Linux - Distributions 0 10-21-2002 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:44 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