LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   apache/php not working after failed curl install (http://www.linuxquestions.org/questions/linux-server-73/apache-php-not-working-after-failed-curl-install-637933/)

steve51184 04-26-2008 03:36 AM

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!

steve51184 04-26-2008 06:25 AM

can i please get some help with this?

steve51184 04-26-2008 07:21 AM

seems php wasn't enabled as an apache module (weird) but all sorted :)


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