Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: XML parser unable to open file

by rajaoirshi (Initiate)
on Nov 11, 2020 at 05:40 UTC ( #11123574=note: print w/replies, xml ) Need Help??


in reply to Re: XML parser unable to open file
in thread XML parser unable to open file

Hello

Yes the files are readable and have been given full permission (777). The exact string passed is "/opt/xmls/filename.xml"

The same set of code is already working in different servers, this one is being newly built and all the perl modules have been added , but this is where it is getting stuck. Is it possible due to Linux version, it might be a problem ? The new one/not working ones are on Red Hat Enterprise Linux Server release 7.8 (Maipo) and the old ones/working ones are on Red Hat Enterprise Linux Server release 6.7 (Santiago).

Replies are listed 'Best First'.
Re^3: XML parser unable to open file
by afoken (Canon) on Nov 11, 2020 at 11:52 UTC
    the files are readable and have been given full permission (777)

    You really should not grant executable permissions to data files, set the "x" bit only for executables and for directories. Also, you usually do not want your files and directories group and world writeable, i.e. set the "w" bit only for the owner, but not for group and others.

    Continue reading in Re^3: CGI script to output data as CSV.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^3: XML parser unable to open file
by hippo (Chancellor) on Nov 11, 2020 at 09:54 UTC
    Yes the files are readable and have been given full permission (777)

    What about the SELinux context? Did you check the audit log?


    🦛

Re^3: XML parser unable to open file
by swl (Priest) on Nov 11, 2020 at 07:44 UTC

    Thanks for clarifying wrt the file name. You still need to provide an SSCCE, though. What code you have provided is not self-contained, and does not include a file name.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11123574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2021-03-06 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (116 votes). Check out past polls.

    Notices?