guys
I've intalled the mysqli.so from the source:
[root#li460-123 no-debug-non-zts-20090626]# pwd
/usr/lib64/extensions/no-debug-non-zts-20090626
[root#li460-123 no-debug-non-zts-20090626]# ls
mysqli.so pdo_mysql.so
[root#li460-123 no-debug-non-zts-20090626]#
And then i enable it in /php-install-2/etc/php.ini (where my php installed):
extension=/usr/lib64/extensions/no-debug-non-zts-20090626/mysqli.so
Then i restart my nginx server but the phpinfo didn't show MySQLi.
[http://sobugou.com/phpinfo.php][1]
My php is installed at
[root#li460-123 php-install-2]# pwd
/disk1/php-install-2
[root#li460-123 php-install-2]# ls
bin etc include lib man sbin share var
[root#li460-123 php-install-2]# cd etc/
[root#li460-123 etc]# ls
php-fpm.conf php-fpm.conf.default php.ini
[root#li460-123 etc]#
Could anyone help ? thanks !
When you look at http://sobugou.com/phpinfo.php, you can see Loaded Configuration File is set to (none). This means that your php.ini configuration file is not being used. Problem can be fixed using --with-config-file-path=PATH flag during PHP compilation.
See more: php.ini is nonexistent Loaded Configuration File (none)
Related
When starting Charles after getting a new MacBook Pro with Catalina, I get the following message
Charles cannot configure your proxy settings while it is on a read-only volume
None on the above solutions worked for me. Both gives error as "Charles Proxy Settings" is not a directory
Instead of the file give the ownership & permission to the entire resources folder
sudo chown -R root "/Applications/Charles.app/Contents/Resources"
sudo chmod -R u+s "/Applications/Charles.app/Contents/Resources"
Found solution to this. After running this it worked fine. Previously, "Charles Proxy Settings" was in the MacOS directory and was recently moved to the Resources directory.
#!/bin/sh
SETTINGS_BIN="/Applications/Charles.app/Contents/Resources/Charles Proxy Settings"
chown root "${SETTINGS_BIN}"
chmod u+s "${SETTINGS_BIN}"
Good to me! Thanks
My Shell,as below
#!/bin/bash -il
# coding=UTF-8
cd ~
SETTINGS_BIN="/Applications/Charles.app/Contents/Resources/Charles Proxy Settings"
sudo chown root "${SETTINGS_BIN}"
sudo chmod u+s "${SETTINGS_BIN}"
I am using centos 6.9 and want to install xampp. But when I run the command on the terminal it showing error i.e. cannot execute binary file. So, How can I fix this problem and successfully install xampp ? Please help me.
chmod +x xampp-linux-x64-7.0.22-0-installer.run
./xampp-linux-x64-7.0.22-0-installer.run
after this command it showing
bash: ./xampp-linux-x64-7.0.22-0-installer.run: cannot execute binary file
You're probably running the install (binary) with a lesser privileged user. You'll have to use root user for modifying SELinux settings as such:
semanage fcontext -a -t httpd_sys_script_exec_t '/<install-location>(/.*)/?'
restorecon -R -v /<install-location>/
I tried to install NTLM on CentOS 5 with Apache 2.
I did the following steps.
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/S/SP/SPEEVES/Apache2-AuthenNTLM-0.02.tar.gz
tar zxvf Apache2-AuthenNTLM-0.02.tar.gz
cd Apache2-AuthenNTLM-0.02
perl Makefile.pl
make install
After that I added to my httpd.conf the following:
<Directory “/var/www/htlm/secure”>
Options Indexes
PerlAuthenHandler Apache2::AuthenNTLM
AuthType ntlm,basic
AuthName Secure Access
require valid-user
PerlAddVar ntdomain “YOURDOMAIN domaincontroller backupdomaincontroller”
PerlSetVar defaultdomain YOURDOMAIN
PerlSetVar splitdomainprefix 1
PerlSetVar ntlmdebug 0
PerlSetVar ntlmauthoritative off
</Directory>
Now I tried to restart the httpd service but I got the following error:
service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 1018 of /etc/httpd/conf/httpd.conf:
Invalid command 'PerlAuthenHandler', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
Do I need to add something else or do I need to add a module?
Thanks
Regards Paul
According to http://www.webmasterworld.com/forum13/4292.htm, you need mod_perl too.
[root#localhost ~]# service snortd start
Starting snort: /usr/sbin/snort: error while loading shared libraries: libdnet.1: cannot open shared object file: No such file or directory
[FAILED]
But libdnet is installed:
root#localhost ~]# rpm -qa libdnet
libdnet-1.11-1.2.el6.rf.x86_64
I had a similar problem using snort-2.9.6.2-1.centos6.x86_64.rpm downloaded from snort.org.
yum install snort-2.9.6.2-1.centos6.x86_64.rpm would not work because it needed version 1.11-1.2.el6 and the current version is 1.12-6.el6 so I had to download the rpm and from http://pkgs.repoforge.org/libdnet. After installing that my snort would install.
That aside I see you are already using the right version but it still doesn't work. So try this
# find / -name 'libdnet*'
/usr/lib64/libdnet.so.1.0.1
/usr/lib64/libdnet.so.1
# cd /usr/lib64
# ln -s libdnet.so.1.0.1 libdnet.1
Snort should now start assuming everything else such as the conf files are set up ok
I am trying to run some PHP pages on the command line but am running into a few problems with mysql and other PHP extensions.
Running php --ini produces the following output:
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
When I run php on the command line it cannot find my php.ini file. This is because the path is incorrect. My php.ini is actually located in /etc/php.ini as stated in my phpinfo(); file. PHP runs fine in the browser.
How do I change the path of my php.ini file for command line PHP?
I am running Apache2 (CentOS-5.5) and PHP 5.2.6.
Using the -c option, you can specify which php.ini file should be used :
php -c /etc/php.ini your-php-script.php
As a reference, see the output of php --help :
$ php --help
Usage: php [options] [-f] <file> [--] [args...]
php [options] -r <code> [--] [args...]
php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
php [options] -- [args...]
php [options] -a
-a Run as interactive shell
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
...
First update your sloacate database by using the command updatedb
Then try to locate php.ini file by using the command php --ini
I hope it'll update the slocate database and it will display the ini files loaded path.
[root#tamilan src]# php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php.ini
Scan for additional .ini files in: /etc/php.d
Additional .ini files parsed: /etc/php.d/apc.ini,
To run php with customized or other php.ini file use the below method
php -c /etc/php.ini your-php-script-file.php