Tag Info

New answers tagged

0

Here's the fix: replace your file /etc/profile.d/php.sh contents with: pathmunge /usr/local/php/bin after and similarly for the file /etc/profile.d/mysql.sh: pathmunge /usr/local/mysql/bin after The explanation is that the files in /etc/profile.d/*.sh are sourced by /etc/profile (which is itself sourced by a login bash shell). Because the files are ...


0

Add this to you bashrc: export PATH=$PATH:/path/to/directory:/a/different/directory, etc. For your case try export PATH=$PATH:/usr/local/php/bin . Hope this helps


2

Most init systems probably won't expect this situation so they won't be prepared to first assemble LVM, then MD, then LVM again. If you put LVM below MD you have to be very careful. MD is supposed to be used with physical disks, but with LVs as RAID members you could easily end up with two members sharing the same disks. That is if using MD as a standalone ...


0

Did you check the audit logs? I suspect SELinux is preventing your web server from opening up outbound connections to an FTP server. You might need to set the httpd_can_network_connect boolean. Check the audit logs by running (as root, or through sudo): ausearch -m avc -ts recent after attempting to load the web page. You can set the SELinux boolean with ...


1

There is a 'goldendict' package that is part of EPEL. Enable EPEL by installing the 'epel-release' package, then 'goldendict' will be available to install through yum.


1

The right way to modify the home directory for a user is to use usermod. Using usermod -d /var/www.html username (as privileged user, i.e. root or using sudo) the home directory will be changed to the desired location.


1

Read carefully passwd(5) then edit (very carefully, as root) the /etc/passwd file. You may want to change the home directory of your user, i.e. change the 6th field of the line describing your user. Alternatively, read much more about ssh and its configuration thru $HOME/.ssh/config and other files etc etc.. Very probably Putty is also configurable. I am ...


0

Make sure not just avahi-daemon works and is installed, but also avahi-utils. That was my problem. On debian its sudo apt-get install avahi-utils I've never used CentOS, so I don't know how the package manager works, but it should be something similar.


0

assuming router to 10.58.1.100 is 10.120.0.1, you need to route add net 10.58.1.0/24 10.120.0.1 1 to add route dynamicaly. for change to be permanent, edit /etc/sysconfig/network-scripts/route-eth1 add 10.58.1.0/24 via 10.120.0.1 dev eth1


0

Remove the gateway setting on eth1. That means 'default gateway', i.e. a gateway which can reach the internet, which you said that one is not. You can add manual routes for the networks which that gateway can reach.


0

You can list all attached drives with $ lsblk


0

I think that Derek give the right answer. Anyway I also got that working with: sudo mkdir /var/wwww/html/site/pdf sudo chmod 755 /var/wwww/html/site/pdf #try to change SElinux folder tipe sudo chcon -t public_content_rw_t /var/www/html/site/pdf #i want that persistent sudo semanage fcontext -a -t #add this inside fcontext file public_content_rw_t ...


0

-That is if you are using IP addresses will use: HostnameLookups Off ...or if you use a domain name you will use: HostnameLookups On # Here below some sample of the definition to use... Global configuration ServerRoot "/etc/apache2" # Here the definition that's make this confusion... HostnameLookups Off # if ...


0

Try this: $ yum install --downloadonly --downloaddir=/pkgs/ `cat pkg_list` You can specify multiple package names on the yum command line. The only caveat here is that your command line may become too long for the shell. Thanks


1

It looks like there is no method to remove the route that I want by the network-scripts. I guess it is not a very common use-case, but I really don't want servers on the same network being able to talk to each other. But I did found one script that runs after the network is initialized. The script /etc/sysconfig/network-scripts/ifup-post calles ...


0

To make your changes stick in rhel/centos, create the file /etc/sysconfig/static-routes with a line beginning with the keyword any followed by the arguments you gave to route add. In the file /etc/sysconfig/network-scripts/ifcfg-<interface> replace or add a line DEFROUTE="no".


2

At least the route to the gateway need to be direct, i.e. you need Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 192.168.1.1 0.0.0.0 255.255.255.255 U 0 0 0 eth0 The best way is to modify ...


0

