I have unix ubantu softwere.when I run any php filE in my firefox i got only a pop up window where to save the file ? what should i do?

Recommended Answers

All 2 Replies

Hello,

You probably do not have php installed on in the system. Ubuntu uses apt-get from the command line or software manageer from the gui to add applications. Since it sounds like you already have apache installed, to install php and the php-mod for apache from the terminal (command line) use the following commands:

sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart

The sudo command will run the commands as root.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.