Sponsored Content
Operating Systems Linux Red Hat Httpd service not starting... Error "Documentroot must be a directory" Post 302922489 by Aia on Saturday 25th of October 2014 12:51:28 PM
Old 10-25-2014
Actually, if Selinux is enforcing, all that is needed is restorecon since /var/www/html is included in the policy already.
Code:
restorecon -R -v /var/www/html

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

get two strings ending with "." and starting with "."

Hi all, In unix shell, I want to get two strings ending with "." and starting with "." from a string "chan.txt" For example, a string "chan.txt". The first string is "chan" The second string is "txt" Yours Wilson (1 Reply)
Discussion started by: wilsonchan1000
1 Replies

2. Shell Programming and Scripting

Error to "find" a matching array element in a directory

Hi, I have defined an array which holds a couple of elements which are nothing but files names. I want to find the files in a directory for the matching file name(array elements) with less than 1 day old. When I am trying to execute the code (as below), it gives an error. Your help in this... (1 Reply)
Discussion started by: mkbaral
1 Replies

3. Red Hat

"service" , "process" and " daemon" ?

Friends , Anybody plz tell me what is the basic difference between "service" , "process" and " daemon" ? Waiting for kind reply .. .. (1 Reply)
Discussion started by: shipon_97
1 Replies

4. Shell Programming and Scripting

"directory checksum error" when attempting to install tcl

OS: HP-UX Programs I want to install: expect and tcl I'm lost. I bought the book. I began reading the book. I want to install expect. I've been able to download the .z, and extract it successfully. But, of course, it apparently needs tcl and possibly tk also, and ... I... (0 Replies)
Discussion started by: instant000
0 Replies

5. Shell Programming and Scripting

Unix commands delete all files starting with "X" except "X" itself. HELP!!!!?

im a new student in programming and im stuck on this question so please please HELP ME. thanks. the question is this: enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
Discussion started by: soccerball
2 Replies

6. AIX

AIX cp error: "A file or directory in the path does not exist"

Hello fellow UNIX fans, I'm running AIX 4.3 and getting an error message “cp: /a/file2.db: A file or directory in the path does not exist” when I run the following command: cp /b/file.db /a/file2.db It stops every time about 95% of the way through the copy process at 1,073,741,312 bits. ... (3 Replies)
Discussion started by: Jackson123
3 Replies

7. Shell Programming and Scripting

Delete files older than "x" if directory size is greater than "y"

I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y" #!/bin/bash du -hs $1 while read SIZE ENTRY do if ; then find $1 -mtime +$2 -exec rm -f {} \; echo "Files older than $2 days deleted" else echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies

8. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

9. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

10. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
fitset(8)						      System Manager's Manual							 fitset(8)

Name
       fitset - determine if subset fits on a system

Syntax
       fitset [ -d ] [ root-path ]

Description
       The utility is used to determine if the files in a software subset will fit on a system.

       Subset inventory records are read from the standard input. For each record, the space required to install the file described in that record
       is deducted from the available free space on the file system to which it would be installed.  Only currently mounted UFS file  systems  are
       used  in  the computations. Space requirements for files already on the disk will be modified to account for the size of the resident copy.
       After all records have been read, the free space computed for all file systems is checked. If the space required to install the files would
       cause any file system to be more than 90% full, returns an exit status of -1.

       The  utility  uses  to size all subsets before attempting to install them.  The root-path argument is the pathname of the top directory for
       the hierarchy into which the files are going to be installed. If no root-path is specified, the directory '/' is assumed.

Options
       -d     Enable debugging. This will make print voluminous status information on standard output. This information is the initial file system
	      statistics,  the	file  system  location	of  the file from each input record and the statistics for the file system after the space
	      required to install the file has been deducted.

Restrictions
       NFS mounts are ignored. If software would be installed to an NFS mounted directory, it is sized against the file system containing the  NFS
       mount point.

       The  program  does  not	detect the use of symbolic links in paths to root-path or any of the mount points. This can cause to size a subset
       incorrectly if root-path is a symbolic link or a symbolic link exists in the path of any of the pathnames used with the	command  to  mount
       local file systems.

Examples
       To determine if a particular subset will fit on the system, redirect the contents of the subset inventory file into For example:
	   fitset < /usr/etc/subsets/ULTUUCP400.inv

       To determine if the same subset will fit in a hierarchy rooted at the command would be:
	   fitset /var/tmp/root < /usr/etc/subsets/ULTUUCP400.inv

Diagnostics
       fitset: root path must be absolute
       A relative pathname was specified for root-path.  This path must be absolute.

       fitset: cannot stat root-path (error message)
       The root-path cannot be accessed. The error message provides more information.

       fitset: root-path is not a directory.
       Either root-path is not a directory or it is a symbolic link to something which is not a directory.

Files
       Subset inventory files

See Also
       stl_inv(5), setld(8)
       Guide to Preparing Software for Distribution on ULTRIX Systems

																	 fitset(8)
All times are GMT -4. The time now is 09:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy