Tag Info

New answers tagged

0

I would actually use CloudLinux, as your exact issues are what it was designed to balance. Many shared hosting evironments add this kernel module to limit their own user resource usage as well.


0

vi /etc/sysconfig/iptables Have You got -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT If no add it into filters and /etc/init.d/iptables restart If this won't help I don't know what can help You :)


0

With your output, it's no iptables problem, when your default policy is set to ACCEPT instead of DROP. You can test that you can connect to port 80: telnet X.X.X.X 80 Or with BSD's nc: nc -z X.X.X.X 80 && echo OK || echo FAILED The problem appears, because of your apache configuration.


0

/etc/security/limits.conf Is the place where you can set such ulimit related defauls or user specific limits. They will get active on new user sessions.


1

I have not installed CentOS 7 myself yet, but you can try linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 quiet **nomodeset** If that works, I would blacklist Nouveau after install.


3

You can override what tool is used to ask for the passwords/passphrases via the environment variable $SSH_ASKPASS. $ echo $SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass excerpt - Password Reading and Handling Password Reading Programs. Why re-invent the wheel. There are lots of programs that have already been written for getting password ...


1

you will need that under nat e.g *nat :PREROUTING ACCEPT :POSTROUTING ACCEPT :OUTPUT ACCEPT -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 you can run this: with example of forwarding 80 to 8080 and so on... Incomming on 80 to 8080 iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 Outgoing on 80 ...


2

I generally use this approach when plugging in a USB based printer. Unplug the USB printer cable from your computer and enter this command: $ tail -f /var/log/syslog Reconnect the USB printer cable, you should see some messages appearing. Press Ctrl-C to stop the logging. Check whether the printer gets correctly detected by the USB subsystem and ...


0

Append the options that you pass in the init script to the tile stream command, but before the stdout/in redirection.


3

for f in *.csv; do IFS= read -r line < "$f" && case $line in (*HEADER*) continue; esac printf >&2 'ERROR: Missing HEADER record for "%s"\n' "$f" mv -- "$f" "${f%.*}.head" done


1

Try: for _file in *.csv do if ! grep -q 'HEADER' <(head -n 1 -- "$_file") then echo >&2 "ERROR: Missing HEADER record for $_file" # mv -- "$_file" "${_file%.*}.head" echo "$_file" "${_file%.*}.head" fi done Using echo line to verify if it works right, if everything ok, try mv line.


0

Zabbix has much more than that one single RPM. This is the list from my Zabbix server - zabbix22-2.2.1-5.el6.x86_64 zabbix22-web-2.2.1-5.el6.noarch zabbix22-agent-2.2.1-5.el6.x86_64 zabbix22-dbfiles-pgsql-2.2.1-5.el6.noarch zabbix22-server-2.2.1-5.el6.noarch zabbix22-web-mysql-2.2.1-5.el6.noarch zabbix22-server-pgsql-2.2.1-5.el6.x86_64 ...


2

I believe in step one it should be: $ cd /etc/yum.repos.d/ not $ cd /etc/yum.repo.d/ At least that's what it is on my CentOS 6.5 system.


0

I guess you have to edit your /etc/rsyslog.conf file by commenting the 9th line: $ModLoad imklog # provides kernel logging support (previously done by rklogd) and then you have to restart rsyslog service: #/etc/init.d/rsyslog restart


-1

I would say you need to install libgcc.i686


1

You might try the Linux version of the software instead of the Windows version. The project website has the source, and I found a tutorial that should work for CentOS 6.5. Otherwise, to run a Windows executable on a non-Windows O/S, you might have success using WINE. Or, there are other GUI database browsers like Valentia. You want the RPM package for use ...


0

You should allow udp port 53 for name resolution and icmp echo for ping test


0

You didn't give many details about your network setup, but assuming that the iptables configuration is on host "A" and you tried to ping from host "B", then here's the answer. You configured iptables to allow TCP ports 22 and 80. All other traffic is blocked because iptables interprets the configuration from the top and you have :INPUT DROP [0:0] set. ...


2

Reset all UIDs and GIDs: for i in $(rpm -qa); do rpm --setugids $i; done Reset all permissions: for i in $(rpm -qa); do rpm --setperms $i; done Try to restart: service sshd restart Does that help?


