Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9181165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:13:20+00:00 2026-06-17T18:13:20+00:00

I using this Yubico authentication PHP class: https://github.com/Yubico/php-yubico . I create php file test.php

  • 0

I using this Yubico authentication PHP class: https://github.com/Yubico/php-yubico. I create php file test.php with this code:

<?php
 require_once 'Auth/Yubico.php';
 $otp = "ccbbddeertkrctjkkcglfndnlihhnvekchkcctif";

 # Generate a new id+key from https://api.yubico.com/get-api-key/
 $yubi = new Auth_Yubico('42', 'FOOBAR=');
 $auth = $yubi->verify($otp);
 if (PEAR::isError($auth)) {
    print "<p>Authentication failed: " . $auth->getMessage();
    print "<p>Debug output from server: " . $yubi->getLastResponse();
 } else {
    print "<p>You are authenticated!";
 }
?>

And do all instructions in this github library. When I open this script I get:

Warning: require_once(): open_basedir restriction in effect.
File(/usr/share/php/Auth/Yubico.php) is not within the allowed
path(s): (/var/www/hmci/data:.) in
/var/www/hmci/data/www/hmci.ru/php-yubico/test.php on line 2 Warning:
require_once(/usr/share/php/Auth/Yubico.php): failed to open stream:
Operation not permitted in
/var/www/hmci/data/www/hmci.ru/php-yubico/test.php on line 2 Fatal
error: require_once(): Failed opening required ‘Auth/Yubico.php’
(include_path=’.:/usr/share/php:/usr/share/pear’) in
/var/www/hmci/data/www/hmci.ru/php-yubico/test.php on line 2

How to solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:13:22+00:00Added an answer on June 17, 2026 at 6:13 pm

    open_basedir is a PHP option restricting PHP’s access to specific directories.

    You have the directory /usr/share/php in your include path without having access to it. Usually, PHP tries all paths in the include_path one by one. This means that PHP cannot find the file Auth/Yubico.php in the current directory, so PHP searches in /usr/share/php next.

    Make sure that the file you want to include is actually there. You can also remove /usr/share/php from your include path (either by editing the php.ini file, if you have access to it, otherwhise using the ini_set()method).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using this code <?php foreach (glob(*.txt) as $filename) { $file = $filename; $contents =
Using this code var sw = window.screen.width; $.post(http://www.example.com/track.php, {result: sw }, html); and $_SERVER['result'];
using this https://github.com/jonthornton/jquery-timepicker demo here: http://jonthornton.github.com/jquery-timepicker/ on a rails 3.2 app trying to use
using this code: public class DvdRomUtility { [DllImport(winmm.dll, EntryPoint = mciSendStringA, CharSet = CharSet.Ansi)]
Using this code: xml = new groovy.xml.MarkupBuilder() xmldata = xml.Plugins(nextid: '10') { Target(name: 'default.auth')
Using this code, I try to set alarmmanager to stars Notify.class at 25/12/2012 -
Using this code $.getJSON(http://mydomain.com/getcustomers?callback=?,function(data) { .... }).error(function(err){ .... }) I'm getting jQuery16103492487950357067_1336742910384 was not
using this tutorial http://railscasts.com/episodes/57-create-model-through-text-field need to make it work in my app, was on
Using this bit of code to try and set a policy file: ClassLoader cl=
using this code new File(/mnt/sdcard/folder).listFiles().length returns a sum of folders and files in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.