Uploading a Coldfusion Website - mysql

So, I've created a site; using Mysql 5, Coldfusion 8 and Dreamweaver CS3. I have a 'GoDaddy' windows hosting plan - and have just uploaded my database. I have uploaded my site - But it doesn't work! I have an index.cfm page, so it should work, my URL's are correct. I'm not sure why thats not working!!
Also, I am woundering if I need to put some code in my Application.cfc page that connects my site to my database on godaddy, as example:
DRIVER={MySQL ODBC 3.51 Driver}; SERVER=bridgettips.db.5452582.hostedresource.com; PORT=3306; DATABASE=bridgettips; USER=bridgettips; PASSWORD='invu4uraqT'; OPTION=0;
Or do I need to put something in my 'server' and 'Port' box - it is Server - localhost Port - 3306 at present, in Coldfusion.
Also, there is a problem with saving my pages and editing recordsets now - it says that it requires a 'cold Fusion data source'. I think this may be becasue in dreamweaver is changed localhost:8500 to my URL....? (Do you think this is why it no longer works?)
Sorry about so many qustions! It's only that I have had my hosing plan for about 10 days now - and its costing me a lot! I need to have it working asap!
Thanks for any help at all....

Steven,
I have tried to use GoDaddy as a CF host, and personally cannot recommend them. In my opinion, they have no business trying to host CF.
I can recommend another host which I use, but I'm not sure it's proper to name it here. (Perhaps someone else can chime in and educate me on this?)
As for your Datasource issue - you most likely need to let GoDaddy know that you need a DSN - now they may have a way for you to do that yourself, but sometimes it's the provider who must set that up for you.
Also, keep in mind that when you are in the hosted environment, you'll need to create any mappings you have locally, and if you are using any paths for cffile and the like, they will be different on the host than locally.
You can set up some variables in application.cfc for that, to switch based on the IP address. Let me know if you need some help with that and I'll be happy to post some code samples for you.

You will need to create a DSN for your datasource in order to get it to work. In the GoDaddy Hosting Control Panel there is a DSN option under the "Databases" pull-down menu. Once you've got the DSN created, just use the name of the DSN in the "datasource" attribute of your queries and you should be good to go. That should solve both of the issues that you're having.

Related

How do I add a Remote Connection to Ionos Database for ExcelforMySQL?

I have a database that I have created for a friend of a mine that he would like to store his data and work directly from on a daily basis. Recently I came across ExcelforMySQL and thought this would be a perfect AddIn for him to use.
I have successfully linked the AddIn to the database (Xampp Local connection) and this loads up fine but when I move the database onto a webserver that I have with ionos(1and1) and enter the Host Details along with the Username and Password, I get the following error:
Connection attempt failed.
Unable to connect to any of the specified MySQL hosts.
When I click Show Details:
All it says is One or more errors occurred.
Would really appreciate it, if somebody could advise on how to fix this, as I really want to be able to work live on the data and update the changes from the user directly in Excel if possible and this addin looks like it does that.
If anyone has any other suggestions then I am happy to hear them as not fussed as what is used as long as it works.
Thanks
I had a similar problem to yourself with a number of my own sites/DB's hosted on Ionos. After a bit of searching through their help they state that access from outside your Ionos package is not possible. Unfortunately we're stuck with their hosted version of PHP My Admin in the control panel.
Although I have found that MySQL-front works great and bypasses the Ionos restrictions. Google is your friend...
Maybe a bit late for you but for others who come across this question as I said google is your friend...

How to password protect website hosted on Amazon Web Services (AWS)

I wanted to create a website that would be like a dropbox of sort, which just has files that me and my organization can access. I wanted to password protect the website, just a simple username and password. I have my own domain. I have been looking all over the web to find how to do this(I am a beginner) and found that using httaccess and htpasswd would be used to secure a website similar to what is shown here: http://www.htaccesstools.com/articles/password-protection/
But I cannot seem to get it to work. I am using the s3 bucket and putting the httaccess and htpasswd file in the same folder as the index.html file. Do you know how I would get my site to have a simple password protection(thats not seen in the source code or by typing in the html)? I am not sure if I am finding the directory correctly or not to implement this password protection correctly. Thank you for taking the time to read this and hopefully this makes sense!
Anyone else had this issue?
Amazon AWS alone won't do it. htaccess and htpasswd are also not the right tools for what you want to do.
Get yourself a cheap hosting account with a company like hostgator or godaddy or namecheap or any other that will host your web page and give you PHP and MySQL.
You cannot accomplish what you want just using javascript/jQuery. Those languages run on the browser, but you want to store your files on a server. Therefore, you need the language that controls the server - that is usually PHP. (The other popular solution is ASP, which is by Microsoft and runs on costly and complex Microsoft servers -- PHP is free and runs on (free) Linux and is therefore what ALL of the cheap web hosting companies provide. MySQL is the (free) database that is analogous to Microsoft SQL)
Next, watch a video tutorial on creating a PHP / MySQL login system, such as the ones over at:
phpAcademy (now called codecourse, apparently)
theNewBoston.com
You need to learn more about:
PHP sessions
Ajax
jQuery
MySQL (possibly)
On a basic website, you can stick your files into directories and control who can access those directories by whether or not they are logged in.
You can determine if a visitor is "logged-in" or not by asking for a username/password and setting a session variable. Session variables are just variables that are stored on the server, rather than on a user's own computer (of course, that wouldn't work since every visitor has his own computer and your files are stored on a central server -- so that is where the security (variables) must reside, right?)
Anyway, in a weekend of video watching and trial-and-error you can probably get something cobbled together that will do what you want.

