How to , and other stuff about linux, photo, php … Another blog just like others on internet

January 4, 2017

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Filed under: Linux — Tags: , , , — admin @ 6:01 pm

Today I wanted to upgrade a php webserver with php5.6 . However the epel didn’t work .
After a yum clean all got this title error

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

To fix this I needed to upgrade the ceritiface without epel .

yum upgrade ca-certificates –disablerepo=epel
After this all works.

March 10, 2014

rpm – Find out what files are in my rpm package

Filed under: Linux — Tags: , , , — admin @ 10:59 am

Use following syntax to list the files for already INSTALLED package:
rpm -ql package-name

Use following syntax to list the files for RPM package:
rpm -qlp package.rpm

January 20, 2014

centos 6 and php mcrypt

Filed under: Linux — Tags: , , , — admin @ 3:27 pm

Well all know that this packet is not included into centos distro . To install and use php-mcrypt you have to install and use epel repository.

So here we go

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum update
yum install php-mcrypt*

December 23, 2013

scp: command not found

Filed under: Linux — Tags: , , , — admin @ 11:58 am

Today I was trying to copy something from one server to other using scp . But I have a surprise while I was running the correct command scp file.tar root@server:/home well a error was occurred that scp is missing. Now on sending server the scp was because I see the output of usage: scp when I try on destination surprise no scp.
which scp
/usr/bin/which: no scp in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

So to install it just run :
yum install openssh-clients

April 23, 2012

Invalid command “SSLEngine”, perhaps misspelled or defined by a module not included in the server configuration

Filed under: Linux — Tags: , , , , — admin @ 3:53 pm

If you have bellow error you should install mod_ssl
“Invalid command “SSLEngine”, perhaps misspelled or defined by a module not included in the server configuration”
The error message indicates that the module mod_ssl required to run SSL engine on a CentOS server is missing and needs to be installed.
Install the mod_ssl module using yum
yum install mod_ssl
Once it is installed, make sure to restart the Apache service
service httpd restart

Powered by WordPress