daloRadius Is not working, DB.PHP file not found - php

daloRadius is an open source and free software based on php, i downloaded it and trying to run it in waamp server, after the login page i am getting this error
include_once(DB.php): failed to open stream: No such file or directory in C:\wamp\www\daloradius-0.9-9\library\opendb.php
I have searched thoroughly the db.php file but couldnt find it in the folder, what should I do? Do Ii have to create the file?

I was working on a ubuntu 14 based freeradius setup and daloradius as web interface, encountered the same issue.
PHP Warning: include_once(DB.php): failed to open stream: No such
file or directory in /var/www/html/daloradius/library/opendb.php on
line 84
Installing php-db worked for me:
sudo apt-get install php-db

You are missing the PHP Pear DB library. Install the library via pear install DB

Related

How to install php5-ldap extension while the server is offline on linux ubuntu

i am trying to install php5-ldap extension on my server which is ubuntu 16 and this server has no access to the internet, how do i go about?
Note: i have tried .deb files still i have not managed to solve the problem,
but when i used .deb files this error was coming out
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/ldap.so' - /usr/lib/php/20131226/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/ldap.so' - /usr/lib/php/20131226/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
Please someone help me to figure this out.
thank you in advance.
You can simple install on ubuntu desktop and copy this binary extensions to /usr/lib/php/20131226/ldap.so but this bad way. Better way download source and copy to server
$ cd /path/to/source
$ phpize
$ ./configure
$ make
$ make test
$ make install
but I can't find this extension, I think you need compile php with support ldap --with-ldap

Softaculous installer.php

I am currently trying to install Softaculous on a web server (we use Hosting Controller Panel). I have an issue when running the installer.php file as directed in the instructions on the Softaculous web site.
The instructions say to open cmd and run C:\path\to\php.exe C:\softaculous\installer.php
When I do this I am given several error messages but the main issue I see is the installer.php is looking in the wrong directory (an older install of PHP) for ionCube loaders. Here is what I believe is the relevant portion of the command.
C:\Program Files (x86)\iis express\PHP\v5.6> php.exe C:\softaculous\installer.php
Failed loading C:\PHP\ext\ioncube_loader_win_5.6.dll
Failed loading C:\Program Files (x86)\PHP\v5.6\ext\ioncube_loader_win_5.6.dll
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_curl.dll' - The specified procedure could not be found. in Unknown on line 0*
You will notice that in bold the installer is trying to load PHP from a directory that I didn't specify, can anyone tell me why or how I might go about fixing this.
I have sought help from Softaculous and all they could tell me is PHP is not installed correctly.
Thank you in advance for any help you can offer I have been working on this problem for over a month.
use ampps http://www.ampps.com/
ampps have softaculous in it for windows

cakephp 3.* installation issue

Cakephp is my first PHP framework. I followed the instructions in Documentation / install. It seems everything was correct, but when i tried to run, i get errors:
Warning: require(/var/www/html/caketest/vendor/autoload.php): failed
to open stream: No such file or directory in
/var/www/html/caketest/config/bootstrap.php on line 23
Fatal error: require(): Failed opening required
'/var/www/html/caketest/vendor/autoload.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/var/www/html/caketest/config/bootstrap.php on line 23
im using ubuntu with php 5.5.9, pear is installed
I tried to find the solution but without sucsess.
How to correct these errors?
I found out that there was a missing package in my system. - php5-intl
It was written in official CakePHP install manual, and i checked it but looks like not well.
Install manual for php5-intl
http://php.net/manual/en/intl.setup.php
ps: restart apache after instalation
sudo /etc/init.d/apache2 restart

Installing PHP PECL module on OpenShift

I'm trying to install the PECL oauth module on OpenShift by declaring the following in the file .openshift/pear.txt
pecl/oauth
I believe that this is the preferred way to declare project dependencies for PHP projects on OpenShift but I get the following build error;
failed to write /opt/rh/php54/root/usr/lib64/php/modules/oauth.so
(copy(/opt/rh/php54/root/usr/lib64/php/modules/oauth.so):
failed to open stream: Permission denied)
Is it possible to include this module or must I create a custom cartridge?
Thanks
Is it possible that module is already installed? Have you tried creating a phpinfo(); page to see what modules are already installed and available?

Wamp and xml_unserializer issue

I am trying to fix an online site, but before that I would like to make it work on my local machine/wamp. Everytime I click on Search event and Register links on the site, the error below shows up.
Warning: require_once(XML/Unserializer.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\xxxxxx\includes\common_form_controls.php on line 19
Fatal error: require_once() [function.require]: Failed opening required 'XML/Unserializer.php' (include_path='.;C:\php\pear') in C:\wamp\www\itsonat\includes\common_form_controls.php on line 19
Is it because I don't have xml_unserializer installed on my computer? Where and How do I install it? I've been trying to install Pear in my wamp, but I am unsure of the relationship between Pear and XML_serializer.
Can someone please help me on how to fix this problem?
Thanks heaps. S:)
PEAR can be installed, of course. There are a couple of guides out there.
Also, install the PEAR modules required by your app to work properly, perhaps following this guide.
Hope it helps.

Categories