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

0
votes
1answer
16 views

getting started with lamp server [on hold]

I have successfully installed LAMP server on my machine running Ubuntu 14.10. Now, there is a location /var/www/html/. In this directory, I am supposed to place the HTML files and php files that I ...
-3
votes
0answers
16 views

PHP application mysql giving error

Got the below error while implementing this. I have done every thing which is mentioned in the document, but still I get this error, previous implementation is working fine. The following error ...
0
votes
0answers
15 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
58 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
35 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
11 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
24 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
16 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
36 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
62 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
79 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
27 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
114 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
13 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
22 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
64 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
18 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
153 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
88 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
49 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
19 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
47 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
136 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
26 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
91 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
29 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
23 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
61 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
0answers
169 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
89 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
32 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
0answers
42 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
31 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
103 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
317 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
22 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
238 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) ...
1
vote
0answers
14 views

Apache2 uncaught Exception 500 error

I have installed Apache2 on my Debian server with PHP and MariaDB. I use PDO to connect to my MariaDB database. But whenever I get an exception but don't try-catch it, I get an 500 server error. Is ...
1
vote
0answers
26 views

Setup vhost for subdomain

I am new to Linux and vhost, so I am sorry in advance if this question is stupid :D. I am trying to make vhost, but it is kinda semi working. I am able to run the index.php and load home page, but ...
0
votes
0answers
34 views

Workaround for running privileged commands from www-data user

I would like to append a string to a file located in /tmp/ from a php script. The command I would like to execute is: sudo sed -e 's/$/,yes/' -i /tmp/a.csv The Problem I can't run a sudo command ...
0
votes
0answers
167 views

Apache2 uses wrong php version even tho it isn't installed

I am having a strange problem with PHP on a raspberry Pi lately. It occurred as i tried to run the "password_hash" function and wonderd why it didn't work. The script didn't even throw an error or ...
0
votes
1answer
105 views

Install php-pecl-memcached

I'm trying to install php-pecl-memcached in php v5.4.45 and Centos v6.5. My command is following. yum --enablerepo=remi install php-pecl-memcached However I encountered the following error. ...
1
vote
0answers
59 views

How to use wget to process a html file before downloading a file [closed]

I'm trying to write a bash script to download a certain file. In order to download the file, you need to be logged in, first to access he file, secondly because the file is generated with you ...
1
vote
1answer
59 views

Locating PHP extension folder using bash

I'm trying to build a bash script to install the Source Guardian PHP extension however the destination directory is different on every subsequent release of Ubuntu. Installing PHP5 on Ubuntu 14.04 ...
2
votes
1answer
77 views

Expect PECL for PHP 7

I just upgraded to PHP 7.0.3, but there is no support for expect. Does anyone know if is it possible to bypass the installation issue? It says: root@portal:/home# pecl install expect-0.3.3.tgz pecl/...
0
votes
1answer
354 views

php ./configure error: DBA: Could not find necessary header file(s)

I have a Centos 7 machine. I decided to install apache, mysql, and php from source. I already installed (from source) the apache & mysql packages (requirements: with apr (source), apr-util (...
2
votes
1answer
32 views

Which PHP ini file

When I execute the bash command php --ini to find the location of the php.ini file, the loaded one is: Loaded Configuration File: /etc/php5/cli/php.ini But when I run a php.info on my ...