PDA

View Full Version : Executing PHP scripts



ThomasD
06-27-2009, 01:44 AM
I have a DirectAdmin account and a domain name. I uploaded some PHP files, but if I try to execute them, my browser just downloads the files instead of showing a webpage. I changed the permissions to be able to view the files online, but I can't see them yet.

Another question: I can't access PhpMyAdmin, because I have to enter a username and password, but I don't know which one. I tried the one I use to access DirectAdmin, but that didn't work too.

Can anyone help me?

(I am not sure if I am posting in the right forum. If this is the wrong one, I'm sorry.)

Dravu
06-27-2009, 02:34 AM
Is PHP installed on your machine?

Danijell
06-27-2009, 02:43 AM
Hi,

Your server need to have PHP installed so he can processed php file and send it in html code to browser.

cd /usr/local/directadmin/customapache; ./build php n

Danijel,

nobaloney
06-27-2009, 03:28 PM
ThomasD:

You should contact your hosting company; they're the ones who can help you.

Jeff

ThomasD
06-29-2009, 08:01 AM
PHP is installed. I've contacted my hosting company and I am now waiting for their answer.