In which directory should I put my server program? - server

I'm maintaining a small server-side project on a ubuntu 14.04 server.
The server program is in my home directory till now, and I want to move it to a public location so that someone else could take over my work.
Where should I put the server program?
Is /srv a good choice?
Thanks.

you can put into /var/www folder

Related

Editing files in samba directly using Linux?

I have a samba host computer where the remote files are located. I want to edit those files from my laptop without copying them first just like on windows. I am using VS Code on Ubuntu and same on Windows, both OS in dual-boot. I am in process of transitioning my workspace to Linux but the problem is that I can't edit files directly because VS Code won't display samba mount points. I figured out "gedit" can achieve the editing directly but who uses that as a code editor?
I am looking for a service or application that allows me to mount the samba shares in the way that VS Code can see it and be able to edit directly from it. I don't know any keywords to find the solution to my problem so any help would save me time.
Answering my own question
It turns out that I just had to install this package:
gvfs-fuse
Now i can edit files directly to my samba share regardless of what application I use.

back up services on centos and restor it on another clean centos

i'm going straight to question..
is there any way to backup services configured on a Centos without system file of centos?
for example I want to back up OpenVP-n config and then restore it to another clean centos and just changing a few files..
or even back up a full Direct admin config and then restore it in another clean centos OS?
i don't want back up the whole centos..just i want backup configs on it..
I search out about this alot..but i didn't find anything working..please share your experience about this..
Is this even possible?
any help...?

Installing Zend Framework on Xampp and windows 7

I have worked on Zend-Framework on linux environment since last 6 months where i used to install the zend framework by simply creating a virtual host and in the corresponding virtual host i will change the path to the zend public folder.. In this way I installed zend framework on Linux (Ubuntu) but currently i have requirment to install to zend framework on windows 7 + xampp , i am not able to install this.. i stuck there...please help me to install zend on windows + xampp environment.
Thanks in Advance!!
You can do pretty much the same as you have done under Linux. You will need to go in your Xampp install. There, you will have a bin folder (might be an other name) which will contain your apache folder. In that folder, dig deep enough to find the httpd.conf file.
In that file, search for the include of the vhost.conf files. It will probably be commented out with a # at the beginning of the line. Uncomment it. Take note of the path and find the vhost file (most likely in the extras folder).
In that file, you can define your vhost as you see fit.
Last step, go to C:\Windows\System32\drivers\etc and edit the hosts file. To edit it, you have to be admin (launch NotePad as admin through right clic menu > Execute as administrator). Add the name of the vhost you just created and make it point to your localhost ip address.
Restart Xampp, it should now find your freshly created vhost.

Issues with meteor app on vagrant share

I have a vagrant VM (virtualbox) setup with meteor. My host and guest are both Ubuntu. The VM contains a vboxfs share folder setup through the Vagrantfile. The behavior I am noticing is similar to a NFS mount.
I am able to create a meteor project in this shared folder, but when I run the project I get errors pointing to mongodb.
If I follow instructions on
https://github.com/pixelhandler/vagrant-dev-env/blob/master/README.md
my app works just fine.
Upon further investigation it seems that MongoDB does not work on NFS shares, http://www.mongodb.org/display/DOCS/NFS
Has anyone else run in to this issue? and if so, have you figured out a (non-rsync) solution?
I plan to send link of this question to 10gen, perhaps someone from their team can answer it.
Not sure what Mongo's plans are re running on NFS / vboxfs, but you could work around this by running your own MongoDB not in the shared folder (eg, use the ubuntu mongodb package). Use the MONGO_URL environment variable to tell meteor where to connect. If you pass this variable, meteor will not try to start MongoDB in the meteor project directory.
You can move the data dir somewhere inside the VM, and use a symlink from the vagrant folder:
cd /vagrant/.meteor/local
ln -s ~/db/
This means the data will not be shared, but you probably want it git ignored anyway.
(https://grahamrhay.wordpress.com/2013/06/18/running-meteor-in-a-vagrant-virtualbox/)
grahamrhay's solution would not work with the vagrant box started on Windows. There is no way to make symbolic links on windows for vagrant, at least not for administrator accounts.

~/oradiag_root folder after zend server ce installation on Centos 5.*

does anyone know why this folder: ~/oradiag_root appears under home - cd ~ in Centos after Zend CE installation and whether it can be removed and is it possible to stop that to be created?
many thanks
OK, it looks like it some sort of legacy and can be removed however reboot might be required which will recreate it but will start from scratch thus making it smaller.