Accessing webserver - html

I have a vague question and I'm not excactly a computer specialist, so don't be too hard on me.
I have a program running on a linux server, which is assembled in a html document, which I run on the linux server using firefox. Basically it's a number of png pictures, which I can interact with. I can click on them, and data about this particular picture appear. This data stems from a mysql database.
Everything is working fine on the linux server.
Now I'm trying to acces this program through another computer coupled up on our local network, by pressing the url of the linux server into a webbrowser. This also works. I see excactly the same png files, except when I click on them, nothing happens. It seems there is no connection to the mysql server, where the data is on.
I know it's vague, but does anyone have a clue about what I might be doing wrong?
Thank you

First step see the permissions on the server side!
Second step see how you are doing the connections!
For more help you have to explain how you are doing these two steps.
I had a similar problem with a file upload and it was due to errors performing these two steps.

Related

How to find MySQL database in AWS

This may sound like a silly question, but my client had me working on a dev version of his website, and now wants me to push changes to the live AWS server.
He's given me access, however I can't for the life of me find the MySQL database in AWS. I am given to understand it should be located under RDS but there seems to be nothing there:
Can someone tell me where to find it then? Did the client send me to the wrong server or something? He is not technical at all so not of any help.
You can use the tag editor to find all the resources that are running in the aws account (which can be tagged). Go to the tag editor and then select all region and resources to see where the db is running. Maybe its running under some other region and you are looking in the wrong region. Hope that helps

Mysql For Excel: No Connection Showing

I am having an issue for Mysql for Excel plugin, when I first installed it, it was showing my local connections, etc. I shut the programs and re-opened it and it has refused to show anything since then, it does not show local connection or remote connection - but everything is working well from MYSQL Benchmark, I can see all the connections, etc, but the plugin in excel is just blank grey screen - as shown in the screenshot, I have uninstalled and reinstalled both my excel and the plugin, still giving the same error, any ideas or help will be appreciated
Working solution from https://bugs.mysql.com/bug.php?id=96047
Simply start up Excel, click on File at the top left, click on Options
at the bottom left, select General in the Excel Options dialog and
under User Interface Options select Optimize for Compatibility, click
OK and restart Excel. Your connections should now appear.
Eureka Eureka I found it
The same thing has happened to me. It was working and then the next time no connections. I have spent hours and days and weeks trying to get it to work again. After weeks of trying, I found the solution.
Apparently, Microsoft did a security upgrade to Excel.
Solution:
File
Options
Trust Center
Trust Center Settings....
Uncheck Enable Protected View for files originating from the Internet.
apparently all of Mysql bugs relating to this say that you can fix this by updating Microsoft Office. Go to File > Account > Update Now
I hope that helps

Can't log in to an app running on LocalHost - no network activity?

I'm working on an app with a team. They are able to log in fine when running it on their local servers, however when I try to do so I get 'Invalide username / password' and no network activity or console errors in dev tools.
I have no idea why this could be, we're working on the exact same code - clearly it's something on my machine.
Has anyone come across anything like this before?
(Have tried other browsers and still nothing).
Maybe you need to check your server instalation on your machine.
For example, if you are using XAMPP to manage your Apache maybe there is some configuration that was set in the wrong way.
My advice is, save your code and re-install your server, pay attention to all configuration details and see if the problem is solved.

MAMP - suddenly getting 404s on my localhost

I have a very simple MAMP setup, with my index.php and related files in my htdocs folder. I was rolling along fine last night, being able to access the files by typing in things like localhost/index.php. Now, all of the sudden, I get 404s (file not found on this server) when I try to connect to any of the pages that are in my localhost folder or subdirectories of it.
What's more, when I just type in localhost, it shows me some of the directories but DOES NOT show any of my .php files, even though they show up when I perform a ls in the command line.
My MAMP app shows that I am connected to my Apache/MySQL servers. I can still access the localhost/MAMP homepage. But for some obscene reason, all of the sudden my php files are inaccessible. I have changed nothing inside of them! What's going on?
Edit: Turns out I needed to change the permissions of my php files -- they were set to read and write only for sudo and read only for everyone else. I ran chmod 777 on the applicable files and things were back to normal, but this begs several questions:
Why was it working earlier then changed without me ever modifying the file permissions?
Why should I have to make it writeable for other users to be able to access it on my local host as the admin user?
If I were to deploy this code in the wild (I know MAMP isn't used that often in the wild, but still), what would I do? Wouldn't creating these kinds of permissions result in serious security holes?
EDIT 2: Aaaaaand now it's not working again. Again, no changes made to file preferences, etc., just a few tweaks to the actual php files themselves. I don't have any sharing enabled under my sharing settings in System Preferences... this behavior is really starting to become frustrating.
Open Activity Monitor and make sure all instances of Apache and MySQL are closed. Sometimes MAMP has a tendency to not actually quit those processes and the next time you start it up they're still running and it generally messes with things (how's that for a technical explanation?).
Make sure there isn't any other process that's trying to use localhost for any reason. I came across this problem with POW installed. The POW process had stopped responding and it ended up interfering with MAMP's Apache.
Make sure that MAMP's settings haven't somehow been changes. I've seen MAMP revert custom document roots for seemingly no reason which can cause this.
I'd say even before any of this open your system preferences and make sure your Mac's own built-in Apache is off. You'll be able to see this in the Sharing section (it looks like its been moved in Mavericks however).
Make sure you're not routing traffic through a VPN or SSH using Sidestep. I had this problem after going back to an old project I built with MAMP while working from a coffee shop.

SQL Component Connection issue in IDE

Good evening guys.
I'm currently trying to get started on development of a project to make my own life a little easier. Essentially, i want to connect to a MySQL database running on a remote server, and then go from there with a few various options for usage. The database in question is used for a Joomla! installation, and my focus will primarily be managing articles from a desktop application (as opposed to using the administrator backend on the website).
I've allowed my own host access to the remote servers (via the CPanel web interface used by my hosting provider), and ensured that LIBMYSQL.dll is inside the RAD Studio\9.0\bin folder and again inside my executables folder (so as to avoid any of the issues related to being unable to init. the driver). I've connected to the server successfully by using MySQL Workbench and can freely query the table. Now, onto the problem.
This is my first database application so please understand that a simplified or excessive explanation may be needed
I'm having issues setting some of the component properties at design time. I've got a TSQLConnection component, a TSQLDataSet component, and a TSQLTable component. I've set up the server properties in TSQLConnection to work with my server.
However, if i try to retrieve anything from the database inside the Delphi XE2 IDE (i.e. the login prompt appears) such as changing Active property to true, i get a Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10061) error (where 'x' relates to part of my servers IP).
If i run the application itself though, and then click on the "connect" button i've got on the interface, it connects fine with no errors. I added ShowMessage routines to the AfterConnect, AfterDisconnect, and OnLogin events of TSQLConnection to verify it was actually going through, and all of them functioned as i'd expect when successful. As i've not coded for it to do anything outside of that (due to still learning the basics), there's no data visible on the interface for me to work with, but the connection at least appears to be there.
To clarify, i can connect from the application i developed (as well as from MySQL Workbench, but not from within the Delphi IDE itself.
So, where am i going wrong with this?
I'm guessing it's probably some oversight by myself due to my lack of knowledge on the subject of databases, but i'm very keen to expand out of the desktop environment and start working with some more areas of the IT world (without losing the development side of things that i enjoy so much).
As #SertacAkyuz pointed out in the original comments, it was indeed an issue related to my connection, specifically Firewall settings. I had assumed that "Connection Refused" was related to the connection attempt being made, but being actively refused by the remote server. The more you know.