PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

learn more… | top users | synonyms

-1
votes
0answers
14 views

Fatal error: Call to undefined function simplexml_load_file() on Puphpet

I have just booted up a new VM using Puphpet, VirtualBox(5.0.14) and Vagrant(1.8.1). I am running on Ubuntu 14.04 with PHP 5.6.2 and am getting this error: Fatal error: Call to undefined function ...
2
votes
0answers
18 views

ownCloud fails in reverse proxy config

My setup is that ownCloud runs on an internal server at 192.168.200.1. At 43.23.104.153 there is a public apache with mod_proxy that forwards the requests to the internal server: ProxyPass /edward ...
1
vote
0answers
14 views

how to monitor client bandwidth in saas app?

I am building a SaaS which allows customers there own space. They get a subdomain but they can also add their own custom domain by setting their CNAME to my server. The subdomains and custom domains ...
0
votes
0answers
13 views

Unrecognized access to cgi-bin with error message 'script not found or unable to stat' on Apache

I checked my Apache 2.4 error.log and found some unrecognized access on my server, which is a Windows platform. Here are those error log, the IP 31.184.195.114 is not belongs to anyone I know. ...
0
votes
0answers
22 views

Can't modify $_SESSION Unknown: write failed: No space left on device (28) in Unknown on line 0

When I try to assign a value of $_SESSION $_SESSION['whatever'] = "test"; I get Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 There is enough space on device, ...
0
votes
0answers
7 views

virtualmin 403 forbidden error

i have installed virtualmin, now i am trying to install clipbucket. now when ever i am trying to open domain, it gives me forbidden 404 /. error. I have changed the permission to folder, also i have ...
-1
votes
0answers
17 views

Fatal error: Class 'DOMDocument' not found, in a Wordpress site

In my wordpress site I get the error "Fatal error: Class 'DOMDocument' not found" php-xml not being installed on the server can cause the issue but it's already installed (I'm using Centos) I've ...
0
votes
0answers
17 views

How to manage high traffic on news portal(cache)? [duplicate]

I have some questions regarding to my news portal, where I have some issues with high traffic. The issues is: I have daily about 50 k UU, and sometimes I have shots about 20 k UU in one time from ...
0
votes
0answers
9 views

Fatal error: Call to undefined method mysqli_stmt::get_result(), Mysqlnd enabled [on hold]

I am getting this error Fatal error: Call to undefined method mysqli_stmt::get_result() only on server. The phpinfo http://gerakas-forest.gr/info.php The Mysqlnd is already installed and working. ...
0
votes
0answers
4 views

How to prevent malicious injection in argument to php “exec” (webhook -> bash script) [migrated]

I've written a webhook to integrate into chat (slack / mattermost api). The simplest way to get it up and running was a quick php script, which looks like this: <?php $token = $_POST["token"]; ...
-1
votes
0answers
23 views

trouble in install php-devel in centos 6

i am trying to install php-devel on centos but i got an error like below Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) Requires: php56w-ftp Removing: ...
2
votes
1answer
37 views

Laravel EC2 Nginx PHP 7 scripts downloaded instead of executed

The php scripts are downloaded on Amazon ec2 server with nginx installed instead of being executed. This is my nginx conf file: user nginx; worker_processes auto; error_log /var/log/nginx/error.log; ...
1
vote
1answer
35 views

MySQL server experiencing high stress/max connections

The Short: We're hitting max connections and seeing very poor performance from MySQL during peak business hours and cannot determine if it is a load problem or a configuration problem. The Long: To ...
2
votes
1answer
55 views

Apache spawning enormous number of httpd processes

I am running a CentOS 6.7 machine (16 GB vRAM, 8 vCPUs) with a simple web server setup (Apache/2.2.15, PHP/5.3.3, MySQL/5.1.66), hosting an online shop with a moderate number of page impressions ...
1
vote
0answers
13 views

Vagrant, Apache and FastCGI uses huge cpu

I cannot really grasp why it's so slow. Site loads really slow. And vboxheadless hits more than 100% cpu every request. I use 2048 memory and 1 cpu. Here is activity monitor and top: ...
0
votes
0answers
9 views

Install php-ZendFramework and php-ZendFramework2 in parallel on a machine

is it possible to install php-ZendFramework and php-ZendFramework2 on one host? I need v2 for bareos-webui and v1 for icingaweb2. I've only found some info here ...
0
votes
1answer
29 views

