Cant start apache, says html folder not directory

393
drwxrwxrwx. apache 6226 unconfined_u:object_r:admin_home_t:s0 .

Your DocumentRoot was set to wrong security context (admin_home_t).

Run the following command and try again:

# chcon -R -h -t httpd_sys_content_t /var/www/html/
Share:
393

Related videos on Youtube

wchargin
Author by

wchargin

Updated on September 18, 2022

Comments

  • wchargin
    wchargin over 1 year

    I am trying to add an ossia staff above the upper staff of a grand staff. Working from this mailing list post, I have constructed a minimal example that almost does what I want. The problem is that the entire score contains a blank space for the ossia staff, even in systems that have no ossia.

    Here is the example (truly, a melodious composition):

    \version "2.18.2"
    
    ossia = \new Staff = "ossia" \with {
      \remove "Time_signature_engraver"
      fontSize = #-2
      \override StaffSymbol #'staff-space = #(magstep -2)
      \override Clef #'transparent = ##t
      \override KeySignature #'stencil = ##f
    } {
      \key b \major
      \override Staff.BarLine #'allow-span-bar = ##f
      \stopStaff
      s2.*100  % ???
    }
    
    treble = \new Staff = "treble" {
      \clef treble
      \key b \major
      \relative c' {
        \repeat unfold 10 { b8 cis dis fis dis cis }
        b4 dis fis |
        b4
        <<
          { dis, fis }
          \context Staff = "ossia" {
            \startStaff \tuplet 3/2 { dis8 b dis } fis4 \stopStaff
          }
        >> |
        b2. |
      }
    }
    
    bass = \new Staff = "bass" {
      \clef bass
      \key b \major
      \relative c {
        \repeat unfold 12 { fis,4 fis4 fis4 | }
        b2.
      }
    }
    
    pianoStaff = \new PianoStaff {
      \compressFullBarRests
      \time 3/4
      <<
        \ossia
        \treble
        \bass
      >>
    }
    
    \paper {
      #(set-paper-size "letter")
      indent = 25\mm
      short-indent = 5\mm
    }
    
    \score {
      << \pianoStaff >>
      % This changes nothing:
      % \layout { \context { \Staff \RemoveEmptyStaves } }
    }
    

    Here is the output (PNG image, 85 KB).

    Some interesting things to note:

    • If I remove the s2.*100 at line 13 (marked % ???), or change the value to anything smaller than 12, the ossia staff renders completely incorrectly. It appears below the bass clef, includes the clef and time signature, and is in the key of C (i.e., the rendered notes include accidentals). Basically, it looks like it's failed to notice that the ossia staff exists and has constructed a brand new one. I suspect that this is because the ossia staff is supposed to extend past each point where it is used—i.e., when switching staff contexts, one can go "back in time" but not forward. I don't really understand this, but I can live with it, as it doesn't seem to have an intrinsic effect as long as \compressFullBarRests is enabled.

    • I have included the paper size in the MWE to force consistent dimensions on different systems.

    • As I noted in the score, adding \RemoveEmptyStaves does not remove the empty staves.

    My question is: how can I keep the ossia staff rendered as it does in this example (small and above the treble clef) without adding the empty space on all previous systems?

    • Greg Petersen
      Greg Petersen almost 12 years
      Append the output of ls -laZ /var/www/html/ to your question?
  • wchargin
    wchargin over 7 years
    Hi fedelibre. I appreciate your help. Thanks to your answer, I was able to figure out a satisfactory solution. A few comments. First, the purpose of the spacer rest is so that I can write the ossia by simply setting \context Staff = "ossia" within the flow of the rest of the score (as in my example), as opposed to manually inserting the correct number of rests to advance the ossia to the exact desired position (as in yours). Second, your example doesn't display the ossia properly, as it includes extra blank measures for all bars in the system in which an ossia appears. For instance, (1/2)
  • wchargin
    wchargin over 7 years
    (2/2) if you move your \break to the previous line, then there is an extra empty bar before the ossia's content. (Please consult the rendered image link in my original post.) This is the purpose of the \startStaff and \stopStaff commands in my original example. Third, I'm sorry that my MWE is large. Now that I have a working solution, I can see that (e.g.) the bass clef is indeed not required. I wasn't sure about this, because it is a \PianoStaff, after all. All is easier with hindsight! :-) Here is my minimal solution: gist.github.com/wchargin/db8f3ff0129686dafe87045f90c8bf5f