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.
0
votes
1answer
14 views
Install Apache and PHP on Centos without package manager (yum, rpm…) [on hold]
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
22 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 ...
0
votes
1answer
13 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
8 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
18 views
Printing to ubuntu client via network, using php that reside in windows 7 webserver
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
106 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
11 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 ? ...
0
votes
0answers
14 views
[ error writing /usr/share/nginx/www/php-info.php [closed]
I am trying to write a file with nano
sudo nano /usr/share/nginx/www/php-info.php
I put:
<?php
echo phpinfo();
?>
and getting "[ error writing /usr/share/nginx/www/php-info.php ]" when ...
0
votes
1answer
19 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
53 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
45 views
Nightmare importing database from old mySQL/PHP to new one
I have a system that failed on me. That system was running CentOS 6.0, PHP4 and MySQL 5 (if I am not wrong).
That database contains latin characters, letters like á, é, ç, ó, ã, etc.
From the ...
0
votes
0answers
11 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
78 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
51 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
34 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
0answers
17 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
46 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 ...
0
votes
0answers
106 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
25 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
66 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
25 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
22 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
51 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
113 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
72 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
26 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
32 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
30 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 ...
0
votes
2answers
89 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 ...
1
vote
2answers
241 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: ...
0
votes
0answers
18 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 ...
1
vote
1answer
192 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)
...
0
votes
0answers
21 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
31 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
140 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
89 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
56 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
50 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
63 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
...
0
votes
1answer
286 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
27 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 ...
0
votes
2answers
102 views
PECL - Installing PThreads offline
I am not familiar with pecl command but is it possible to convert the command below to an offline version?
pecl install channel://pecl.php.net/pthreads-0.0.44
I want to install PThreads on CentOS ...
0
votes
2answers
70 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
60 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
70 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
2answers
36 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 > ...
0
votes
3answers
98 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
193 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 ...