require_once() error prompt suddenly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kinhoe
    New Member
    • Oct 2010
    • 10

    require_once() error prompt suddenly

    Need help urgent.
    the website sudden prompt out error below:

    Warning: require_once() [function.requir e-once]: open_basedir restriction in effect. File(/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php ) is not within the allowed path(s): (/var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs:/tmp) in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

    Warning: require_once(/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php ) [function.requir e-once]: failed to open stream: Operation not permitted in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

    Fatal error: require_once() [function.requir e]: Failed opening required '/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php ' (include_path=' .:') in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

    thanks.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    pretty much self-explanatory. you are not allowed to open files from the application/config/admin directory (you would have to change the php.ini)

    Comment

    • kinhoe
      New Member
      • Oct 2010
      • 10

      #3
      So any solution for this? What should i do to solve this problem. Thanks

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        you have to change open_basedir in php.ini.

        Comment

        • kinhoe
          New Member
          • Oct 2010
          • 10

          #5
          how do i find php.ini in webhost? normally where it locate?

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            the location is given in the phpinfo() output, though normally you’re not allowed to change the settings yourself. (i.e. you normally don’t even have access)

            Comment

            • kinhoe
              New Member
              • Oct 2010
              • 10

              #7
              is it mean i need access SSH only can get the file? so what should i do now?

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                ask your provider for help.

                Comment

                • kinhoe
                  New Member
                  • Oct 2010
                  • 10

                  #9
                  other than this? how do i retrieve the php.ini file if not pass through provider? anyway to access to the setting?

                  Comment

                  • Dormilich
                    Recognized Expert Expert
                    • Aug 2008
                    • 8694

                    #10
                    nope. would you as provider grant every user (with unknown skill level) give access to the file, that could break a whole server?

                    Comment

                    • kinhoe
                      New Member
                      • Oct 2010
                      • 10

                      #11
                      So now i should ask my provider to change the setting for me? wat do i need to ask him to change for me?

                      Comment

                      • Dormilich
                        Recognized Expert Expert
                        • Aug 2008
                        • 8694

                        #12
                        explain him your problem and ask for a solution/counsel.

                        Comment

                        • kinhoe
                          New Member
                          • Oct 2010
                          • 10

                          #13
                          after the problem. traffic of the domain go overlimit. anything affect this?

                          Comment

                          • Dormilich
                            Recognized Expert Expert
                            • Aug 2008
                            • 8694

                            #14
                            nothing I could think of …

                            Comment

                            • kinhoe
                              New Member
                              • Oct 2010
                              • 10

                              #15
                              and why i can affect the file that i can never access?

                              Comment

                              Working...