It looks like you've lost your python installation. You have a link at /usr/bin/python which is pointing to /etc/alternatives/python. However, that itself is a link that is pointing to /usr/bin/python3.4 a file which apparently doesn't exist: ls: cannot access /usr/bin/python3.4: No such file or directory So, it looks like you simply haven't installed ...


1

Warren Young's answer covers all the reasons you probably you probably don't want to and probably don't need to do this so please read it. But if you really have to and you really understand what you're doing, this command should do it for you: yum --disablerepo=* --enablerepo=C6.5* upgrade Basically it disables all the repos on your box and enables the ...


0

CentOS purposely does not have a mechanism for holding steady on an old point release. The only reason CentOS 6 has point releases is that they are mirroring the Red Hat Enterprise Linux scheme, where each point release means they have gathered the package set available at that time and built new installation images for the OS. Unlike with point releases ...


0

Neither of the tutorials you mentioned suggest using useradd with all of those options. By setting the login shell to /sbin/nologin you encounter: incorrect password and This account is currently not available The following command will cause tomcat to be a system account without a /home/tomcat directory: useradd -r tomcat --shell /bin/false And ...


1

The description sounds almost as though you might need to configure /etc/gai.conf. But I'll hold on that for blacklisting IPv6. To prevent the IPv6 module from binding to the IPv6 networking stack, add the line below to "/etc/modprobe.d/blacklist.conf" (or a different file name): options ipv6 disable=1 Then, reboot. This will allow the loading of the ...


0

The parts that you're trying to remove are written by the receiving rsyslog daemon, not by the sender, and cannot be removed. They're part of the log format for rsyslog.


0

Question 1 Solved: firewalld enable RPF by default, and the dhcpv6 reply messages are blocked by the RPF rule installed on table raw chain PREROUTING.


0

This means your app was unable to connect to facebook over IPv4 and since most systems will return an AAAA record even if you don't have IPv6 configured on your system, php ends up trying the next address to connect to which happens to be IPv6. I suspect if you disabled IPv6 via the means mentioned above, you're going to have other errors in your logs now.


1

Red Hat Linux source code back ports security updates. See https://access.redhat.com/security/updates/backporting CentOS rebuilds the source code for RHEL, so they inherit those back ports.. Including new device drivers for new hardware, etc. So the Red Hat / CentOS kernel is not a standard 3.10.0 kernel, it gets things back ported from new kernels and ...


1

