PHP is a widely-used, general-purpose scripting language that is especially suited for web development.

learn more… | top users | synonyms

0
votes
2answers
15 views

Run this PHP file via Cron Job

Here is the script: <?php //Create back files? define('CREATE_BACKUPS', FALSE); if (!is_dir($argv[1])) { echo "You must enter a valid path such as /home/apresv/public_html or ...
1
vote
1answer
25 views

How do I upgrade PHP on CentOS 6.7 for CiviCRM 4.7 / WordPress?

Is there any kind of "official" repo for upgrading PHP beyond the stock PHP 5.3.3 found in CentOS 6.7? I'm trying to utilize the SCL repo's, but finding all sorts of peculiarities that seem to point ...
0
votes
1answer
780 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 ...
0
votes
1answer
27 views

Exceeding memory issues on server using PHP

PHP has memory limits set at a global level in the PHP.ini file. I also know that they can be configured at the local level. Our memory limit for a query is set to 132MB, but we keeping getting ...
0
votes
1answer
46 views

ffmpeg output.mp4 with size 0

I have a video upload script in php where i exec the following command exec("/usr/bin/ffmpeg -i ".$folder."/".$filenameIn.".mp4 ".$folder."/".$filenameOut.".flv 2>&1", $output); and the ...
0
votes
3answers
31 views

Debian 7.0 failed to install package php5-dev

While trying to install in debian, shows libssl-dev dependency needed apt-get install php5-dev Reading package lists... Done Building dependency tree Reading state information... Done Some ...
0
votes
2answers
18 views

Using Screens with a PHP Script

I found an external developer to make me a PHP script to 'snipe' Mineraft usernames. In order for it to operate, I have to start the script from the command line using this: php -f sniper.php > ...
1
vote
3answers
10k views

How can I check if my cronjob is runnning on my server via PHP?

I would like to give out a warning If cron is not running or if a certain cronjob is not set in crontab on my server. Is this possible to check with php?
4
votes
1answer
990 views

suexec with chrooted environment

I'm trying to get a chrooted Apache environment working running mod_fcgid with suexec. Looking at suexec log inside jail, the wrapper scripts are being executed with no problems, however, when I look ...
1
vote
0answers
20 views

Permissions on nginx log files

I have a PHP/nginx environment on OS X which is deployed to an Ubuntu server. On OS X, nginx is set up with Homebrew, thus my user ("joe") owns the files, whereas on Ubuntu nginx is installed with ...
1
vote
1answer
1k views

phpmyadmin doesn't work after installing php5-mysqlnd

I am currently running into some problems with phpMyAdmin. I set everything up correctly and made sure everything worked. Then later after some developing on some pages I noticed I couldn't execute ...
0
votes
0answers
30 views

Process being stopped randomly

I made a script to manage a TS3 server. The script runs 'cd '.$ts3location.';/bin/bash '.$ts3script.' status' where $ts3location is the full directory to the server and $ts3script is ...
0
votes
0answers
17 views

Unable to upgrade PHP 5.3.3 to 5.6 on centOS 6.3

I got a problem with upgrading PHP 5.3.3 to 5.6 on linux centOS 6.3. I've already search it on the net and got answers including here (Since it's a classic problem), but still not able to solve it. I ...
4
votes
1answer
2k views

Howto fix my PHP install on FreeBSD using pkg

I've been messing around with pkg install, installing / removing both php5-5.4.29 and php55-5.5.13. But when I run php from the command line, it will give me an error like this: PHP Warning: PHP ...
2
votes
1answer
121 views

How to read variables from a php file in bash

How do I export variables from a PHP script in Bash? I'm writing a Bash script to read database names from config.php files of each website, and then import the database from the backup repository. I ...
1
vote
1answer
1k views

PECL memcached installation gets error

I installed Zend Server 6 (debian). Also installed several packages: apt-get install gcc apt-get install g++ apt-get install libncurses5-dev apt-get install zlib1g apt-get install zlib1g-dev ...
0
votes
2answers
211 views

How to install lampp (php7) on Manjaro?

