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

0
votes
1answer
182 views

Error installing php-devel 5.5 CentOS 6

I am trying to run pecl install couchbase but am having trouble with php-devel and its dependencies. When I try to run yum --enablerepo=remi-php55 install php-devel I get the following error. My ...
0
votes
1answer
113 views

php-fpm does not work me exec or shell_exec

I have OpenBSD 5.6 and php-fpm, nginx. Is chrooted by default on /var/www I try:(test.php) <?php if(function_exists('exec')) { echo "exec is enabled"; }else{ // it's not echo "exec is ...
0
votes
0answers
6 views

System's hardware requirements for Symfony2 [duplicate]

I have this web-blog I'm willing to deploy online. I have yet no idea what kind of hosting I should get. I'm sure shared-hosting is not one of them as SSH access is not possible. If I'm getting a ...
0
votes
1answer
169 views

nginx on fedora fastcgi not working

I'm running nginx on Fedora Server 22 and fastcgi scripts are not working. Under http://panel.minefight.org/ enter any login data, it doesn't load the password fail or success site. The same thing ...
0
votes
1answer
34 views

Dynamically modify DNS to add a subdomain

Is there a way to modify a domains DNS using PHP for example. I am not quite sure how a company can be in charge of a domains DNS (Can I be?) What processes do GoDaddy (for example) go through when ...
1
vote
1answer
48 views

Roundcube MySQL/session issues, “no valid session data found”

So Roundcube is connected to MySQL fine, and is running queries. However, whenever I login, I get a "Your session was invalid or expired." error. From some PHP debugging, I think it has something to ...
0
votes
1answer
45 views

cifs shared mount on linux doesn't read folder

I have CIFS share from EMC storage which is mounted on Linux and also on other windows & mac machines. At Linux server, CIFS share mounted with mount.cifs. My linux server has php code running on ...
1
vote
2answers
99 views

What is the best way to run unoconv in php on debian server?

I have a php script in which I need to convert doc documents to html files in order to show them in a web page. I'm doing the conversion with the php command: exec ( $Command, $Output, ...
1
vote
2answers
735 views

How to upgrade PHP 5.4 to PHP 5.6 on Debian GNU/Linux 7 (wheezy)

I've added these lines to /etc/apt/sources.list deb http://packages.dotdeb.org wheezy-php56 all deb-src http://packages.dotdeb.org wheezy-php56 all But still sudo apt-get update or sudo apt-get ...
-5
votes
2answers
45 views

Why isnt this sudoer command run as root? [closed]

I want to give PHP access to a very specific script using a configuration under /etc/sudoers.d. So I did the following: visudo -f /etc/sudoers.d/99-php And entered this sudo rule: www-data ALL = ...
0
votes
1answer
33 views

MySQL process in Sleep command and page is loading after 1 minute

I'm using VestCP which installed for me Apache2.2, PHP 5.5.25, MySQL Percona and Nginx. I have an app built in ZF1 which works fine on all my development computers but on this server the application ...
0
votes
1answer
47 views

Postfix + php translating email addresses sent to local domains to something@localhost.localdomain [closed]

My first question here, if I don't provide sufficient info straight away, please take it easy on me with the downvotes ;-) I'm running a VPS hosted by afterburst.com with OpenVZ I installed and ...
0
votes
1answer
47 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 ...
1
vote
0answers
45 views

See what's filling up the server memory? [closed]

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 ...
1
vote
2answers
325 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
367 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
1answer
55 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
50 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
1answer
110 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
24 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
187 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 ...
0
votes
0answers
83 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
29 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
28 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
1answer
29 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 = ...
2
votes
1answer
204 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 ...
1
vote
0answers
438 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
11 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
207 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
94 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
24 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
45 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
75 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
104 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
203 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
177 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
256 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
36 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
423 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
60 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
63 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 ...
0
votes
0answers
59 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
94 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
19 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
261 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
62 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
39 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
88 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
2answers
171 views

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
2answers
324 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 ...