PHP is a widely-used, general-purpose scripting language that is especially suited for web development. Use this tag when you are dealing with a PHP script, installing PHP, or configuring a PHP installation.

learn more… | top users | synonyms

1
vote
0answers
28 views

nginx proxy - 502 bad gateway

First of all let me tell you that I am not an expert on web-servers and things like that. I'm trying to set-up a cloud system on raspi following this link: RasPi Owncloud However, when I try to ...
1
vote
0answers
24 views

download file/backup from remote server to desktop without SSH or SCP?

Issue Background I was trying to install uTorrent on my PHP site and mid-process I was kicked out of SSH and the website went down. libssl.so.1.0.0 and libcrypto.so.1.0.0 were required for uTorrent ...
4
votes
1answer
66 views

accessing path from outside the root with symlink

I need to add an outside path to my apache configuration. (httpd) so, I made a symlink to this path in my httpd root folder, the path is: /var/log/httpd/ (I want to display logs directly in my ...
0
votes
0answers
17 views

ffmpeg-php is showing in phpinfo but not working

Php info result ffmpeg-php version 0.7.0 ffmpeg-php built on Jul 13 2016 22:27:57 ffmpeg-php gd support enabled ffmpeg libavcodec version Lavc57.50.100 ffmpeg libavcodec license nonfree and ...
0
votes
0answers
16 views

not able to install ffmpeg php

I have installed this ffmpeg in CentOS server using ffmpeg auto installer version N-80962-g70d418c. After that I downloaded ffmpeg-php-0.6.2 and tried to configure and I got this error: configure:...
0
votes
2answers
49 views

Remove injected code from all php files in directory on Ubuntu [duplicate]

I have a site where some code was injected into a very large number of php files and removing them manually is not feasible due to the number of files. I can search for a variable name from the ...
0
votes
0answers
13 views

Unable to Authenticate PhPVirtualBox Remote host - Firewall off - Auth Off

I am trying to get the most very basic setup running that I can build upon for controlling a remote Virtualbox installation. The setup : Server A : 192.168.1.10 Oracle VM VirtualBox web service ...
0
votes
1answer
43 views

Build a sitemap from local PHP forum pages

I've been reading stackexchange for years now, and always managed to find an answer to the problems I had to deal with. This time however, I'm going to ask a question as I could not find a solution to ...
1
vote
2answers
60 views

Why my web browser always downloads the .php page rather than show it?

I installed a CentOS7 system in VMware Workstation. The host machine's OS is Win7; I compiled and installed apache2 (httpd) and MySQL in CentOS, and they both work well, I mean I can visit the index....
1
vote
1answer
23 views

phpVirtualBox - Control Remote Servers - Central Management

Not sure if this is possible, all my google results come up with RDP stuff, or just basic, how to install phpVirtualBox. I was wondering If I can set up a Central phpVirtualBox and connect it to ...
1
vote
1answer
53 views

Disk I/O and load average peaks once every hour

We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time. ...
-1
votes
0answers
24 views

unable to insert a row in mysql [migrated]

I am using LAMP server and a PHP script to connect to an existing Mysql server (local server i.e. host=localhost:3036). I have created a table called depositor using $sql2="create table depositor(...
0
votes
0answers
26 views

Magento can't send mails using postfix on ubuntu

For some reason mail() function fails when we try to send emails, I debugged the Magento base code and I found that it generates a call to mail function like this: $result = mail('test@test.net', 'My ...
0
votes
0answers
116 views

Mcrypt install dependencies issue

I'm attempting to install php-mcrypt on a system that I have been building as a webserver. I know its an old outdated software but its necessary for the app I'm installing. I believe the issue is due ...
0
votes
1answer
37 views

Shell to do action, when someone visited my webpage [closed]

Can someone make a script that beeps or does some action when a user visits my webpage (apache2)?
0
votes
0answers
32 views

PhPVirtualBox Fails to import VM - SOAPFault

I am trying to import previously existing VM's into PhPVirutalBox. The installation of PHPVirtBox goes fine. I can create a VM's in the VM root @ /srv/Virtualbox, but I can't seem to add VM's. Note : ...
0
votes
1answer
29 views

virtualhost problem with apache

I'm setting up a server with centos 7 and I have already installed Apache and php. I have tried to set-up a virtual-host to avoid "localhost/xxx.xxx", but now I cannot access to local-host any more. ...
0
votes
1answer
21 views

lamp server configuration error: locally stored php file not opening in the browser [closed]

I was learning how to configure LAMP server on Ubuntu machine. I was following the given website https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-...
0
votes
1answer
49 views

Install Apache and PHP on Centos without package manager (yum, rpm…) [closed]

Can anyone explain how to Install Apache and PHP on Centos without package manager? i've only found this documentation in my searches: http://php.net/manual/fr/install.unix.apache.php
0
votes
1answer
107 views

PHP7 debian apt-get [duplicate]

How to install PHP 7 via apt-get ? /etc/apt/sources.list deb http://packages.dotdeb.org jessie all deb-src http://packages.dotdeb.org jessie all command line wget https://www.dotdeb.org/dotdeb....
0
votes
1answer
201 views

Can't install Apache2 and PHP in Linux Mint 17.3 (libapache2-mod-php)

Apache2 and PHP are correctly installed, but libapache2-mod-php is giving problems. I try to install it with apt-get and I get the following: Some packages could not be installed. This may mean that ...
0
votes
0answers
9 views

Send new login & logout logs to a database

I want to know how to send new login and logout logs to a database. I know that last command outputs the "lasts" login info. But, I found the following problems? How to filter to only get new logs? ...
1
vote
1answer
40 views

Printing to ubuntu client via network, using php that reside in windows 7 webserver [closed]

I plan to change my windows 7 client to ubuntu 14.04 LTS. The client has a local printer (Epson LX-310) that is used to print an invoice in web app environment built using apache with php (the web ...
4
votes
0answers
119 views

Using a NFS for gcc, Apache, PHP, MySQL, glibc

I have 7 SLES VM. I am compiling always the newest version of gcc and all dependencies. Apache and all dependencies. PHP and all dependencies. MySQL and all dependencies. glibc and all dependencies. ...
1
vote
0answers
22 views

PHP running as root on Apache2 running as daemon

On one of my servers, Apache2 is running as daemon user: [root@sbecby07 ~]# ps -ef | grep httpd root 1114 29432 0 10:13 pts/2 00:00:00 grep httpd root 29773 1 0 09:03 ? 00:00:...
0
votes
1answer
37 views

Stopping infinit loop from php script run in linux terminal

I am currently following a tutorial that teaches how to create a queue in php. An infinite loop was created in a php script. I simplified the code in order to focus on the question at hand: while(1) {...
0
votes
1answer
85 views

Zabbix web install Redhat conflicts php

I am trying to install Zabbix on redhat 7 64bit. The zabbix server installed successfully with command yum install zabbix-server-mysql But I am getting conflicts with php70u with php56u when I tried ...
0
votes
0answers
22 views

LAMP server Installation - httpd, mysql are 'unrecognized services'

I recently installed Bitnami LAMP server to have apache, mysql and php on my server with redhat 6.7. The installation was fine, I can see httpd and mysql processes; even the wget from localhost ...
2
votes
0answers
174 views

munin phpfpm plugin

I have setup PHP-FPM plugin All graphs works except three PHP5-FPM Average Process Size PHP5-FPM Memory Usage PHP5-FPM Processes setup /etc/munin/plugin-conf.d/munin-node [phpfpm_*] env.url ...
0
votes
2answers
126 views

find composer global install path as root

I have some php packages installed globally using php composer within a script sudo -u me composer global require "phpmd/phpmd" I want to find the path of these globally installed php packages. ...
0
votes
0answers
57 views

How to install old PHP version 5.2.17 package using yum?

I am trying to update php 5.2.9 to 5.2.17 as it is a bridge version to upgrade client's existing CMS. Is there a way to install this specific version using yum?
1
vote
1answer
21 views

PHP does not use MySQL default sockets

I am having a hard time understanding why PHP cannot connect with localhost as a host. I can connect by doing: mysql -uroot -p And also, through Sequel Pro I can connect with localhost as a host. ...
0
votes
3answers
28 views

Does it matter if I'm root or not when installing apache?

I need to install a LAMP stack on a RHEL 6.7 server. Do I have to be root to install this or not?
1
vote
1answer
49 views

Data from python script to website

This involves a raspberry pi and apache2 so I thought the question would be good to go here.. have never used web sockets and things like that before so I'm pretty lost and hoping for some guidance......
0
votes
0answers
172 views

Installing mysqlnd for php 5.6 on CentOs 7

I get php warning: mysql_connect(): Headers and client library minor version mismatch. Headers:50547 Library:50624 Also I read that I need to install mysqlnd to my server. I tried do it using: ...
0
votes
0answers
27 views

NGINX and PHP Pools

We host quite a few client sites, and I've inherited a shared hosting ecosystem on DigitalOcean. We run a LEMP stack, and all sites were at the same permission access level as eachother. We are now ...
0
votes
0answers
106 views

How do I use php-fpm on RHEL 7.2?

I've already asked this on Stack Overflow but received no response, so I'm trying my luck here. I'm new to configuring Apache and I'm trying to optimize my Apache server. Reading through the ...
-1
votes
1answer
37 views

Where I have to move a file in order to have it not be accessible via my webserver? [closed]

I have a connection php file with my database password on it. It resides in includes directory for my paypal store on my site. Trying to work out where I can move that folder and file so no-one can ...
0
votes
0answers
32 views

Zimbra z-push provisioning: ERR_TOO_MANY_REDIRECTS

I'm trying to install z-push provisioning in my zimbra environment to control mobile devices with GUI. So : OS : Centos 7 Zimbra version 8.6 Z-push version : 1.5 To install Z-push I have this ...
0
votes
1answer
28 views

Circular dependencies that cannot be fulfilled. PHP packages on CentOS 7 to support Drupal 8

I am trying to install Drupal 8.0.5 on Apache 2.4.6 on CentOS 7, with PHP 5.6.19. I get an error that PHP extensions are disabled. The detail I get is that it pertains to "gd." I have installed, ...
-1
votes
1answer
75 views

Unable to execute shell from web server

When ever I am trying to execute php script from web server, it fails: cat test.sh echo "Hello World" [root@yumserver ~]# I am trying to build a button on webpage through which I can push the ...
0
votes
1answer
260 views

Installing older PHP versions on Debian Jessie

I need to conduct some testing on older version of PHP, and I want to use my laptop running Debian Jessie. At the moment, I've got PHP5.6 installed on it, which I tried to delete with apt-get remove ...
1
vote
0answers
113 views

php curl script working in cli but not on crontab [closed]

I have set the following on crontab */1 * * * * /opt/php-5.3/bin/php -f /var/httpd/appliance/appliance/docs/vip_dashboard_script.php >> /tmp/vip.log 2>&1 the contents of my script. &...
1
vote
2answers
41 views

How extract under linux some capturing groups using command line in a php/preg fashion?

Given in linux environment exists lot of packages for manipulating strings (grep, awk, sed, ...), I would like a software to extract a capturing group in a php/preg like syntax. Maybe the most close ...
1
vote
1answer
65 views

php links against system libxml instead of version specified by ./configure --with-libxml-dir

I'm trying to build php-5.5.33 from source on a Debian 8 system; configure and make both run successfully, but when I run make install I get the following error: Installing PEAR environment: /...
0
votes
0answers
35 views

How to make a text file readable for only a local PHP file on server — not to everyone on web?

I have a PHP script that takes some sensitive data, hashes it, and then compares it against hashes in a text file on the server. Both the text file containing hashes and the PHP script are located in ...
1
vote
2answers
153 views

Apache shows Blank page for PHP

I've installed a fresh version of Centos 7,I'm new to Linux. I installed Apache using yum -y install httpd and i can open the test page and everything is ok with it. after that i installed PHP(5.4....
1
vote
2answers
461 views

httpd (apache2) server doesn't parse *.php files but displays them as text with installed php-module on arch-linux

I'm trying to set up my httpd (apache2) server on archlinux. Everything works now except for the parsing of my php files. I followed this article: https://wiki.archlinux.org/index.php/...
0
votes
0answers
25 views

Is there one-line command to update php from 5.4 to whatever higher on CentOS 7.1?

Suprisingly, this task became interesting and annoying at the same time. So, I'm asking you how to prevent such situation in future? First I tried just yum install php And it said everything is up-...
1
vote
1answer
288 views

Bash to Call PHP, Wait for PHP Process to finish?

Here is my bash script #!/bin/bash timestamp() { date +"%T" } pushd 'httpdocs/DIR1/DIR2'; file="Lock3.key" if [ -f "$file" ] then echo "$file found, Session is already in progress" $(date) ...