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

learn more… | top users | synonyms

0
votes
2answers
18 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 ...
1
vote
0answers
16 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 ...
0
votes
0answers
13 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 ...
0
votes
0answers
28 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 ...
-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
2answers
235 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 ...
0
votes
1answer
59 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
46 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 ...
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 ...
0
votes
2answers
110 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 ...
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
38 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 ...
1
vote
0answers
34 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 ...
1
vote
1answer
246 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 ...
0
votes
2answers
186 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 ...
3
votes
2answers
314 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 ...
0
votes
0answers
31 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
100 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
69 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 ...
2
votes
0answers
24 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
40 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 ...
2
votes
3answers
56 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
2answers
156 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 ;-)
1
vote
1answer
20 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 ...
1
vote
1answer
60 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
16 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
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
41 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
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 ...
2
votes
1answer
111 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 ...
0
votes
1answer
25 views

Execute a php file x amount of times one after another

If I execute a php file like such: php phpfiletoexecute.php It will run 1 time. What I would like to do, is run the php file example 5 times one after another (1st completes, 2nd run starts, 3rd, ...
0
votes
1answer
111 views

Fedora 23 Apache and PHP not working

I am struggling to get an answer to this. I have Fedora 23 install, in place upgrade from Fedora 22. When I go to http://localhost I get a list of files and folder and not the Fedora Test Page as it ...
0
votes
1answer
39 views

How to update apache, mysql, phpmyadmin and php?

I have my own web server running on my raspberry pi, and all my programs are outdated. I would like to update my PHP, Apache, MySQL, and phpMyAdmin. Can anyone tell me how to update all of these;? ...
0
votes
2answers
21 views

file globbing in bash not being picked up by php -l

I am trying to run php's lint function on all files in a directory, and it's proving to be harder than I expected. (I know there are non-php files here; I'm not concerned about that right now.) Here's ...
0
votes
1answer
42 views

bash PHP versus Plesk domain installed PHP

I have configured my domain to use PHP 5.5.30 ... but when I SSH into the server, bash is telling me that the php -v is 5.4.13 Why does bash use a different version of PHP, even though when running ...
-1
votes
1answer
65 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 ...
0
votes
1answer
79 views

Configure a subdomain (Virtualhost) for phpMyAdmin

I have a problem with configuring a subdomain (Virtualhost) for phpMyAdmin. My current .conf look like this: <VirtualHost *:80> ServerName php.erichermansson.com ServerAdmin ...
0
votes
1answer
42 views

Update /bin/usr/php in CentOS 6 [duplicate]

I have Plesk 12.5 installed, and it allows you to install multiple versions of PHP to be selectable within hosting spaces (domains), but the issue I've having right now is that the php that is being ...
1
vote
1answer
148 views

Change PHP PATH Variable for SSH

I'm trying to figure out how to change which version of PHP the php alias uses... I want it to use: /opt/plesk/php/5.6/bin/php But it currently uses: /usr/bin/php (I think) How can I ensure that ...
3
votes
1answer
70 views

Access a file in PHP through a symbolic link from a user that normally doesn't have permission

I have this website, where if the user submits a form, a python script is executed through a php page, and the python script creates a zip file and should offer it to the user for download through a ...
1
vote
0answers
36 views

Apache, can't link to Home directory, Alias does not work

I am trying to make a folder in which I can build websites (using php). I have switched from a Windows system where I was using Uniserver (http://www.uniformserver.com/) which is a setup with MySQL, ...
0
votes
1answer
190 views

Install libmysqlclient 5.5.3 on Centos 6

I'm installing Drupal 8 on my Centos 6 server. To do this I needed to upgrade both PHP and MySQL. However, I'm now getting the following error message: The libmysqlclient driver version 5.1.54 is ...
0
votes
2answers
328 views

How find and install PHP 5.3.10 or later on CentOS 6.5?

When I check yum list php it only shows 5.3.3 which is older than 5.3.10. How do I get and install the newer PHP? (Using CentOS 6.5)
1
vote
2answers
84 views

How can I reach an open & listening port on Linux?

After forwarding the port I wish to open, I cannot seem to connect or get any data to this port. The PHP CLI software I have written is listening to the port actively on Ubuntu 14.04. Part of the code ...
0
votes
2answers
78 views

Cannot install php-ldap on CentOS 5 server

I tried to install the php-ldap package on my machine but was not able to do so. It shows missing dependencies error for php-common, but the said package is already installed and updated. See the ...
0
votes
0answers
66 views

Unable to install php 5.2.12 on FreeBSD 10 because of libphp5.so missing

I participate in a project where old PHP 5.2 is needed. But I can't install it on FreeBSD 10, always I get this error: [trex@H417 ~/Install/php-5.2.12]$ sudo make install Installing PHP SAPI module: ...
2
votes
0answers
39 views

Unable to insert records on sqlite on a Linux environment

I tested a simple Php program using Sqlite3 instead of mySQL on my own computer and it works fine. What the program does is simple insert of record into a certain table. Now, when I try to do that on ...
0
votes
0answers
27 views

How can I display \n as new lines in multitail?

I am using multitail to monitor logs while I program. I really like this tool. However, it is hard to use it to view object output in a php error log because new line characters \n are not processed. ...
1
vote
1answer
80 views

Restart PHP-FPM from a PHP script

I am running a LEMP stack and wish to write a simple control panel for it. So, I want to be able to restart php-fpm from a php script. To achieve this, this is what I did. Created a binary wrapper ...
1
vote
1answer
92 views

How can I run sed to replace lines in a file or do similar things in PHP?

I am writing a web frontend for configuring OpenWRT. I'm using PHP to execute commands and all the uci commands are executing without issues. However, OpenVPN configurations cannot be done via UCI and ...