PHP is a widely-used, general-purpose scripting language that is especially suited for web development.
1
vote
0answers
43 views
Nginx on Debian 8 dev setup. PHP via PHP FPM not working
I am trying to complete my Linux, Nginx and PHP 5 dev environment setup and my index.php test page is not loading.
I installed what follows, sudo apt-get nginx php5 php5-fpm dnsmasq on Debian 8, ...
1
vote
1answer
47 views
Problem with PHP, libncursesw and Arch
After doing a system upgrade, whenever trying to use php it complains:
php: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
Sure, ...
1
vote
0answers
8 views
Is PHP smart loading /etc/php/php-cli.ini? [migrated]
I've been having issues using the PHP CLI with my current configuration in /etc/php/php.ini - namely: open_basedir restriction in effect. To combat this, I was planning on creating a separate ini ...
1
vote
3answers
54 views
parse credentials from PHP configuration file
I'd like to write bash script to parse data from a configuration file. I searched for this but without finding something I could modify to suit my needs.
Joomla! config file:
public $access = ...
0
votes
0answers
20 views
Calling a password checking command from PHP using exec() - how to escape user input?
I am working on a PHP-based website where the login form needs to authenticate against local users on the system via PAM - in other words, they should be able to login successfully if they enter a ...
0
votes
1answer
28 views
Find mails, pipe them to php and delete after
I have a script that saves to DB content of piped to it file.
cat /mailpath/Maildir/cur/mailfile | php -q /scriptpath/mailPipe.php
I need a shell script or oneliner to find all files in Maildir, ...
0
votes
1answer
26 views
Calling php function from /var/www/folder (as www-user), which is located in a file in /var (or any folder) (with root permissions?)
I wrote a script which "walks" through /var/www/xyz and scans folders and more. The folders are all 'user-bound', so the permissions for a single folder there are set to the specific user.
Running ...
0
votes
1answer
45 views
Replace newlines in multiline input with “\n”
I've been trying to do some work with generating SQL commands with an interactive bash script and have a multiline string that I need to escape for use with MySQL.
Notes has already been defined as a ...
0
votes
0answers
43 views
Can't compile php 5.3 on Centos 6
I need enable php-fpm on php 5.3.29 to Centos 6, I have this error while running the ./configure script:
...
config.status: creating sapi/fpm/php-fpm.conf
config.status: creating ...
0
votes
1answer
31 views
Backup issue DirectAdmin - Centos 7
i hope that someone can help me with this. In Centos 7 + DirectAdmin i have a problem when i wan to make a backup from all users as ADMIN.
I have googled tried alot of things but nothing helps... I ...
0
votes
0answers
43 views
Doctrine OCI8 charset behavior between php-cli and php-fpm
My Oracle database is in ISO8859-1 (not by choice).
I'm struggling with segfault from php-fpm for a couple of days now. To dig out the source of it I've set two parallel environnements with the ...
0
votes
0answers
45 views
Why does apt-get upgrade not install the latest PHP version?
I usualy do
apt-get update
apt-get upgrade
in order to keep my Debian 8.x server up to date. I also tried apt-get dist-upgrade, however, my PHP version is still the same one that I installed months ...
0
votes
0answers
27 views
PHP-FPM / Nginx, hundred requests / second in a single file
My FPM Config (PHP 5.6.x with opcache)
pid = /var/run/php-fpm/php-fpm.pid
rlimit_files = 10000
rlimit_core = 0
[www]
listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1
user = nginx
group = ...
0
votes
0answers
14 views
“[unixODBC][Driver Manager]Data source name not found, and no default driver specified” When using Teradata ODBC Drivers
I am running a PHP script on a RedHat server using Teradatas ODBC drivers.
<?php
$conn = odbc_connect("Teradata", "username", "password");
$result = odbc_exec($conn, 'SELECT count(*) FROM ...
1
vote
2answers
70 views
How do fast Convert a .xls (MS Excel) file to .csv
How will do fast covert excel to csv. I had tried with php, perl, JavaScript. but it will take too much time. i.e for 5MB file it will take 3-5 mints
0
votes
0answers
4 views
Separate web directories of nginx+php-fpm
On my server I run mediawiki, owncloud, roundcube on same hardware, with same nginx and php-fpm process. But I worry about security. Because if hacker get access to filesystem of one of this web ...
0
votes
0answers
14 views
php update on ubuntu 11
I need to install Moodle2.9 but it requires at least php 5.4.4.
The server runs ubuntu 11.04 and webmin:
~# cat /etc/issue
Ubuntu 11.04 \n \l
~# php5 -v
PHP 5.3.6-13ubuntu3.10 with Suhosin-Patch ...
1
vote
0answers
53 views
Opcache and shared memory issue
I installed zend_opcache on my server box , but I can not increase opcache.memory_consumption over 1600 . (example : 2048) . after increase following error occur in server :
Fatal Error Fatal Error ...
0
votes
0answers
21 views
NGINX Stopped Serving PHP After Upgrade
Preface:
I performed a dist-upgrade of my Debian LEMP server from 7.x (jessie) to stable and PHP pages stopped displaying. I eventually figured it out but am not really sure -WHY- my fixed worked. I ...
0
votes
0answers
36 views
Is my Nginx,php-fpm and mysql config good enough?
My Setup:
Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GH
30 GB Ram
1 Gbps Premimum/Dedicated Line
Softwares3
MariaDB 10.0.20
NGinx 1.8.0
PHP with FPM 5.6.8
Our servers gets a LOT of requests (more ...
1
vote
0answers
15 views
Nginx php doesn't execute
I'm using nginx on centos 7 with php 5.4.16. I have tried this to adding nginx.conf:
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass ...
0
votes
0answers
21 views
How should I upgrade php5.3.20 to PHP 5.4 or higher than in Centos 5.3?
I build a webs application by using Codeigniter3 which required PHP5.4 o higher than this version and hosted in Centos Linux 5.3.
So how should I upgrade PHP5.3 to higher version?
However what is PHP ...
0
votes
0answers
21 views
How to set user creation limit on vtiger CRM?
I have installed vtiger latest version.
In the admin panel how to set the user creation limit?
I need to set maximum users = 10.
0
votes
1answer
98 views
ispconfig PHP not parsing on apache2 virtual host
I have trouble installing ispconfig 3 on my (L)Ubuntu 15.04.
I can fully install ispconfig but I can't reach the website when viewing the virtual host of apache2. I can open ispconfig from ...
0
votes
1answer
34 views
Installing a different php version for a subdomain
I have a cPanel dedicated server installed with PHP 5.2.17. I need to use php 5.3 version for my subdomain and the directory needed php.5.3 is /home/website30/public_html/blog/.
Can anyone provide ...
-2
votes
1answer
47 views
Errors trying to execute a Metasploit script
I'm trying to run this exploit in Metasploit on Kali Linux. I have the file in the exploit folder, I just need to execute the script, but I'm getting some errors. This is the description from the ...
0
votes
1answer
303 views
PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'
I am running PHP 5.6 on Linux. When I try to load a PHP page, I'm getting the following PHP error.
PHP Startup: Unable to load dynamic library
/usr/lib64/php/modules/php_mysql.so'
When I look ...
2
votes
1answer
189 views
install php7 alongside php5 on ubuntu
I have installed php 5 as my main version on ubuntu 15.04 which i use to develop my current projects. I want to install php 7 alongside php 5 is there a way to install both??
1
vote
0answers
41 views
php5-embed does not load extensions
While setting up php on my Ubuntu server (using php5-embed under uwsgi/nginx), I noticed curl.so was not being loaded. The file /etc/php5/embed/conf.d/20-curl.ini exists and contains ...
1
vote
1answer
185 views
PHP mail (using Postfix) send out to Gmail marked as SPAM
I'm totally new to "Email Systems" and it's concepts. I just use a simple email sending codes via PHP, like:
mail("[email protected]","my header","my body");
I understand this is going through ...
0
votes
1answer
45 views
Enable centos server to make FTP connection to other windows based server via php
When i am running this same code from my local wamp.Works fine and prints the result.
//connection to a ftp server across proxy
putenv('TMPDIR=/tmp/');
$ftp_server = "SERVER IP";
$ftp_user_name = ...
0
votes
1answer
71 views
find returns 'No such file or directory'
Continuously getting so many warnings yet my command is working fine.
find: `api/PlayersImpl0.smali': No such file or directory
find: `api/PlayersImpl1.smali': No such file or directory
find: ...
1
vote
2answers
57 views
how can I configure Apache so that PHP scripts are run with permissions of the owner of the script?
I have an Apache webserver. I have some PHP scripts on it. Scripts are run as the user www-data - it is as the user that runs Apache. I want to configure Apache so that PHP scripts are run with ...
1
vote
0answers
49 views
nohup not working when called from root folder
When i execute nohup command from the same folder it's working fine (server.php is used to listen to a port 7070)
root@servername:/var/www/html/admin# nohup php server.php &
[4] 2803
...
0
votes
2answers
144 views
how to Check a php script is running if not run
i am running a php file using
nohup php server.php &
this listen for a particular port and do action according to the input.
The problem is sometime the script stops and I can't use cron job ...
0
votes
1answer
60 views
How can I configure my server to avoid information leakage from the SERVER header of its HTTP response
I have a centos 7 server with apache v2.4.6 php 5.4.16 and OpenSSL 1.0.1e-fips installed. I was just doing a scan to it to see how secure my server is. I found out that my server is giving out ...
0
votes
0answers
25 views
enforcing php version based on git branch
Is there a way similar to .rvmrc to automatically set the php version used while developing in a branch? I think phpbrew will do what we want, however we are uncertain how to enforce a specified ...
0
votes
0answers
114 views
PHP 5.6.10 Bad Installation on CentOS 7 using Plesk 12
I upgraded the PHP version from 5.4 to 5.6.10 with remi and while I am trying to access to a file.php I can see the full code in "Source code".
I was reading about that and it seems that the ...
2
votes
3answers
118 views
Run a task in background and know the time of its termination
I need to run a unix shell script (my_script) in background and monitor it from web interface.
I start the actual script from php like so:
$command = 'my_script';
$pid= exec("nohup {$command} > ...
0
votes
1answer
130 views
php drop down menu to execute script with argument
I have shell script which I run like this
/var/www/test.sh 2015
or
/var/www/test.sh 2014
When this script runs, it actually takes data from freeradius and generates gnuplot base graph for the ...
1
vote
1answer
252 views
Cannot install composer on FreeBSD 10
I have a FAMP SERVER I'm setting up.
FreeBSD 10.1
Apache 2.4
MySQL 5.6
Php 5.6
Everything working ok so far. I installed symfony no problem but now trying to install composer.
curl -sS ...
1
vote
0answers
101 views
Install php apache module from source in CentOS 6.6
I tried running yum install php on my centos box however it kept installing an older version. Therefore I installed apache 2.4 and php 5.4 from source. However, I'm not sure how to install the ...
1
vote
1answer
45 views
Activate PHP commands on login
Everytime I login into my centOS box. I need to run source /opt/rh/php54/enable to be able to run php commands. What do I need to do to my installation for this to work without running this command?
...
0
votes
1answer
118 views
Php shell_exec() : for non root user, how to access root command
I have a tricky step to walk for my system (openvpn, 20 clients - raspberries, 1 server CentOS).
I want to make an auto install, from clients, for their keys.
They call a php page on the server, ...
0
votes
0answers
145 views
(noob) script works from root ssh <-> php shell_exec() does not
A nooby2death question:
In a vpn project, I generate keys automatically for clients.
I do this with a script file containing :
pkitool clientNameForKey
This line :
- does work if I execute the ...
0
votes
3answers
240 views
Get MAC of a client request?
I have a network with 20 raspberries (clients) and 1 server.
I'd like to check MAC of client request, is that possible ?
Further, possible without being known (nor visible) by the client ?
NB : I ...
0
votes
0answers
42 views
FreeBSD php (cli) in host system with application jail
Case: platform with FreeBSD (10.1) on the host system and multiple application jails.
One of the important goals for multiple jail - multiple php versions.
Users have access only in host system.
...
0
votes
1answer
143 views
PHP script to monitor process and write status to a file
I want to write a php script for monitoring particular process using top command and write into the file.
I use top -p pid for monitoring a particular process and also i write a shell script for ...
0
votes
1answer
127 views
How to Install or enable PHP-FTP support on Linux Apache server?
In my PHP code I am using the below function
ftp_connect()
But it throws an error, FTP is not enabled for PHP.
Can any one tell me how to enable/install FTP in RHEL, Apache2.2 server,PHP Version ...
0
votes
2answers
95 views
Generate a list of installed PHP extensions
My goal is to write an as simple as possible (but not more simple) that generates a list of currently installed PHP extensions (*.so files) that the user can simply copy/paste into their php.ini. It ...