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?
Related
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
I'm trying to run a Symfony 3 app with php 7 installed from source and I'm getting a Missing PDO driver exception. According to http://pecl.php.net/package/PDO_MYSQL the PDO_MYSQL extension is now part of PHP core.
Q1.a) If I have the PDO_MYSQL extension (which I must, since its core) does that mean that I also have the mysql pdo driver?
Q2.b) Is there further runtime configuration I have to do to make sure that the driver gets used?
I've tried adding
extension=php_pdo.so
extension=php_pdo_mysql.so
to my loaded php.ini file.
Q2.a) Are these the correct extension names? How could I find out?
Q2.b)Do I even have to provide extension references for core php elements?
Finally:
Q3. How can I check whether my PHP install included the mysql pdo driver and how do I make sure that it is being loaded at runtime?
Thanks for your input.
Edit 1: I'm running on Linux Mint.
Edit 2: Here are a couple more details on what I'm seeing on my end:
"On starting up the built in php server I get the following message:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo.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/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/php_pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0"
This message suggests to me that either the extension references are incorrect or the extension does not exist. I used "dpkg -L php-mysql" and found that the package was installed in "/usr/share/doc/php-mysql" however, when I check in the php-mysql directory, all I see is a changelog and a copyright file (with hiddens shown). Is this the true install location of the package and, if so, should there be more in this directory?
.so implies you are on Linux - did you install PHP as a package. You probably need to install the pdo/mysql package - PHP libraries may be "core", but not necessarily in the main package (confusing, but it just means it's not PEAR delivered, really).
sudo apt-get install php5-mysql
Or, if you're running PHP7:
sudo apt-get install php-mysql
This should restart the apache automatically, but to be sure you could do:
sudo service apache2 restart
The package installer for php-mysql should have put the .so libraries in /usr/lib/php/yyyymmdd/ - if you had installed PHP as a package, it would be looking here.
However, since you installed from source, it seems that PHP is looking elsewhere for the libraries. You can create symlinks from /usr/local/lib/php/extensions/no-debug-non-zts-20151012/ to the package installed libraries.
I am new in Symfony 2. I am using Windows 8. I am trying to install Symfony 2. Location of my htodcs is D:\php\htdocs. Location of my Composer is D:\php\php\composer.phar. I am trying to install Symfony 2 using this command D:\php\htdocs>php D:\php\php\composer.phar create-project symfony/framework-standard-edition my_symfony. While this command is executing I got the following message.
After executing that command I got following message in CMD.
Warning: PHP Startup: Unable to load dynamic library 'D:\php\php\ext\intl.so' -
The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'D:\php\php\ext\intl.so' -
The specified module could not be found.
in Unknown on line 0
Clearing the cache for the dev environment with debug true
Warning: PHP Startup: Unable to load dynamic library 'D:\php\php\ext\intl.so' -
The specified module could not be found.
in Unknown on line 0
Trying to install assets as symbolic links.
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
It looks like your system doesn't support relative symbolic links, so the assets
were installed by using absolute symbolic links.
Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodi
stribution
It looks like your system doesn't support relative symbolic links, so the assets
were installed by using absolute symbolic links.
If I browse http://localhost/my_symfony/web/app_dev.php
Then I got following errors
Can anyone say what can be solution ??
Thanks
For some reason php can't access intl.so extension. It could be that the extension is installed but php don't have permission to access it or you should install it yourself. Piece of advice, Windows operating system is not really that popular when it comes to web development. It would be difficult for you to search for answers that can be applied in Windows and this applies to future problems as well. Develop using unix based operating systems.
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
Heroku does not support PHP officially, so I needed to add PHP extensions manually. I have created a php.ini file on my main directory:
extension_dir = "/app/www/ext/"
extension=mongo.so
extension=oauth.so
extension=solr.so
All the extension files are on the ext folder which is on the main directory also. Mongo and OAuth extensions are working perfectly but when Solr added, apache is giving me the error below:
PHP Warning: PHP Startup: Unable to load dynamic library '/app/www/ext/solr.so' - /lib/libc.so.6: version `GLIBC_2.14' not found (required by /app/www/ext/solr.so) in Unknown on line 0
...and Solr extension is not working, obviously. I'm using Websolr add-on on Heroku and unfortunately neither Heroku nor Websolr is willing to help me about the issue. Heroku says "PHP is not officially supported," and Websolr says "ask Heroku."
So, any help will be appreciated.
It seems that there are no direct solutions but I have found a workaround. Instead of using solr.so extension, one can use open-source solr-php-client from here. It does note require a compiler, so no apache errors on Heroku.