I Tried following this guide, didn't work and it's the only guide I can find. I have php7-apache, apache, php7, mariadb, php7-mcrypt, all installed, either through pacman or yaourt, all have their ...
0
votes
1answer
1k views

Slow DNS resolve from curl/lynx etc

I have a strange issue with DNS resolving: Root of the problem is that I get curl errors: "Error executing HTTP request: name lookup timed out". Tried to ping some sites, all resolved fine (and fast). ...
0
votes
2answers
274 views

How to install php7 modules in archlinux?

I have the following php version installed: PHP 7.0.2 (cli) (built: Jan 6 2016 11:50:59) ( NTS ) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies ...
2
votes
2answers
3k views

Git pull error libcurl.so.3 not found

I have a php script to git pull from my github repository set up in my webservice hook urls like so: <?php echo shell_exec('~/git/usr/bin/git pull 2>&1'); ?> When I open this script ...
-2
votes
0answers
21 views

Complex sed Command for Insert Command [migrated]

I have a bunch of php files which have many insert commands. In each query i want to insert a coloumn variable admin_id = '$admin_id' i.e. if the query is insert into users (ch_id, num_value) values ...
0
votes
1answer
4k views

How to install Owncloud on CentOS 6.5

I wanted to install Owncloud on my VPS running CentOS 6.5. I followed the instructions on the official owncloud website but when I run the command yum install owncloud it says Error: Package: ...
0
votes
1answer
82 views

Installing oci8 php extension

On a CentOS 7 server, I have installed PHP from remi repository. I need to connect to Oracle 9.2 on a remove machine. Installing oci8 via yum install oci8 results OCI8 Version 2.1.0 which is not ...
2
votes
2answers
49 views

Restarting httpd kills scripts executed from PHP

My game server has a custom PHP administration interface, which can run the server manually by running the start shell script with exec and sudo -E. However, if I restart httpd using service httpd ...
0
votes
2answers
130 views

How to remove a script tag from a text file with sed

I have a number of header.php files that have a malicious script tag contained within them (don't ask). I've written a not-so-elegant shell script to replace these with blank space. I had initially ...
0
votes
1answer
3k views

mcrypt, EPEL and CentOS 6.4

I am having issues installing php-mcrypt. I am not an administrator of any level. I have performed the following. Installed EPEL Installed REMI Configured EPEL Updated YUM Cleaned YUM Installed ...
1
vote
1answer
23 views

How to Load data to one table from Multiple excel files?

I have to load data from multiple excel file into one table , Please help me to achieve the solution. We are getting excel file from different retail shop which contain multiple column , each file is ...
-1
votes
1answer
71 views

imagettftext(): Could not find/open font in /usr/share/pear/Image/Canvas/GD.php

I’m using this tutorial http://www.phpbuilder.com/columns/ian_gilfillan20060503.php3?page=2 But when I try and use a font I see the following in http error log and no font is displayed. From ...
1
vote
2answers
71 views

Complex sed Command with AND/OR/NOT

I have a bunch of php files which have many select commands. In each query i want to insert a coloumn variable admin_id = '$admin_id' i.e. if the query is select * from users where abc='xyz' and ...
0
votes
0answers
43 views

PHP5.6.x on CentOS 6 with extensions

I have installed Bright Game Panel on my CentOS 6 x64 VPS. However, there is an issue when it comes to fulfilling the software's requirements. It requires three additional PHP extensions, MBSTRING ...
3
votes
2answers
379 views

Installing PHP7.0 from sid on jessie

I'd like to try PHP7.0 on Debian Jessie and am trying to install it from sid. However, php7.0 depends on php7.0-common which depends on php-common > 18 while php-common in sid is at 17. Does this ...
1
vote
0answers
39 views

PHP app crashes: child pid exits with Illegal instruction (4)

I have a CentOS 6 server with Apache and PHP. I run some application and can constantly reproduce this crash. After some sequential action the app dies and the only trace I found is the following ...
3
votes
1answer
341 views

php 7 install throws “Cannot load Zend OPcache - it was already loaded” error

I am using salt to provision my servers, and I just tried to upgrade to php 7 and although everything is installing correctly, anytime I run php -v or run any php anything it throw this at the head of ...
2
votes
3answers
2k views

Using sudoers to allow php to run command

I am trying to get my php page to run this command: shell_exec("sudo /home/xbian/433Utils/RPi_utils/codesend {$num}"); So I added this entry to my sudoers file with visudo: www-data ALL=NOPASSWD: ...
0
votes
0answers
113 views

How to install laravel on xampp?

I'm using the latest version of manjaro 64 bit and latest version of xampp. I want to install composer and laravel, tried many solutions on stackoverflow and askubuntu. Everytime I see a different ...
0
votes
0answers
33 views

PHP-FPM Permission denied on folders

I get read/write errors on a new CentOS + Nginx + PHP-FPM server, this is muy configuration Nginx user nginx; [...] fastcgi_pass 127.0.0.1:9000; PHP-FPM user = nginx group = nginx listen = ...
0
votes
0answers
71 views

nginx + php-fpm error: failed to ptrace(PEEKDATA) pid: Input/output error

I'm seeing a few of errors like the one below in the php-fpm-error.log. We're running a Fedora setup with nginx and php-fpm and I'm just wondering what it means. Any ideas? ERROR: failed to ...
1
vote
2answers
169 views

Are any upcoming distros offering PHP 7 by default? [closed]

I am wondering if anyone is aware of any upcoming *nix distros which will be including PHP 7 as the default version? Side note, can someone with rep please add the php7 tag ;-)
0
votes
2answers
343 views

