-   Linux - Server (
-   -   apache/php not working after failed curl install (

steve51184 04-26-2008 02: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


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:


apt-get remove apache2 php5 libapache2-mod-php5

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:


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 05:25 AM

can i please get some help with this?

steve51184 04-26-2008 06:21 AM

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

All times are GMT -5. The time now is 11:19 AM.