L
L
LBC2016-10-03 20:38:48
linux
LBC, 2016-10-03 20:38:48

How to solve /var/log related error?

I'm trying to get https on the centos server.
Apache successfully writes logs to /var/log.
ls /var/log - lists the logs you want there
file /var/log - /var/log: directory
df -h /var/log


-bash-4.1# df -h /var/log
Filesystem Size Used Avail Use% Mounted on
none 0 0 0 - /var/log

When I try to install mod_ssl I get an error that I don't know how to solve. Please help.
yum install mod_ssl

-bash-4.1# yum install mod_ssl
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.cicku.me
* epel: mirrors.n-ix.net
* extras: mirrors.cicku.me
* nux -dextop: mirror.li.nux.ro
* updates: mirrors.cicku.me
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.2.15- 54.el6.centos will be installed
--> Processing Dependency: httpd = 2.2.15-54.el6.centos for package: 1:mod_ssl-2.2.15-54.el6.centos.x86_64
--> Running transaction check
- --> Package httpd.x86_64 0:2.2.15-47.el6.centos.1 will be updated
--> Processing Dependency: httpd = 2.2.15-47.el6.centos.1 for package: httpd-devel-2.2.15-47.el6.centos.1.x86_64
---> Package httpd.x86_64 0:2.2 .15-54.el6.centos will be an update
--> Processing Dependency: httpd-tools = 2.2.15-54.el6.centos for package: httpd-2.2.15-54.el6.centos.x86_64
--> Running transaction check
---> Package httpd-devel.x86_64 0:2.2.15-47.el6.centos.1 will be updated
---> Package httpd-devel.x86_64 0:2.2.15-54.el6.centos will be an update
---> Package httpd-tools.x86_64 0:2.2.15-47.el6.centos.1 will be updated
---> Package httpd-tools.x86_64 0:2.2.15-54.el6. centos will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================= =================================================
Package Arch Version Repository Size
=========================================== ================================================= =====
Installing: mod_ssl x86_64 1 :
2.2.15-54.el6.centos updates 97 k .el6.centos updates 156k httpd-tools x86_64 2.2.15-54.el6.centos updates 79k
Transaction Summary
=============================================== ================================================= ==
Install 1 Package(s)
Upgrade 3 Package(s)
Total size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
installing package httpd-2.2.15-54 .el6.centos.x86_64 needs 4KB on the /var/log filesystem
Error Summary
-------------

Answer the question

In order to leave comments, you need to log in

5 answer(s)
C
CityCat4, 2016-10-04
@CityCat4


installing package httpd-2.2.15-54.el6.centos.x86_64 needs 4KB on the /var/log filesystem
It is written in English and white - to install the package, 4KB is required in /var/log. You have problems with /var/log unambiguously. Why doesn't the output of the df command show anything about it? Neither the type of FS nor its size?

S
silverjoe, 2016-10-03
@silverjoe

/var/log - log - directory, it exists.
In the settings, specify the file names, and even better, the folder for the apache logs
For example:
/var/log/apache2 or /var/log/httpd
and give permission to this folder for Apache

A
Andrey, 2016-10-03
@GhOsT_MZ

Is there anything in /var/log/messages?

D
Daemon23RUS, 2016-10-03
@Daemon23RUS

Interesting behaviour. Try this:
sudo systemctl stop httpd
sudo yum install mod_ssl
sudo systemctl start httpd

R
RPG, 2016-10-04
@RPG

Issues with the /var/log section.
Try
Next, diagnose the problem:

findmnt
vim /etc/fstab

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question