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
0answers
6 views

php-fpm: locale settings change themselves

I experienced a bug with php-fpm : locale settings change themselves randomly. Here are the correct locale settings: Array ( [decimal_point] => . [thousands_sep] => ...
-2
votes
0answers
10 views

nginx after one or 2 Hour error

my site is joomla and i config windows server 2008 r2 to mysql php and nginx it work ok but after 1 or 2 hour suddenly show error page?! this is my configuration: worker_processes 32; events { ...
0
votes
0answers
8 views

How to enable file sharing in localhost (xampp) by configuring apache? [on hold]

I am currently working on a project and I need to share it to my co-worker.She's the one who make on the script side and I am on the web side. What we need to do is , we need to share the website ...
0
votes
0answers
7 views

APC - tuning apc.mmap_file_mask

When configuring APC as an opcode cache for PHP, there's a configuration setting called apc.mmap_file_mask. From what I've read there are three ways you can configure it but I don't really understand ...
-1
votes
1answer
12 views

Wordpress access forbidden for newly uploaded files on plesk 12

I have issues with wordpress rights on plesk 12 (with nginx default setting) and not fully understanding why right now. Anyhow finally I'm now totally confused what the right permissions have to be? ...
0
votes
1answer
19 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
0answers
38 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
28 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
23 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
votes
0answers
17 views

What is the best way to run PHP script every 30 seconds? [duplicate]

I have kind of a special requirement that is, I'm using a Raspberry Pi 2 B device to feed some data to a mysql database in a cloud serve. So I have installed LAMP stack on raspberry pi and config my ...
1
vote
1answer
20 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
13 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
1answer
14 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, ...
-2
votes
0answers
30 views

Why _SERVER[“SERVER_SOFTWARE”] becomes blank after certain period?

I'm running PHP 5.4.38 + Apache 2.2.29 on Windows Server 2012. When Starting up Apache, phpinfo shows me SERVER_SOFTWARE which looks correct: Apache/2.2.29 (Win32) mod_ssl/2.2.29 OpenSSL/1.0.1l ...
1
vote
2answers
33 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
32 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
17 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 ...
-3
votes
0answers
14 views

Unattended solution for installing postrate? [closed]

i need unattended solution for installing postrate I want to install postgre through bat file on single click in window system. I don't want to put and login cridetial on command prompt that should ...
0
votes
1answer
34 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 ...
-1
votes
0answers
27 views

PHP-GD not working as needed? [closed]

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
22 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
36 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 ...
0
votes
2answers
42 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
73 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
20 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
17 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
47 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
13 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
48 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
30 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
19 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
21 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
15 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
83 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. ...
1
vote
0answers
123 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 ...
0
votes
0answers
44 views

ModSecurity Partial results are valid but processing is incomplete [closed]

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 ...
1
vote
0answers
44 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
29 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
11 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
25 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
42 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
43 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
93 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
145 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
119 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
27 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
80 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; ...