1

Sounds like you probably broke things by removing setuid and setgid bits on executables that needed them. You may be able to repair things by figuring out which particular files ought to be setuid or setgid and fixing them - by comparing against another machine that's still working, for instance.


2

You're only able to have 1 default route, so you need to delete it before you can change it to something else. I'd try something like this: $ sudo ip route del default $ sudo ip route add default via 162.245.223.67 If you don't want to delete the default route you can also use the ip route sub-command change instead to change the route, which will allow ...


0

Since you specified this is an non-cloned setup I will assume that you are using a virtualization environment for your machine. If so, than the solution that worked for me on a Centos 5 was to simply change the network adapter type from vmxnet3 to e1000. For me it was like this: create a virtual machine in the vcenter(hypervisor). click on edit on that ...


0

I sent an email to Host Gator and I finally got a response from a Linux Administrator at Host Gator: Hello there! HostGator has built a custom firewall that's in place by default on all VPS and dedicated server plans. Luckliy, there is a file in the firewall configuration that is meant to persist iptables configurations. The file is this: ...


0

I have found a solution to this. Basically, I am creating a new printer with a custom backend, that lets me manipulate the incoming data before sending it out again. So I have one printer acting as a wrapper, that receives the data, converts the image, then sends it to the actual printer. To accomplish this, there is an openSUSE RPM package that provides a ...


2

CentOS ships their policies in rpms, so that's not a bad idea for you to do too. I doubt if there is any tool specifically for distributing them. However, installing this rpm on 300+ hosts is another matter and requires/would greatly benefit from some orchestration solution like mcollective, or spacewalk/satellite, or fabric etc. I distribute my policies ...


0

To identify discrepancy in packages removed/installed, you can check /var/log/yum.log*. Scroll back to where NetworkManager is removed, and look at all the packages removed with the same datestamp (removed because they depended on NetworkManager).


1

If you are attempting to view the installation using virsh console, you need to configure the guest to output to the virtual serial console. From the boot screen you can press "Esc" which will bring up a prompt to provide additional boot options. Enter the following: linux console=ttyS0,115200 utf8 This will start the text-mode installation over the ...


0

I would recommend you alter the source rpm of this file; edit the path in which the files will be installed to, so as to not create conflicts between the files you are about to install, and those provided by libpcap.so.0.9.4 (no two rpm:s may be installed which provide the same file on same path both). Or remove from the source rpm those files which will ...


1

To fix this on my CentOS 5.6 installation I did the following: wget http://vault.centos.org/5.6/os/x86_64/CentOS/python-2.4.3-43.el5.x86_64.rpm rpm -ivh --force python-2.4.3-43.el5.x86_64.rpm


2

The error is complaining about missing a specific python module (library): ImportError: No module named snack On my Debian, snack.py is provided by the python-newt package. A quick search of the CentOS repositories suggests that this is called newt-python in CentOS. So, try installing that: yum install newt-python


0

My suggestion, is to reinstall all library in version 2.6 and maybe uninstall python 2.4 but I'm not sure about that part. The problem is now you have Python 2.6 installed and probably use by default, while you have almost none of the following libraries for python 2.6 (that were installed for python 2.4: libselinux-python.x86_64 libxml2-python.x86_64 ...


0

