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
7 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
9 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
28 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
1answer
23 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 ...
-4
votes
2answers
27 views

Why isnt this sudoer command run as root?

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
12 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
12 views

Unattended solution for installing postrate? [on hold]

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
32 views

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

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 ...
-7
votes
0answers
10 views

unable to load images using php gd library [closed]

<?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
20 views

PHP-GD not working as needed? [on hold]

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
15 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
34 views

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

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
36 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
54 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
16 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
34 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
38 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
26 views

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

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
24 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
20 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
14 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
19 views

hosting web application with database on aws [closed]

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 ...
2
votes
1answer
79 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
86 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
36 views

ModSecurity Partial results are valid but processing is incomplete [on hold]

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
34 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
27 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
21 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
38 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
37 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
79 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
103 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
61 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
42 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
29 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
24 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
47 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
13 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
85 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
28 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
67 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 ...