Apache not reading changes to PHP files

I'm developing on a CentOS6 server with Apache and PHP. When I make a change to a PHP file (and save) it appears that apache is not reading the changed file - it's still processing my old .php file. ...
2
votes
0answers
25 views

Fatal error: Call to undefined function gzopen() in /etc/apache2/htdocs/sites/all/modules/smart_ip/includes/smart_ip.utility.inc on line 454

I'm using centos 6.7, http 2.4.17, mysql 5.1, php 5.5.30. web page is working fine but at bottom it is giving below error. Fatal error: Call to undefined function gzopen() in ...
0
votes
0answers
41 views

“yes | head” never stops when executed from Apache server?

I have a page on my site that runs a script that involves yes. The line that invokes yes is like this: fullalistan="$(yes "$firstnopng" | head -n $repeater | awk '{ print $0 "" FNR ".png" }')" Now ...
1
vote
1answer
21 views

Nginx redirects all domains to one website

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
2
votes
3answers
57 views

How to add tag for xml from file exist using shell linux

xml1.xml <app> <bbb> <jjj>test1</jjj> </bbb> <bbb> <jjj>test2</jjj> </bbb> </app> xml2.xml file2 ...
1
vote
1answer
62 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 ...
2
votes
1answer
669 views

Multiple PHP Versions / cPanel with mod_fcgid

I'm trying to get multiple PHP versions working on a cPanel server which was compiled with mod_fcgid and PHP 5.3. Below is the PHP config generated by cPanel. AddHandler fcgid-script .php5 .php4 ...
1
vote
1answer
73 views

shell_exec cannot create file

I'm using nginx webserver and I'm writing a script that includes file creation but www-data is not able to create the file even I give permission in the sudoers list. Inside my sudoers file: ...
0
votes
1answer
17 views

Enable modules in PHP 5 without recompiling

I am trying to install a CMS which requires the mbstring module for PHP. According to that page, the module is installed but not activated by default. The article links to an install page which ...
1
vote
2answers
538 views

“not a valid package archive” when trying to install PHP extension?

I'm running CENTOS 6.6 on a VPS and am trying to install the ZMQ PHP extension and tried installing using the command shown in the instructions: sudo pecl install zmq-beta However, it fails, ...
1
vote
1answer
48 views

Need To grab IP of visitors from the Apache logs , How could I do it?

I want to store the IP of the visitors to my website, I want to use PHP , Should I use cron for it or how will be the visitors IP will be automatically stored ??
0
votes
0answers
22 views

Error Output From HHVM Under Nginx

I have a web-server that I've set up with nginx with HHVM for handling PHP, and everything's working great except for one minor gripe; the location of PHP errors. When I was using PHP-FPM, errors ...