How to store Cloudflare IP as an additional FastCGI parameter in Nginx? [duplicate]

I need to be able to know the Cloudflare IP for connections made to my server. This is so I can determine if a connection is made through Tor. To do that, I need to send the tool the IP that the ...
0
votes
1answer
19 views

php-cgi.exe CPU load jumps after MySQL Backup

I'm running Windows 2012r2 on a new server, with Plesk 12.5 and MySQL 5.6 installed. There's a backup script which takes a DB dump and zips website data files that runs each day. However, it brings ...
0
votes
0answers
21 views

Syntax error in Nginx server but fine in Apache server [closed]

recently i am migrating from Apache to Nginx server. Everything works fine in Apache server. but on Nginx server following code produces syntax error(unexpected '[' ). Sample Code:- $test = ...
0
votes
1answer
26 views

Codeigniter: website have too many redirects

I have developed a webportal in codeigniter framework,but when i try to host in a shared hosting server i will get this error. wwww.abc.com redirected you too many times. ERR_TOO_MANY_REDIRECTS ...
3
votes
2answers
66 views

Allowing PHP to run specific bash script with root permissions

I have a php script calling a bash script like this: <?php $result = exec('sudo /bin/bash /var/www/my_bash_script.sh /var/www/vhosts/testsite/htdocs/'); var_dump($result); ?> This is ...
0
votes
1answer
11 views

How to register user on ejabberd using php code?

