Koozali.org: home of the SME Server

PHP Setup in ibays

Offline igardiner

  • *
  • 24
  • +0/-0
PHP Setup in ibays
« on: January 17, 2008, 02:33:13 AM »
Hi All

I've installed static websites on SME Server before, I currently have 3 running at the moment. I am looking at making one of them into PHP with MYSQL is there any documentation on how to set up the files on the web server. I have placed my a few pages in the html folder of my ibay and all is working well there. Do I put all the script files ie Update, Insert, Delete in the cgi-bin folder of the ibay or do I just create another folder under the html to store all these files ?

I have successfully installed phpMyAdmin and connecting to MYSQL, it is just the testing insert statement I am having trouble with.

If there is any documentation that somebody could point me to that would be greatly appreciated.
Totally New to SME

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: PHP Setup in ibays
« Reply #1 on: January 17, 2008, 08:20:24 AM »
Hi All

I've installed static websites on SME Server before, I currently have 3 running at the moment. I am looking at making one of them into PHP with MYSQL is there any documentation on how to set up the files on the web server. I have placed my a few pages in the html folder of my ibay and all is working well there. Do I put all the script files ie Update, Insert, Delete in the cgi-bin folder of the ibay or do I just create another folder under the html to store all these files ?

I have successfully installed phpMyAdmin and connecting to MYSQL, it is just the testing insert statement I am having trouble with.

If there is any documentation that somebody could point me to that would be greatly appreciated.
Enable "Execution of dynamic content"  for the ibay and put all as is in the html folder, do not modify directory layouts as most php applications are coded using relative paths from the top down into the tree of the program files and folders.

See also chapter 14 of the Administrators website in the wiki.
« Last Edit: January 17, 2008, 08:23:27 AM by cactus »
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)

Offline igardiner

  • *
  • 24
  • +0/-0
Re: PHP Setup in ibays
« Reply #2 on: January 22, 2008, 01:27:05 AM »
Thank you for the details
Totally New to SME

Offline Seeking

  • 3
  • +0/-0
Re: PHP Setup in ibays
« Reply #3 on: January 22, 2008, 01:03:54 PM »
Good day igardiner.

Very interesting subject.

Is it perhaps possible to contact you?

I want to put a website together for users to log-in, but I don't have a clue where to start.

I know that I must make use of a mysql database, and make use of php pages.

Any guidance for beginners.

Cheers.

Offline igardiner

  • *
  • 24
  • +0/-0
Re: PHP Setup in ibays
« Reply #4 on: January 22, 2008, 11:00:16 PM »
Hi Seeking

No problems at all, I am a bit of a beginner with PHP myself but have developed many websites with many different languages before so I might be able to help you with it.

Best contact is my hotmail iaingardiner_007@hotmail.com
Totally New to SME

Offline raem

  • *
  • 3,972
  • +4/-0
Re: PHP Setup in ibays
« Reply #5 on: January 23, 2008, 03:41:22 PM »
igardiner

Useful info
http://wiki.contribs.org/MySQL

http://wiki.contribs.org/SME_Site_Maker

Read the script that comes with Site Maker as it gives you the basics of configuring mysql databases that your application can hook into.
...