LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2011, 08:03 AM   #1
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Rep: Reputation: Disabled
In /var log folder is missing


Hi all
I am using centos 5.5 version,
My problem is i cant found log folder in /var directory. due to this i am unable to start or stop squid service.

The Error is showing like this, while i restart the squid service...
#service squid restart
Stopping squid: /etc/init.d/squid: line 98: /var/log/squid/squid.out: No such file or directory
[FAILED]
Starting squid: /etc/init.d/squid: line 69: /var/log/squid/squid.out: No such file or directory
[FAILED]

Then i restarted the system then i got another problem, iam unable to enter into graphical mode.
This was the error i got after restart the system.
Failed to start the X server (your graphical user interface). It is likely that it is not set up correctly. Would you like to view the X server output to diagnose the problem.

After that, I followed the instructions showed by this error still iam getting same problem.

so i replaced the system with another as proxy server the next day exact same problem occured.

iam using this as my proxy server in office there is no internet due to this problem
please help,
give ur solutions step by step that i can understand easily.

Thanks
suresh
 
Old 12-27-2011, 08:46 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Create this directory
Code:
mkdir -p /var/log
as root. I suppose some broken script delete it, so search it in cron tasks, booting scripts, etc. If not found, maybe create somewhere hardlinks to logs, to read them after deleting this directory.
 
Old 12-27-2011, 05:04 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,239

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
Cent5.5 is unsupported ( and has been for over a year )
please stay current and upgrade to 5.7 or 5.8 ( if it is out)

the error says it all
Quote:
/var/log/squid/squid.out: No such file or directory
that file IS MISSING
you need to make it

Is there a " squid" folder in /var/log ??? if not make it

also HOW did you install squid
the rpm's should have put this file there
 
Old 12-28-2011, 01:22 AM   #4
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
thanks for replay,

eSelix as ur suggestion i created log folder in /var, now i can enter into graphical mode thanks for that.
but i can't start squid server.
how to start it, there is no squid folder in log, so i created squid folder still same problem.
how to search it in cron tasks and booting scripts and how to see hardlinks to logs please tell step by step iam new to linux.

thanks
suresh

Last edited by suresh.k; 12-28-2011 at 02:04 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 11; Missing a day in /var/log/secure Puzzled, and concerned... jlumpkins Linux - Security 1 11-09-2009 06:45 PM
/var/log/messages and /var/log/cron not working sigkill Linux - Software 6 08-09-2008 02:08 PM
Unable to install new package-updates... missing /info folder from /var/lib/dpkg/ bradb-acc Ubuntu 4 07-15-2008 03:24 AM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 05:13 PM
/var/log/lastlog missing zQUEz Linux - Server 2 08-08-2007 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration