LOGO
General Discussion Undecided where to post - do it here.

Reply to Thread New Thread
Old 08-23-2007, 05:50 PM   #1
thomaskkk

Join Date
Oct 2005
Posts
518
Senior Member
Default Is this possible? Hosting website on FTP
I'm pretty comfortable with running my own FTP, but I want to host a page; Quote Management System. http://sourceforge.net/projects/rqms/

Now... Any way to do this with my FTP server...? Would it be somehow possible to make clients use http:// instead of ftp:// ?


(I have no idea which forum this should go to, a mod can move it to be appropriate one)


edit: Basically, I want to host a page using that Quote Management System. The ZIP I've downloaded contains a lot of PHP files... Now, what do I need to start hosting my page?
thomaskkk is offline


Old 08-23-2007, 06:19 PM   #2
thomaskkk

Join Date
Oct 2005
Posts
518
Senior Member
Default
Ok so I started my own Apache server on my XP machine (I know), and managed to get a "It works" screen when I test it. Now, what do I do with all these PHP files to use my Quote Manager?
thomaskkk is offline


Old 08-23-2007, 06:31 PM   #3
kesFockplek

Join Date
Oct 2005
Posts
642
Senior Member
Default
You would need php running as well, which is a server application which basically turns php files into web pages, and probably an sql database server. Your best bet is to uninstall apache and download easyphp http://www.easyphp.org/index.php3?lang=en which means you can just install it, dump your php and html files in the "www" folder or whatever it is, open your browser and away you go. It has everything you need built in.

edit: as for the "running it from my ftp server", unfortunately you can't. The fact you have an ftp server means there is ftp software running, which is designed solely to handle connections and file transfers, not display web pages or "decode" php files, or access databases. The server would need a web server, php and sql installed just like you have to have to see the pages on your own pc.
kesFockplek is offline


Old 08-23-2007, 07:06 PM   #4
thomaskkk

Join Date
Oct 2005
Posts
518
Senior Member
Default
You would need php running as well, which is a server application which basically turns php files into web pages, and probably an sql database server. Your best bet is to uninstall apache and download easyphp http://www.easyphp.org/index.php3?lang=en which means you can just install it, dump your php and html files in the "www" folder or whatever it is, open your browser and away you go. It has everything you need built in.

edit: as for the "running it from my ftp server", unfortunately you can't. The fact you have an ftp server means there is ftp software running, which is designed solely to handle connections and file transfers, not display web pages or "decode" php files, or access databases. The server would need a web server, php and sql installed just like you have to have to see the pages on your own pc.
Thanks. I kinda got far with Apached, installed PEAR and the PHP module for it. But I keep getting the "DB Error: extension not found" error... I'm gonna try to fix this, and if it doesn't work, I'll try Easyphp. Is it free?
thomaskkk is offline


Old 08-23-2007, 07:09 PM   #5
NicolasOL

Join Date
Oct 2005
Posts
477
Senior Member
Default
Thanks. I kinda got far with Apached, installed PEAR and the PHP module for it. But I keep getting the "DB Error: extension not found" error... I'm gonna try to fix this, and if it doesn't work, I'll try Easyphp. Is it free?
Yes, easyphp is absolutely free.
NicolasOL is offline


Old 08-23-2007, 07:20 PM   #6
thomaskkk

Join Date
Oct 2005
Posts
518
Senior Member
Default
Yes, easyphp is absolutely free.
Isn't Apache far superior then Easyphp?
thomaskkk is offline


Old 08-23-2007, 07:24 PM   #7
NicolasOL

Join Date
Oct 2005
Posts
477
Senior Member
Default
Isn't Apache far superior then Easyphp?
Yes it is. /searches for oblisk's slap-forehead ascii image


That is why Easyphp is actually apache+php+phpmyadmin+mySQL all configured and ready to use.
NicolasOL is offline


Old 08-23-2007, 07:56 PM   #8
thomaskkk

Join Date
Oct 2005
Posts
518
Senior Member
Default
Alright, so I'm trying out EasyPHP... Edited the config file to tell my DNS is oblisk-kicks-ass.org or whatever, but if I plug that into my browser, it can't find it. With regular Apache I could at least get the "It's working" screen... I tried restarting the server many times. Should I just paste in the config file here?

edit: awesome, fixed it. Now to try to get PHP running and stuff.
thomaskkk is offline


Old 08-23-2007, 08:00 PM   #9
Onervemurce

Join Date
Oct 2005
Posts
326
Senior Member
Default
Alright, so I'm trying out EasyPHP... Edited the config file to tell my DNS is oblisk-kicks-ass.org or whatever, but if I plug that into my browser, it can't find it. With regular Apache I could at least get the "It's working" screen... I tried restarting the server many times. Should I just paste in the config file here?
when you acces the server from your own network you have to use the internal addy, eg http://192.168.x.x or http://localhost
Onervemurce is offline


Old 08-23-2007, 08:04 PM   #10
thomaskkk

Join Date
Oct 2005
Posts
518
Senior Member
Default
I get the same error that I had from Apache that made me move to EasyPHP..


DB Error: connect failed Is there a log or something I can show you guys so you guys can tell me what's wrong?
thomaskkk is offline


Old 08-23-2007, 08:11 PM   #11
Onervemurce

Join Date
Oct 2005
Posts
326
Senior Member
Default
I get the same error that I had from Apache that made me move to EasyPHP..




Is there a log or something I can show you guys so you guys can tell me what's wrong?
Looks like you haven't set the connection string right but I'm no expert. Within the php app you are trying to run there is a config file which should hold the mysql connection details, make sure you're passing the right arguments. Also did you create the database yourself with sqlmanager or is the app supposed to generate the db itself?
Onervemurce is offline


Old 08-23-2007, 08:27 PM   #12
thomaskkk

Join Date
Oct 2005
Posts
518
Senior Member
Default
Looks like you haven't set the connection string right but I'm no expert. Within the php app you are trying to run there is a config file which should hold the mysql connection details, make sure you're passing the right arguments. Also did you create the database yourself with sqlmanager or is the app supposed to generate the db itself?
I think the program generates itself one, and I need to tweak it... Anyway, I'm going to sleep, I'll read the replies tomorrow.

I knew this was going to be a pain, but [cursing]
thomaskkk is offline


Old 08-24-2007, 05:20 AM   #13
thomaskkk

Join Date
Oct 2005
Posts
518
Senior Member
Default
bump!!

I keep getting the "DB Error: connect failed" error. Any ideas?

edit: Fixed that, the site WORKS, but I keep getting a mySQL error, seeing it can't connect to it. But I have my DNS set up correctly. Madness!
thomaskkk is offline



Reply to Thread New Thread

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

All times are GMT +1. The time now is 12:55 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2
Design & Developed by Amodity.com
Copyright© Amodity