Koozali.org: home of the SME Server

How to install PHP web application?

Offline Thomas

  • **
  • 65
  • +0/-0
How to install PHP web application?
« on: June 02, 2006, 01:38:46 AM »
I have searched this site and cannot find the info I need.  I have written a web application using PHP and MySQL.  I have it installed in an ibay for the moment but understand that is not the proper place for it.  My questions are:

1) What is the proper way to install a php web application on SME 6.0.1?

2) Where is the Include directory located on SME?   This is the directory where the php include files go.

Any other info I might need to know regarding ways to secure the web app on SME would be greatly appreciated

Thanks,
Thomas

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How to install PHP web application?
« Reply #1 on: June 02, 2006, 04:20:22 PM »
Quote from: "Thomas"
I have searched this site and cannot find the info I need.  I have written a web application using PHP and MySQL.  I have it installed in an ibay for the moment but understand that is not the proper place for it.  My questions are:

1) What is the proper way to install a php web application on SME 6.0.1?
The proper way is to install it in it's own (sub)directory in the /opt/ directory. You can then use a template (and if you want to the configuration databases) to implement it in the configuration files for the httpd deamon.
Quote from: "Thomas"
2) Where is the Include directory located on SME?   This is the directory where the php include files go.
You can find the pear include path in the /etc/php.ini file.
Quote from: "Thomas"
Any other info I might need to know regarding ways to secure the web app on SME would be greatly appreciated

Thanks,
Thomas
Search for a good tutorial on how to configure the httpd daemon to use with php applications or browse through the apache documentation.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)