I know it's an old question, but maybe there is a solution: I've found config of vhost @ work: Try this in virtualhost configuration: ( I'm not 100% sure if this would work! :) ) Can someone confirm it? <VirtualHost *:80> ServerName sub.domain.com <Proxy *> Order deny,allow Allow from all </Proxy> ...


1

Installing a second Python intepreter, with a different minor (or major) version number will not interfere with the 2.4 that you have installed at all. What you should do at the end of the compile/install process is running: sudo make altinstall instead of sudo make install as described in the Building Python on Linux docs. So just download the ...


2

Some of those are set by the system administrator with the passwd command. -n This will set the minimum password lifetime, in days, if the user's account supports password lifetimes. Available to root only. -x This will set the maximum password lifetime, in days, ... Other are managed through the PAM module cracklib. The pam_cracklib ...


1

Have you looked at ELRepo? They have kernels from the 3.2 branch for EL5 (and therefore CentOS5) which should run lxc. It might save you having to compile! Have a look here.


1

Apache 2.4 on CentOS: Step 1: cd /etc/yum.repo.d/ wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo Step 2: yum install httpd24.x86_64 Step 3: $ /opt/rh/httpd24/root/usr/sbin/httpd -version Server version: Apache/2.4.6 (Red Hat) Server built: Sep 25 2013 05:25:46 NOTE: config files are in: /opt/rh/httpd24/root/etc/httpd ...


0

Cpanel is a GUI interface for LAMP stack, but its paid. Webmin, ISPConfig, Zpanel is a good alternative for it (free version). All you need to do is to configure them according to your needs. They have modules to provide you GUI interface for easy access. But as in case of Cpanel too all basic configuration needs to be done through commandline first and ...


0

qemu-img might be what you're looking for. You should be able to convert from a vmdk to a raw disk image. Then copy your raw disk image (using something like dd) to your physical drive. This might not work as expected; however, there is another way using autoYaST where you can copy the configuration of your current machine and you can then take that ...


6

Network interfaces can have different names on Linux depending on their type (wired Ethernet, Wi-Fi, PPP, SLIP, etc.), PCI slot, initialization order, etc. For example if a computer has a single Ethernet card, its name would be eth0*. In your case, there's a virtual private server without an Ethernet network card in it, not even an emulated one. ...


2

If your use of eth0 can simply be modified to refer to the network interface by the name "venet0" wherever you would use "eth0" then you can just do that. If, however, you have to have the name eth0, you can do something like sudo ip link set dev venet0 alias eth0 The "sudo" prefix allows you to execute commands as "root" user. If you're already running ...


0

Looks like it was a problem with an installation of mod-spdy-beta_current_x86_64.rpm. Removing that and restarting the server resolved it.


0

A 403 status code indicates that the client cannot access the requested resource. This would typically indicate that the files and/or directory that the URL is referencing does not have permissions such that the HTTP server is allowed access it. Confirm that the username/group used by the HTTP server has sufficient privileges to access this directory. ...


1

Your logs are in /var/log/httpd (you'll need to be 'root' to view them). You'll find access_log and error_log in there. Have you set/checked the permissions on your files? The group apache should be able to read them as a minimum. For example, if I (user gareth) have a site at /var/www/html then:- $ls -l /var/www/html -rwxr-----. gareth apache 30 Jun 23 ...


1

When I try to reproduce your steps, I get two problems: EntityRef: expecting ';' It looks like the source document uses & where it should use &amp;. I fixed that using sed -i -e 's/&/&amp;/g' xmlresult. None of the XPaths matched; to match a node in the default namespace use '_' as the prefix (see section 5.1 in the manual). ...


1

Given you can download the source RPM (SRPM) I'd download that and use rpmbuild to rebuild it myself. Step #1 - install any dependencies This will interrogate the downloaded SRPM and install anything that maybe missing. $ sudo yum-builddep --nogpgcheck netbsd-rump-20130704-2.1.src.rpm Loaded plugins: fastestmirror Loading mirror speeds from cached ...


0

Edit the init script and add -q -l /var/log/snort to snort. Save and restart the service.


1

If you set your hostname in /etc/sysconfig/network then the system will automatically set your hostname for you every time you boot. This magic is done in /etc/rc.d/rc.sysinit. It does this using the hostname command in the third line below:- # Set the hostname. update_boot_stage RChostname action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME} [ -n ...


0

If your host machine (CentOS) has X-windows, you can use ssh -X to forward all X11 traffic to your CentOS machine while SSHing into the Ubuntu VM. For example, if your Ubuntu VM's IP address is 192.168.0.123, and your username on the Ubuntu VM is "fred" you woud use this command from CentOS to connect to the Ubuntu VM: ssh -X fred@192.168.0.123 After you ...


0

You can get PHP 5.3, 5.4 and 5.5 from IUS repos: https://iuscommunity.org/ There are detailed instructions on how to set this up here: Difficulty installing PHP from source to CentOS 6.4


4

This project sounds like what you're looking for, titled: stig-fix-el6. excerpt DISA STIG Scripts to harden a system to the RHEL 6 STIG. These scripts will harden a system to specifications that are based upon the the following previous hardening provided by the following projects: DISA RHEL 6 STIG V1 R2 ...



Top 50 recent answers are included