Hello im using Ubuntu and for example i installed nginx via apt-get and via passenger, now i have two nginx.conf location (/opt/nginx/conf/nginx.conf and /etc/nginx/nginx.conf) (but i removed first nginx installation with apt-get remove nginx) where i can ensure what configuration file (nginx.conf) /etc/init.d/nginx start will use ? It si more general linux question than nginx related.
One approach is to rename one of these configuration files and see whether the service can still start.
In Debian-based Linux, you can use dpkg to find the package to which a file belongs:
dpkg -S /etc/nginx/nginx.conf
Note that this will only work for files installed by dpkg (and therefore apt-get, Synaptic, USC, etc.). In this particular case, I'd wager that passenger installs into /opt, since an alternate package manager installing into /etc would be borderline evil.
Related
I have a linux server (completely new, web hosting, nothing is installed into it), and want to use a "wget" command. Currently, it is not found. Kernel version 2.6.32-896.16.1.lve1.4.54.el6.x86_64
I am completely new to linux, tried to solve this issue by myself, but couldn't do it. I log in into this linux server via PuTTY via my Windows OS laptop.
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
To get "wget" to work, I will need to install it. I guess I will need to install first "sudo" and/or "apt" and/or "apt-get". But couldn't do it. Please give me a short list of steps in which order to install them.
Given your kernel version, it looks like your Linux distribution is CentOS 6 or RHEL 6. Try installing wget with this command:
yum install wget
You must be root when you run this command.
Incase you using Debian version of Linux, use the following:
sudo apt-get install wget
From kernel version, it looks like you are using RHEL/Centos 6.
Please check -
https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html
If the mentioned dependencies exist in your system, you can directly fire the rpm command
rpm command guide -
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html
If it doesn't work, you need to use yum command. (You need to configure yum command first, if not configured already)
yum install wget
To configure yum command in centos6 -
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
Note - you need to be root user for above activities.
I am trying to install mod_pagespeed for my Apache2 server that I have serving up my Django application. I am using Webfaction as a hosting service, and am in the apache2 directory. I am trying to figure out how to install Apache2 modules as I haven't done a lot of server configuration in the past, but all the tutorials I'm seeing use sudo and I don't have root access to use sudo, and all the tutorials I'm reading have installations for Ubuntu and Fedora with extensions of .rpm, and .deb but all the modules in my apache2 modules directory have an extension of .so . Does this mean I have to use a different installation method ? What is the command to install mod_pagespeed in linux ?
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
rpm -U mod-pagespeed-*.rpm
Configure and restart Apache per your usual process. I'm assuming this system already has at installed. If you encounter permission errors during the rpm step, you'll need to extract the contents and install them manually. Edit: your copy of tar seems too old to understand rpm format. Use this command instead.
rpm2cpio mod-pagespeed-*.rpm | cpio -idmv
Then copy the .so file to the proper location and do a LoadModule declaration in your Apache config to load it upon restart.
Source: https://www.digitalocean.com/community/tutorials/how-to-get-started-with-mod_pagespeed-with-apache-on-a-centos-and-fedora-cloud-server
I am struggling to find a proper solution to this. So, well, I have a dedicated server with Hostgator running Cent OS. I have followed the instructions here and done the following things:
curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.6.2_omnibus.5.3.0.ci.1-1.el6.x86_64.rpm
sudo yum install openssh-server
sudo yum install postfix
sudo yum install cronie
sudo service postfix start
sudo chkconfig postfix on
sudo rpm -i gitlab-7.6.2_omnibus.5.3.0.ci.1-1.el6.x86_64.rpm
I have done all of this things in my root directory. Now, this might seem a very stupid question, but what I am trying to understand is 2 things:
How do I access the front-end? On what url by default it should be available?
Would it be possible to get it up on sub-domain?
I have followed many links but didn't clearly understand any of those, just adding a few links from SO for reference:
How to configure GitLab as a subdomain in nginix.conf
How to change URL of a working GitLab install?
Install GitLab on Subdomain
Now, this could be a very simple question, but I believe I am struggling with the basics here and any help here would be really appreciated.
You are using the omnibus package which means the configuration is in /etc/gitlab/gitlab.rb. Read the documentation if you haven't done already. For the subdomain check the nginx section.
I need to install Java, Solr, and update Git on this dedicated server.
I have ssh root access and was going to use the apt-get method to install what I need. But says this command is not found. Is this not a core Linux thing? I am guess I need to now look into installing this before doing anything else?
I don't have CPanel access.
This is solved. I did not know there was a different package manager with CentOS and Ubuntu. I used yum and it worked. I will mark this answered once I am able.
while searching for installing apache web server in linux ubuntu lucid ,I found that some articles use the name apache2 while others use httpd..Is apt-get install apache2 the correct way to install?
I want to remove all of my current apache2 installation ,and install everything fresh. Should I use
sudo apt-get remove --purge apache2
I currently have apache in /etc/apache2
apache2 is Ubuntu's name for the Apache httpd version 2 branch (currently using 2.2, I think). The best source for information on Ubuntu packages is probably its own documentation; see https://help.ubuntu.com/10.04/serverguide/httpd.html. But yes, those two commands are correct.