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

-7
votes
0answers
4 views

unable to load images using php gd library [on hold]

<?php error_reporting(E_ALL); ini_set('display_errors', 1);?> <?php $db = mysql_connect('localhost', 'goofy', 'donalds') or die ('Unable to connect. Check your connection ...
-1
votes
0answers
5 views

PHP-GD not working as needed?

I use a text generator for my headers on my website which uses php-gd and its image library. I have installed php-gd and its library on my VPS that's using CentOS 6.5 and a LAMP stack with PHP 5.6.9. ...
0
votes
1answer
12 views

PHP installation issue on a Windows Server hosted in the Azure cloud

I am trying to setup PHP and MySQL on a Windows Server that is currently in Azure cloud using the information from this blog post ...
0
votes
0answers
25 views

See what's filling up the server memory?

Our site goes down more and more often. Every other day. The server response time is too long and it just goes half blank. If I look in the browser source code, I see: Could not connect to the ...
0
votes
2answers
25 views

Docker - scaling nginx and php-fpm seperately

I've been playing around with docker and docker-compose and have a question. Currently my docker-compose.yml looks like this: app: image: myname/php-app volumes: - /var/www ...
-1
votes
1answer
37 views

PHP Application needs mbstring library - can't install on EC2

A library on my ecommerce site requires the PHP mbstring library. Seems simple, just run: yum install php-mbstring but I get: [ec2-user@ip-172-0-0-0 modules]$ sudo yum install php-mbstring Loaded ...
0
votes
0answers
15 views

PHP CLI Add value to $_SERVER

I know I can add a custom value to the $_SERVER variable through Nginx with fastcgi_param MY_VARIABLE "myValue"; Is it possible to add the same variable to PHP CLI $_SERVER? This would be used ...
0
votes
0answers
14 views

PHP-FPM Stuck & High IO

Actually on my mutual hosting server I'm using PHP 5.6.3 with one pool. Sometimes, my php-fpm process is stuck with 50% of WA and I can't kill it, I can't even restart my VM. I'm using 245MB/3968MB, ...
0
votes
0answers
24 views

PHP-FPM output errors to be handled by php application with nginx

I'm having difficulty setting up a docker container with phpfpm to defer error handling to my php application. Any fatal exceptions are being processed by the xdebug stack trace ...
1
vote
0answers
12 views

PHP remote network location not appearing

I'm having some difficulty getting PHP (or more specifically, Python via PHP) to recognize an important network location. I'm trying to make a simple website which will allow users to easily execute ...
1
vote
1answer
29 views

Unable to use builtin CA bundle to verify GoDaddy SHA2 SSL certificate

I ran into an interesting problem. We have a PHP script that contacts a LTL shipper (https://facts.dohrn.com/). That script has been failing because it can't validate the SSL certificate. I went to ...
-3
votes
1answer
23 views

phpMyAdmin and roundcube web mail error - Cant log in [on hold]

I'm having an issue logging into the roundcube and phpmyadmin. I get an error just shows up with code. I run Centos6 on my VPS. I cant pin point the problem. Here are some screenshots of the errors: ...
0
votes
0answers
21 views

*** glibc detected *** /usr/sbin/httpd: free(): invalid pointer: 0x068977f0 ***

Completely fresh install of CentOS and I've installed PHP, MySQL and Apache with all modules, when I first tried to run the service the following message is in the error_log followed by a memory map. ...
1
vote
1answer
18 views

How should PHP FPM be monitored for max_children being exceeded?

I've set up the PHP-FPM and Nginx status output with the intent of monitoring for max_children being exceeded on a particular pool. I am, however, unable to load the status output when max children ...
2
votes
0answers
19 views

SQL server and PHP restart

i have Apache/PHP running on a server running windows 7 with SQL server 2008 r2 running on windows Server 2008. When SQL is restarted Apache/php will no longer connect to SQL once it is back up ...
0
votes
0answers
13 views

Do I require setting the full path to files in php.ini?

I have "merged" php with apache bin directory, however for years I have been hardcoding the path to files as follows : curl.cainfo = d:/server/bin/cacert.pem - browscap = ...
-1
votes
0answers
17 views

hosting web application with database on aws [on hold]

I have created a cms system in Laravel that allowes hosting multiple websites with one application. I just started my bussiness, so I currently only have 2 websites hosted with this application. Now ...
0
votes
0answers
16 views

nginx 404 and 403 in my webroot directory [closed]

I have setup a webserver in a virtual machine on my laptop and I can't get nginx to work. My home DNS is put to example.home for easy access. Here are the symptoms: When I try to access ...
2
votes
1answer
68 views

Outgoing brute force attacks from my server

One of the servers I look after appears to be participating in brute force attacks against Wordpress installations. I've been on the receiving end of this many times, so am very familiar with steps ...
0
votes
0answers
11 views

apache2 debian mod folder location [migrated]

I have apache folder on Debian with configuration (apache2.conf file, not httpd.conf) in /etc/apache2. On another configuration I hasn't this folder, but it was located in /usr/local/apache2/bin. ...
0
votes
0answers
15 views

Is there any way to execute qemu-agent-command using libvirt-php API? [closed]

There are many tasks which can be done using qemu-agent-command. Using virsh, we can do that but is there any way to do it using libvirt-php API? I could not find any function at libvirt API ...
1
vote
0answers
51 views

Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO) [closed]

I am using MySQL with PHP for printing details from Database. As i tried to make a new user which was successful though but, i had error from MySQL when i tried to fetch data from it , it showed me ...
0
votes
0answers
10 views

Nginx How to set up Basic Auth for a subdirectory and its php files [duplicate]

I would like to restrict the access to a subdirectory and the access to the php files it includes. My problem is that I can't figure out if it is possible to have this running without having to ...
1
vote
0answers
29 views

ModSecurity Partial results are valid but processing is incomplete

I am getting tons of errors on my logs about partial results. Here is a sample [Thu May 14 18:28:10 2015] [error] [client x.x.x.x] ModSecurity: Error reading request body: Partial results are valid ...
0
votes
0answers
16 views

Wamp Server 2.2 not working after enabling a PHP Extension [closed]

I've been working on Wamp Server 2.2 . Everything is ok but when I tried to enable a PHP Extension from the icon tray then Apache won't work anymore. Unless I re-install it then it will work. But I ...
1
vote
0answers
26 views

How to override “Content-Type” header with PHP script on Nginx

I have some php script which returns jpeg image(1x1 pixel) with content type "image/jpeg": // return image $image_name = 'img/pixel.jpg'; $image = fopen($image_name, 'rb'); header('Content-Length: ' ...
0
votes
1answer
26 views

Install memcached PHP extension on openSUSE 13.2

Is there a standard/supported way to get the memcached extension for PHP installed on openSUSE 13.2? On CentOS this was a case of yum -y install php-pecl-memcached. But it doesn't look like the ...
-2
votes
1answer
10 views

php-fastcgi.socket does not exist

I am following this tutorial, and have gotten thus far: I have installed the following packages using apt-get install nginx php5-cli php5-cgi spawn-fcgi psmisc. Despite installing PHP FastCGI, I do ...
1
vote
0answers
18 views

Why won't php5-fpm start?

I've just installed php-fpm 5.6.8 but it won't start - start php5-fpm gives me a Job failed to start message. I've found several people with simalar problems, but the none of the answers seem to work ...
0
votes
0answers
34 views

Too many php session files created on one server

We have a web application running multiple instances on different plesk servers. On one server we see quick generation of php session files under /var/lib/php/session directory. Which grows in 100 ...
0
votes
1answer
28 views

Problems installing PECL extension Memcache

I have installed memcached fine and seems working properly , and now I will need to install PECL extension memcache. Im running Centos 6.2 x86_64 .When I try to install gives me this error at the ...
-1
votes
1answer
71 views

Can't install PHP Package on CentOS

I am having trouble re-installing PHP via yum on my server hosted by digital ocean. I had PHP 5.4 installed but wanted 5.6. I added/enabled the remi repo's, ran yum -y remove php* and then tried to ...
1
vote
1answer
143 views

Which “try_files” nginx directive is best for the zero-day exploit?

So far I have been using the following in the php location of my nginx config files try_files $uri $uri/ /index.php?$query_string; However, I just saw in the Wordpress Codex guide that for the ...
2
votes
1answer
90 views

Errors installing php extensions on Centos 7

I'm pretty sure I know what the problem is i just dont know how to fix it. Im trying to install mcrypt "yum install php-mcrypt" and i get the following error Error: Package: ...
0
votes
1answer
26 views

Wordpress application gives 500

I'm looking at a Wordpress WooCommerce CSV export plugin. It works fine, except that if I ask it to export more than about 2000 records, something seems to be timing out and I get a 500 (not a 503, ...
0
votes
0answers
48 views

php mailer SMTP ERROR: Failed to connect to server: Permission denied (13)

I fixed this error on a dedicated cPanel server by allowing outgoing connections on port 465 on iptables. I'm trying on AWS now, but I can't figure out what's wrong. I stopped SELinux and iptables; ...
-1
votes
1answer
41 views

Is it a ok wordpress file or is hack, look at this code [duplicate]

I was facing a hack My website is not hosted on a server but shared hosting, If server is hacked I cannot do anything. My Question is not about how to safeguard the server, but is the below code is ...
0
votes
1answer
28 views

How to dynamically update page related data when FastCGI caching is enabled?

I am using php based blog on NGINX server with FastCGI cache. Without this cache, it is easy to update pageviews with every page load for a specific url. When FastCGI cache is in action, pageviews ...
-1
votes
0answers
21 views

Fatal error: Call to undefined function win32_query_service_status()

I want to configure PHP with Apache 2.2 server. But I am getting error when tried to call php_win32service.dll. php_win32service.dll present in C:\Program Files\PHP\ext folder. I am using ...
1
vote
2answers
42 views

How to pipe postfix into Codeigniter controller

I currently have postfix piping into a PHP script to process the email via an alias. catchall: |/var/www/vhosts/website/httpdocs/scripts/incoming_mail.php However, I wish to use the DB config etc ...
1
vote
0answers
12 views

Adding modules with EasyApache to PHP while having several PHP versions [closed]

I have several php versions installed on my server, and I switch between them with the plugin ntPHPselector. Now I have to add a module to php. This is what it says in the FAQ from the ntPHPselector ...
1
vote
1answer
64 views

Roundcube + Dovecot: SSL errors when trying to log in

I'm setting up a mailserver using Dovecot 2.2.13, Postfix 2.11.3, and with Roundcube 1.1.1 connecting to it. Roundcube is running on a different server in nginx/php-fpm. Both servers are running ...
0
votes
1answer
49 views

PHP Fatal error

For some reason Apache/PHP is throwing these errors in the error_log. I can't figure out what is causing it? [Wed May 06 16:39:33.056497 2015] [:error] [pid 14857:tid 140714977302272] [client ...
-1
votes
1answer
26 views

How to support jpeg in PHP? [closed]

I can see gif/png support in the output of phpinfo(). I built PHP with --with-gd. But only GIF Support and PNG Support are in the output of phpinfo(). How do I enable JPEG Support? Do I need to have ...
-2
votes
1answer
64 views

Apache set max Content-Range

The Question: Client asks for: Range:bytes=0- Server responds with: Content-Length:8396748 Content-Range:bytes 0-8396747/8396748 I want to limit that Content-Range to 1MB chunks so the server ...
1
vote
1answer
81 views
+50

Memcached vs Amazon Elasticache with PHP on CentOS 7

I setup a new CentOS 7 server in Vagrant to run PHP, nginx, MySQL (MariaDB) and memcached (note the d on the end). I can get memcached to run fine, but I can't get the Amazon Elasticache .so file to ...
0
votes
1answer
93 views

OpenBSD Nginx/PHP/MariaDB/PHP-FPM Stack

I have a minimal OpenBSD 5.7 amd64 install in VMware where I have installed matching versions of PHP and PHP-FPM, plus nginx, and mariadb using pkg_add. I configure all the services, and get nginx to ...
1
vote
2answers
73 views

500 Internal Server Error on Wordpress - BUT WORKS from a different country

MY MACHINE SPECS: I have a VPS (Location - Miami, 4GB RAM) running Centos and a LAMP stack. I have Wordpress installed on it with a SSL certificate. PROBLEM: Out of the blue, the admin ...
-1
votes
1answer
45 views

How can I deal with failures when connecting to a MySQL cluster?

Our company has created two MySQL servers that are kept in synch using a master-master strategy. The two-machine cluster is managed using crmsh. This is only a high-availability cluster, meaning that ...
0
votes
0answers
42 views

WebServer is inaccessible

I have done an install of httpd and php on my new centos server. yum install httpd php -y I have done hundreds of webserver installs but for some strange reason I seem to be having troubles. When ...