Web Application VS Windows Application
-
oh great, so what a about connecting to MariaDB, is it the same as mysql, the syntax, is it similar to mysql in every aspect ?? if no what are the differences ??
-
@scottalanmiller said:
@IT-ADMIN said:
i guess installing apache and mysql seperatly is more reliable than just install this ready to use application (i guess lamp only for testing and dev, in production envirnemnt we have to install things seperatly, isn't it)
WAMP is not a package, it is installing the components separately.
LAMP on Ubuntu is this command...
apt-get install mariadb httpd php
That's it.
Sure you manually have to install the components separately on Windows, but that command installs three things on Linux, you just are fortunate and able to install all of them in one command.
They are still three separate things. -
@scottalanmiller but i remember when i installed that linux application i type the following command (in their documentation)
apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr mysql-server php5-mcrypt librsvg2-bin gsfontsso i think this command installed mysql not MariaDB, so i have to upgrade or something ??
i fear if i change mysql to MariaDB, this application will stop -
@IT-ADMIN said:
oh great, so what a about connecting to MariaDB, is it the same as mysql, the syntax, is it similar to mysql in every aspect ?? if no what are the differences ??
It IS what everyone calls MySQL. All tools are the same. You dont' need to know that it is MariaDB at all. No differences at all.
-
@IT-ADMIN said:
@scottalanmiller but i remember when i installed that linux application i type the following command (in their documentation)
apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr mysql-server php5-mcrypt librsvg2-bin gsfontsso i think this command installed mysql not MariaDB, so i have to upgrade or something ??
i fear if i change mysql to MariaDB, this application will stopMost systems call MariaDB MySQL so that people don't learn new names.
-
even if apt-get install mysql not apt-get install MariaDB ??
-
@IT-ADMIN said:
even if apt-get install mysql not apt-get install MariaDB ??
Correct. Unless you are on a really old version of Ubuntu. What's your version?
-
14.04
-
@IT-ADMIN said:
14.04
Just as a side note, I'd update to current before you start a development project. No reason to be so far behind, and when developing it is that much more important not to rely on old stuff.
-
I'm looking, I've not used that old of Ubuntu is a while (year and a half about) and never run MySQL or MariaDB on Ubuntu. I know that Fedora moved to MariaDB in Fedora 19 and RHEL moved with RHEL 7. From what I can tell, Ubuntu might still be actually installing "old" MySQL by default, at least in the 14.04 era. How sad. Well, if that is what is default, that's fine.
-
i installed 14.04 because it is a prerequisit in the doc of that software, for this reason i insalled that
-
@IT-ADMIN said:
i installed 14.04 because it is a prerequisit in the doc of that software, for this reason i insalled that
Of which software? I must have missed something.
-
If you are going to develop an application for internal use, you are going to put it on its own server, of course, right? So you would be starting with a VM that isn't used for any other purpose.
-
@scottalanmiller ah ok, that is a good idea, because i had the intention to use the preexisting server, but now i changed my mind and just grab a new VM and do the dev on it
-
@IT-ADMIN said:
@scottalanmiller ah ok, that is a good idea, because i had the intention to use the preexisting server, but now i changed my mind and just grab a new VM and do the dev on it
Yes, every task should be on a discrete server. You never want to mix things unless absolutely necessary.
I'd start with Ubuntu 15.10 as a minimum. Ubuntu 16.04 is just a month away. And you can consider not using Ubuntu as well, but nothing wrong with Ubuntu.
-
ok thanks for the advice
-
by the way is there any way to prevent users from viewing the source code of the php application ??
-
For development you might also want to have the database server separate from the application server to reduce the chance of coding in dependencies.
-
@IT-ADMIN said:
by the way is there any way to prevent users from viewing the source code of the php application ??
How would users ever see it? You should not need to prevent it as it shouldn't even be possible.
-
I assume that you mean the application users. Users on the server have access to what you give them access to see.