Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running AWS image with MySQL server installed. I am trying to run a php DB backup script but have a few basic questions. I have installed php. Is there a specific dir where all php scripts must reside/ launched from?
I have searched several forums but none address such basic questions...thx for the help!
First things first: what is this AWS you're referring to?
In general PHP scripts are "launched" (run/executed/...) in a web-environment.
If AWS (?) expects other means, try using cron, the OSes way of executing
scheduled tasks.
Cheers,
Tink
P.S.: When asking questions it's sound to assume that people know nothing about
your set-up, so providing essential information ahead of time is going to give
you a far better chance of helpful responses.
E.g.:
I'm running AWS, a <.......> product on a LAMP stack w/ apache2 2.1.14 on
moohluntu 10.10 ....
PHP (PHP hypertext Preprocessor) is mostly a web based language for creating web appliations. However it does have command line access when you install the php-cli modules. So to answer your questions you can try by typeing the following to get the include_paths which contain the default scripts used by the php language engine
Thanks guys for your responses. Allow me to clarify, AWS stands for Amazon Web Services. I have a virtual machine running an image of CentOS 5x hosting MYSQL. I want to automate backups of several schema. To accomplish this I am using a php script that I run from terminal. Eventually I would like to run a cron job, but at this point I'm simply testing out the script. Since I am an absolute newbie, I was trying to rule out that I had placed the backup script in the incorrect dir to account for the errors that I am getting (e.g. :command not found, /: is a directory, and syntax error)
Well.. if you're using MySQL I'd not bother trying to take back-ups from
php; unnecessary overhead.
Have a look at
Code:
man mysqldump
Unless you need to be able to do ad-hoc backups via a webinterface, that is.
But even then it's probably easiest to install myPHPadmin, and do it from
there ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.