CakePHP without mod_rewrite problems

I've developed a website using CakePHP and I am now trying to host it on the live server. I couln't get much help from the hosting service, but I think they do not allow mod_rewrite (I get 500 server error whenever I try to turn it on).
So, I looked into using CakePHP without mod_rewrite. Now I can at least see the website, but I'm getting tons of errors, in particular:
The css and js files are not found.
There seems to be problems with the database, although it might be related to the problem above, I can't tell for sure.
The live website can be seen at new.enviro.lu.
The working website can be seen at enviro.webforall.be
Can anybody point me into the right direction to solve these problems?
I'm using CakePHP 1.3.4.
The problem with the CSS and JavaScript pages not showing is that you have Apache's DocumentRoot point to the wrong directory. The DocumentRoot should be /app/webroot, but you have it set to Cake's root directory. You can see that the paths work if you access http://new.enviro.lu/app/webroot/.
The database error on the page is:
Error: Database table content_pages for model ContentPage was not found.
This suggests that either the content_pages table has not been created as the error message says or the database configuration points at a wrong database.
Try contacting your hosting provider and ask them to turn mod_rewrite on for your account, or ask them how you can do it. CakePhp will not work without it.

access - properly hosting backend of access database

i would like to host an access backend database on my computer and allow remote connections. every client will have their own access front end. is this a common practice? what would the connection string look like? ip address/localhost ??
would it be better to have a mysql backend? i need it over the internet?
I explain in details how and why a WAN (wide area network over the internet) will not work with a JET based back end with ms-access. The following article thus explains some choices and workarounds:
http://www.members.shaw.ca/AlbertKallal//Wan/Wans.html
In a nutshell when you open a access database, you are opening a windows file, like word, or Excel, or whatever. So, there not really a concept of a connection string and even really anything more then a concept of opening a file. I outline some solutions in the above article, and you are most free to continue to use Access as the front end (forms/reports/code) etc, but over the internet, you need to use different technology then that of a standard windows file open.
Is this on a LAN or over the Internet? On a LAN, you can share the folder with your Access file on your pc and give users permission. They would need to link to your tables from their Access file. Over the Internet, you're going to have to find a solution to get through your file-wall and a lot of other security & connection issues.
You can share an Access database over the Internet using EQL Data: http://eqldata.com. There's a free 30-day trial.
(Full disclosure: I work for EQL Data.)

Uploading a Content Management System Website to the internet

Before I start I want to say this is my first site I am uploading that has a database - so I will appreshate any help whatsoever!
What site is the best for webhosting - the cheapest and most reliable? I'm not sure how big my database will get - but I need to have a lot of space! (just in case).
I, of cource, don't want my site to break down, so need a very reliable well known site. I have an account already with 1and1.com - and know about Godaddy.com but neither of them are really THAT cheap - if you know what I mean. There is one site I found : "http://www.000webhost.com/" - does this seem alright?
Also, when I upload my site and database - do I have to leave my computer on full time to allow my database to be added to etc?!! Is there some way I can upload the database from my computer - so it's not anything to do with my computer ... or something.
As you can tell - this really is my first site - and I have really know idea.
Im using MYSQL, Coldfusion and Dreamweaver btw.
So again, any help would be great. thanks.
Cheap, Reliable, Easy.
In general, you can only pick two from the above.
Check out bluehost.com.
No, you do not need to leave your computer on. You definitely want to put the database on their server, not yours. It sound like you need to do some research on that.
Upload the CMS files from your local system and then perform an export of your MySQL database (software like phpMyAdmin makes this dead simple) and then import it to your new database on your new host. Modify the configuration of your CMS (database host, username, and password will need to change) and check that it connects and reads the database properly and everything works right.
That way you don't need to leave your computer on all the time - you're literally moving your entire website to their server.