I am trying to register user on ejabberd linux server. I am using below php code <?php $username = 'hello'; $password = 'hello'; $node = 'my ip'; exec('sudo -S ejabberd ...
0
votes
0answers
13 views

PHP IIS server website end user response time breakdown

I wish to monitor whole end user response time (with resulting indicators, tables, graphs, alerts) of a PHP IIS website (10k to 1000k clics per day). Does someone know how can I do ? My first idea is ...
0
votes
1answer
23 views

How can I get Laravel app routing to work in a sub-folder of a WordPress site?

I've got an existing WordPress site and I need to get a Laravel app to work in a sub-folder called 'api'. This is an nginx site, so .htaccess redirects will not work, and the best solution if it needs ...
0
votes
0answers
13 views

Ubuntu Apache configuration

I am running PHP on Ubuntu and I see that each SAPI is using a different location for its php.ini file in the /etc/php5 directory. There is a directory for CLI, for CGI and for Apache2. I would like ...
1
vote
1answer
17 views

500 Error: “End of script output before headers” - Simple script within Wordpress theme

I have a multi-site install of Wordpress running fine on a unmanaged CentOS server, however for a certain feature I need to do my own thing on certain pages and manually interact with some ...
0
votes
1answer
34 views

PHP script with systemd

I'm new to systemd and I've got issue with script my colleague gave me. This script worked as background process in Debian 7 but doesn't in Debian 8. I decided to rewrite it to systemd. I have this ...
-1
votes
0answers
17 views

How to enable mcrypt_decrypt for php4 on redhat 4

I need this extension enabled on an old server with an old an not upgraded installation of Red Hat Enterprise Linux ES release 4 (Nahant Update 5) The function that I need it's mcrypt_decrypt. From ...
0
votes
1answer
12 views

Uploadprogress installed but progress bar not working

I have video hosting script, which was working well on my old server, bit now in new server i have installed Virtualmin as control panel. Also there is Lighttdp installed for video streaming which is ...
0
votes
0answers
34 views

Microsoft Access Database drivers on server

I'm really in need of assistance with this issue, ive been trying for days. I have an access database which i'm trying to query via PHP - i have come to this forum because after reading many posts and ...
-1
votes
0answers
35 views

The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0

I'm using following environment: $ php -v PHP 5.6.20 (cli) (built: Apr 14 2016 04:18:07) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with ...
0
votes
0answers
25 views

nginx 500 error when accessing large file from php script

I am using nginx/1.8.0 and to debug a large file upload issue I am facing in WordPress, I post a file with a simple script: Index file: <html> <!-- index.html --> ...
2
votes
0answers
23 views

Upgrade openssl in apache from source and set as default

I have upgraded the openssl from source to version OpenSSL 1.0.1s for Apache, which installed under /usr/local/ssl/bin/openssl, and change the symlink to point it into this new installation directory ...
2
votes
3answers
55 views

PHP session directory full?

I was hoping somebody could give me some advice please. I'm running a CentOS 6 server and over the last couple of days my disk usage has gone from 60GB to 135GB (98% full). I believe the issue may be ...
1
vote
1answer
26 views

Long running PHP process randomly stops with message 'Killed'

I have a PHP script I wrote that I am running, and it has ran all the way through before, but for some reason, it keeps stopping with a message of 'Killed' ... It is my box, no one else is logged in ...
1
vote
0answers
15 views

Centos - PhpMyAdmin showing blank screen when trying to access it [closed]

I have just installed PhpMyAdmin, and when i try to access it it just shows a blank screen. I suspected this is because i followed a tutorial on how to secure php, so i reinstalled php to reset the ...
1
vote
1answer
58 views

High CPU usage by Apache on opening WordPress Admin Pages

I'm having a VPS server with below configuration 2 core CPU 2GB RAM 50 SSD Centos 7 Web Panel: Sentora From the last week, I'm facing a high CPU usage. Most the sites are WordPress. On opening each ...
0
votes
2answers
28 views

Apache returns empty response and must restart

I have the classical LAMP configuration on several servers, on one server I can frequently see Apache returned an empty error. I have PHP-FPM running to serve .php file, static pages like .html is ...
1
vote
0answers
19 views

nginx prevent loss of POST parameters when rewriting uri

I would like to do some url rewriting on nginx with php-fpm. Namely, routing all requests to php scripts to a single script like: /index.php?fulluri=(originaluri) Many ways to approach the problem: ...
0
votes
1answer
27 views

How gzip compression still happening?

I am using Ubuntu 14.04.4 LTS,Apache/2.4.7 and PHP 5.5.9. I installed Wordpress 4.4.2 in my machine. When I run my site in localhost, I noticed that js/css are compressed in gzip format. I didn't ...
0
votes
2answers
72 views

“sudo apt-get install php7.0-dev” not working

I am trying to install Xdebug to server and pre-requisite in tutorial I am following is php5-dev but I am using php7.0.5 so I tried sudo apt-get install php7.0-dev. It gives me Reading package ...
-1
votes
0answers
35 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
12 views

How did my non-CMS based website get hacked? I have a file called mails.php which contains a preg_replace statement [duplicate]

I have a series of websites in my server, all of which share the same set of PHP files. They're not based in any CMS (no Wordpress, no Joomla, etc.). All of them contain my own "CMS" so to speak. I've ...
1
vote
1answer
78 views

Server is often slow to serve webpages and takes long to ssh into

First of all, I am in no way a professional running a server for about two years from home, so keep in mind that the cause to my problems can be very basic and with a simple solution. My problem is ...
-1
votes
1answer
13 views

Connection reset when trying to access / with a FallbackResource rule

I am having an issue where my site is working as intended for all urls except the base url of example.com/. When I try to access that in particular I get a connection reset. I have reduced my site to ...
0
votes
0answers
5 views

How can you set PHP-CGI in IIS to run in the same app domain as an asmx web service?

We have an IIS web server that's running PHP-CGI, a few asmx web services, and some other things on the same general website. That being said, I've created a dll that is used by the web services ...
0
votes
0answers
22 views

mysqli non-standard socket location configuration for php5-fpm on ubuntu 14.04LTS

Feel free to migrate this. Its ambiguous to me if it belongs in serverfault, stackoverflow, or Unix & Linux. I recently deployed a handful of wordpress sites for a client. I started to notice ...
0
votes
0answers
29 views

Unable to get Nginx/Apache + FastCGI + PHP-FPM + HTTP/1.0 to use Keep-Alive

For a reason beyond my control (an app that cannot be modified), I need to get a server that processes HTTP requests for PHP pages over FastCGI, to honour "Connection: Keep-alive" (sent by said ...
-1
votes
0answers
28 views

Wordpress LAMP server stop serving after a year

A LAMP setup running Wordpress have been working fine for a year, but suddenly stop serving pages a few days ago, going to the website gives the error ERR_EMPTY_RESPONSE in Chrome browser. Question: ...
0
votes
1answer
19 views

pear/MDB2_Driver_oci8 requires PHP extension “oci8”

I got this Error: unable to find package 'MDB2_Driver_oci8' file 'MDB2/Driver/oci8.php' so I tried to install it with pear install MDB2_Driver_oci8-1.4.1 but following Error is showing up ...