you can create a /home/html and tell apache/nginx/httpd whoever to use it. I cant elaborate, this depend on you web server. you can make a symbolic link from /var/www to /home/www cd /var mv www www.old mkdir /home/www ln -s /home/www /var/www If you have no use for /home, umount it, and mount vg_datastore-lv_home on /var/www (you may try to umount ...


0

He may have read that they are doing more updates with the desktop UI. Even if that is true programs on Linux are mostly maintained by the original developers. The primary part the O.S. developers play is making the pieces fit and work together. Sometime this means maintaining your own version of a program but most of the time they repackage it and provide ...


-1

I know this is an old question, but I hit this problem recently and the answers here helped. I will expand and say when you reinstall NM try: yum install NetworkManager* That will pickup the ui packages needed for the applet. When I parsed my yum logs I found this: Jun 16 18:54:43 Erased: NetworkManager-gnome Jun 16 18:54:43 Erased: ...


1

Add this to last line of your ~/.bashrc: unalias ls and type source ~/.bashrc


0

For CentOS 7 I needed to do install DKMS via epel. Here is my complete list of commands. sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm sudo rpm -ivh epel-release-7-5.noarch.rpm sudo yum install dkms -y sudo yum groupinstall "Development Tools" -y sudo yum install kernel-devel -y sudo yum upgrade -y reboot the vm ...


0

I am a Linux newbie, but currently I'm setting up a PXE Boot server, WinPE, Memtest etc. work. So currently I am trying to boot "desinfect ISO" from PXE. To boot this I need a NFS server. I followed some guides and found these commands below. But I am getting an error, so I tried to Google and found this post. The error seems to be like the error above. ...


0

useradd -m -d /home/thenewuser -s /bin/bash -c "the new user" -U thenewuser -c "message" : extra information about the user. -U thenewuser : Create a group with the same name as the user, and add the user to this group. -N : the -N argument tells the system not to create a group having the user’s name -m, --create-home are same: Create the user's home ...


1

clamscan --exclude='\.(jpg|jpeg|png|gif)$' \. is the . in the file extension (jpg|jpeg|png|gif) matches any of those strings $ pins the search to the end of the line This, therefore, should exclude all files ending in .jpg, .jpeg, .png, .gif


0

DHCP has support for searching configuration in an LDAP directory, but it needs configuration. That line just says that the configuration is absent and that therefore the DHCP server won't look for it. That's just a message, not an error, and certainly not the cause of your problem. The next line tells you that dhcpd tries to change permissions on a ...


1

CentOS 6.5 is based on RHEL 6.5. The pattern changed with CentOS 7, which has two releases, one based on RHEL 7.0, the other on RHEL 7.1. You'll find all the details on the CentOS wiki (look for the "Archived Versions" section).


1

Yes. CentOS uses the same major and minor release numbers as the RHEL version they are rebuilding.


1

There are as many opinions as there are people. I think the best way to create tomcat user to do as follows: # useradd -r -s /sbin/nologin tomcat # chown -R tomcat: /usr/local/tomcat It means, you will create system account. Info from man useradd: System users will be created with no aging information in /etc/shadow, and their numeric identifiers are ...


2

In order to have files deleted in destination when they are deleted in origin, you use the --delete option. rsync -vaz --delete <origin_folder> <destination_folder> Now destination will delete items within it when origin does.


1

There are several delete options to choose from here is the extract from the man rsync page. --delete delete extraneous files from dest dirs --delete-before receiver deletes before xfer, not during --delete-during receiver deletes during the transfer --delete-delay find deletions ...


0

I think it is your rpm install which is somehow off. I would expect on CentOS 5.11 with yum 3.2.22 installed that your rpm version would be 4.4.2.3, not 4.3.3 Specifically the rpm-libs package installs /usr/lib64/librpmdb-4.4.so which yum 3.2.22 requires but I am guessing you have /usr/lib64/librpmdb-4.3.so I suggest you download the new rpm-*4.4.*rpm ...


0

I am pretty sure all those options you specify should be in the Device section with the nvidia driver and not the Screen section. Also UseDisplayDevice can also be set to "none" according to the docs but I have never tried this.


0

While its not the latest version, RHEL/CentOS will backport changes in newer versions of the OpenSSL source to the version you are using on your CentOS 6 box currently. In regards to why CentOS isn't using the very latest version. This could be for various reasons including: Dependencies Stability Compatibility


0

Cent OS is based on Red Hat Enterprise Linux and the main goal of a distribution produced for enterprise customers is to provide robust, stable and reliable OS and system software. Major releases usually contain recent but established versions of current software. Subsequent minor releases will contain packages with minor updates of that software. However, ...


2

Following up on the answer by @terdon - when you do the test-step, and grub2-mkconfig does not find the Windows partition. Next, make sure you have the "ntfs-3g" package installed, so that your Linux system can read the Windows partition(s). sudo yum install ntfs-3g After installing that, when you run sudo grub2-mkconfig > /dev/null ... you ...


2

You need to put a least one space between [ / ] and anything next to them: if [ "$num" -eq 10 ] [ is actually a bash command, an alias for the test command that evaluates your expressions, and the closing ] has to stand on its own so it won't be evaluated as part of the expression.


1

Creating an encrypted volume does just that: create an encrypted volume on the disk. Using the volume on your live system is a concept that only makes sense as long as the system remains live: it needs to be done all over again if the system reboots. So you need to arrange for the volume to be brought up during the system startup. To do that, list it in the ...


1

Found this in my notes, from when I ran into this same thing: Set SELinux boolean to allow Apache to access CIFS shares: # setsebool -P httpd_use_cifs on


0

I was finally was able to narrow down and solve the problem. It was a combination of two issues: A Magento site on the server was disabled in the vhosts file. But the Magento cron job was still running, failing, and causing all the AVC errors. Removing the orphaned cron job stopped the AVC errors. As Manuel Faux suggested in the comments, however, the ...


1

You need to install the development package for glib: yum install glib2-devel You could save yourself the trouble of building Midnight Commander though, it's packaged for CentOS: yum install mc



Top 50 recent answers are included