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

2
votes
2answers
75 views

PHP emails, Postfix and Message Queue

I've been running a web platform that needs to send a considerable amount of emails daily. At the implementation date I and my partner decided to setup Postfix on the server and use Swift Mailer class ...
0
votes
2answers
67 views

index.html will execute PHP code

I have a server with suPHP, Apache2 and PHP5.4. I noticed that a document index.html will execute PHP code, while test.html will not execute PHP code. Of course I do not want that PHP code is ...
0
votes
1answer
28 views

Concurrent MySQL processes

I have a file, let's call it a.php, which executes a long cycle of iterations, each one of them makes some queries to the database. To complete the cycle, it takes quite some time (some hours). My ...
0
votes
1answer
26 views

php using live server as oppose to local server despite virtual host settings

I had planned on migrating a website to another server, So having copied the code and database etc, and changed my hosts file on windows, everything worked almost as expected. I could load the site ...
1
vote
0answers
83 views

Max memory for HHVM instance on vServer

Im tried hhvm on my vServer and have problems with the memory used. The performance is great, but the used memory consumption is horrible. I have a vServer with min 4GB and max 8GB memory and hhvm ...
0
votes
0answers
20 views

URL having file names with accented characters [duplicate]

In one of my PHP based websites, I have a script which will display an image from a CentOS server. Image path is taken from MySQL database. Image files stored on the server (and corresponding ...
0
votes
1answer
40 views

Does php-frm make PHP run faster?

As I understand it, php-fpm makes PHP pages respond faster by managing a farm of pre-loaded PHP interpreter processes so the end user doesn't experience the overhead of initialising the PHP subsystem, ...
2
votes
0answers
89 views

Roundcube, upload fail

I have Roundcube installed on Ubuntu 14.04, using NGINX, with static IP, SpamAssassin, ClamAV . Sending/receiving email was fine including downloads, however cannot upload anything to send. ...
0
votes
1answer
386 views

PHP dependancy issue after upgrading to PHP 5.6.5

I'm trying to install Laravel, this required me to upgrade to php 5.6.5. This was a success and php is running fine, but im having 2 dependency issues when i try to install other packages that laravel ...
1
vote
0answers
35 views

How to prevent Opera Turbo compression

I have a site (running Apache and PHP) that allows users to download JPEGs. The user clicks once on a link to download the JPEG, the same as when you download a zip file (not using right-click ...
2
votes
0answers
30 views

Tuning Amazon Linux worker tier

I have a worker tier that is using PHP process control (pcntl) functions to send multiple requests to the SNS service in parallel. My question is how best to tune MPM_PREFORK directives to get the ...
0
votes
1answer
58 views

Read user's environment variable in php script

I'm trying to query environment variables that i have set my .bashrc file (i'm running Ubuntu 14.04) in a PHP scripts that run's under Apache server. When i query the getenv('MY_VAR_NAME') or ...
0
votes
1answer
65 views

Wordpress category links are not working on an Nginx server

I just configured a new server to move my website. After I migrated, everything works fine except for category links. If we visit a category, it will give a 404 error. Page permalinks are working ...
0
votes
0answers
17 views

Resources Not Loading When Running From PHP Internal Server

I followed this tutorial: http://symfony.com/doc/2.3/quick_tour/the_big_picture.html And ended up with this: Now Obviously, the resources are not loading. As I'm installing a fresh Symfony project ...
-1
votes
1answer
47 views

Compiling nginx and php

Im about to set up a basic web server based on ubuntu server 14.04 x64 with an online shop section, the server will also consist mysql, mail, and maybe other servers as well until it runs smoothly. ...
1
vote
0answers
51 views

PHP requests to insert to database are missing [closed]

i have this code in PHP that insert the data to DB 1 table, for example: The DB Table CREATE TABLE IF NOT EXISTS `thistable` ( `id` bigint(20) NOT NULL, `code` varchar(7) NOT NULL, `sku` ...
0
votes
0answers
34 views

PHP/Fast-CGI only working on default page

I have configured php and fast cgi on my iis 8. It is working properly on my default page but on all other *.php sites I get Error 500: internal server error. What is wrong with my configuration? ...
0
votes
0answers
25 views

Munin not graphin : “NaN”

I wrote a plugin for munin which basically fetches some numbers in a .log file and do an average of these values. When I run it with munin-cron or directly like this : # munin-run latency_news ...
0
votes
0answers
67 views

PHPINFO creates Permission Denied in error log

Running CentOS 7 with apache 2.4, using PHP5.6 from REMI repository. My wordpress and phpmyadmin seem to work, however any page that has phpinfo() causes a permission denied entry into my error log. ...
1
vote
0answers
54 views

Amazon IP no longer allowing MySQL connection (Error 104)

I am working on a group project that uses an Amazon EC2 server for hosting phpmyadmin. We have a PHP/MySQL website hosted on my school's server that makes database connections to amazon. Recently one ...
1
vote
1answer
311 views

permission denied when script tries to run

I have a PHP script that run's the following command using exec() /root/gsutil/gsutil <COMMAND> In my error logs I receive the following: sh: 1: /root/gsutil/gsutil: Permission denied Does ...
0
votes
1answer
51 views

localhost != localhost for MySQL/PHP

System: Mac OS X Server 10.6.latest I just switched from the ancient MySQL (<5?) that came with Mac OS X Server to MariaDB 10.1, installed via MacPorts. (That was a whole 'nuther barrel of fun...) ...
0
votes
1answer
135 views

Ubuntu apache process consuming 100% cpu PHP/MySQL app

I have a server at Rackspace connecting to a Cloud DB instance running MySQL. I'm not a server admin so I apologize for not having enough data. I'm having a hard time determining what is causing my ...
1
vote
2answers
61 views

Send PHP requests from dedicated IP instead of shared IP [closed]

I have set a dedicated IP for a website (using directadmin), but all outgoing php requests are sent from the server's shared IP. Result of the following code is always the shared IP. $a = ...
0
votes
1answer
22 views

Call to undefined function apd_set_pprof_trace()

have hundreds of php files which initiates mails throw SMTP server using "mail()" function. Now the this SMTP is shutting down in few-days and we are asked to contact external EmailWebService to send ...
0
votes
0answers
13 views

How to disable Pear caching?

We've been experiencing problems with the Pear cache and these problems are affecting our Puppet agents. Here's what I mean: $ ls -al /tmp/pear/cache/ | wc -l 211 How does one disable pear (php ...
0
votes
1answer
16 views

Upgrading Apache and keeping PHP

I have CentOS6.4 and currently running PHP5.3 with mod_php and Apache2.2 I've been trying to find an easy way to upgrade to Apache2.4, but the only things I've found are for php-fpm I'd like to keep ...
0
votes
1answer
42 views

How to generate a php.ini file out of current environment?

For some of my running PHP web applications (running under PHP-FPM) I need to setup cronjobs. Currently all those cronjobs are using the CLI default php.ini. Is there any easy way (e.g. script) ...
0
votes
1answer
93 views

Postfix/OpenDKIM not signing PHP sent emails

We installed SPF, DKIM, and DMARC records for email security/verifiability. When sending through the console or a mail client like Outlook or Mac's Mail it processes fully and has all three pass. ...
0
votes
1answer
32 views

What are the security implications of the below apache conf file

I have a situation where I want to share a codebase when accessing via a subdomain. sub1.example1.com shares sub1.example2.com Both example1.com and example2.com have there on virtual host file. I ...
0
votes
0answers
37 views

VirtualDocumentRoot and ProxyPassMatch

I have the following Apache configuration: ServerName localhost UseCanonicalName Off LogLevel debug <VirtualHost *:8080> ServerName _default_ VirtualDocumentRoot ...
0
votes
1answer
27 views

maximum number of clients connected to the web service [duplicate]

How can I find the maximum number of clients that can connect to my web service at the same time? Is there any way to know how many clients can connect to the web service at the same time? What is ...
-1
votes
1answer
253 views

Cron job is not working in centos 6.6

I have dedicated server having centos 6.6 and centos webpanel. Now I'm trying to set cron job from centos web panel. I had tried so many commands to run one php file each and every minute, but still ...
0
votes
0answers
32 views

Enable Apache user to run a command antiword “sh: antiword: command not found”

I am trying to run a command via PHP to perform a task using antiword. After reading around I understand that I need to give my apache user an extended access to enable user to run antiword? How can ...
-1
votes
1answer
38 views

Accidently deleted *.so files in extensions folder at /usr/lib/php5

This might sound really stupid. But, While developing a PHP extension I accidently deleted all *.so files in extensions folder(named as a long number) located at /usr/lib/php5. can anyone tell me if ...
0
votes
1answer
180 views

Error while installing php-imap on CentOS 6.6

I'm trying to install php-imap on CentOS 6.6 yum install php-imap But I'm getting this error: Error: Package: php-common-5.3.29-4.w5.x86_64 (webtatic) Requires: libcurl.so.3()(64bit) ...
0
votes
1answer
215 views

Could not install php zip extension by using `pecl install` command line

When I want to install the zip extension of php using pecl utility, I got the following error: No releases available for package "pecl.php.net/zip" install failed but the zip extension is exists ...
0
votes
0answers
34 views

Doku wiki cannot connect to fast cgi behind ngnix

I'm trying to configure dokuwiki with ngnix. I'm using the https setup: server { server_name wiki.example.co; root /var/www/dokuwiki; index doku.php; listen 443 ssl; keepalive_requests 10; ...
0
votes
0answers
20 views

Improve memcache performance?

Using PHP, I'm connecting to Memcache with: $this->mem = new Memcache; $connected = @$this->mem->connect("localhost"); I feel like I'm hitting some kind of bottleneck. Looking at the ...
0
votes
1answer
158 views

Curl version on command line is different to PHP

I've got PHP version 5.5.21-1+deb.sury.org~precise+2 running with Apache2 under Ubuntu 12.04 When I run phpinfo() it shows the curl version as 7.22.0 When I run curl --version via the command line - ...
0
votes
1answer
116 views

Php 5.6.5 won't work very well

Today I installed Php 5.6.5 on my server with Debian 7 Wheezy and Apache2. First, I added these repositories to my /etc/apt/sources.list file: http://packages.dotdeb.org wheezy-php56 ...
1
vote
2answers
67 views

lighttpd + PHP-fcgi slow response

We have a problem regarding lighttpd as the webserver with php5 as backend via fast-cgi. Sometimes the server's response is taking more than 5 seconds (up to 20 seconds) when requesting a simple file ...
1
vote
1answer
173 views

Zabbix cannot connect to a PostgreSQL database

First off I am running CentOS 6.5 and attempting to use Zabbix 2.2.4. Any hostnames have been replaced with examples. I have installed the following RPMs onto my Zabbix machine ( hostname will be ...
0
votes
1answer
41 views

Varnish doesn't work with session on PHP

I have got varnish installed on my server. I have a page on my site which i would like to get cached via Varnish. With fresh varnish installation, I created a PHP page with some content in it. loaded ...
1
vote
1answer
90 views

Isolating a high-CPU PHP Process

I have a 16 CPU core server that's experiencing consistent load averages of 40-70. After camping on a top command for a number of hours, I've isolated the CPU spikes to a single user. After pressing ...
-1
votes
1answer
45 views

Exploit PHP File Found in /tmp directory [duplicate]

I have been alerted to by our system that a PHP shell has been found in the /tmp directory. Firstly - I would like to know how it could have got here and why it would be here - is there any way PHP ...
0
votes
0answers
106 views

malformed header from script

I got this error on my website: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server ...
0
votes
0answers
50 views

PHP & MySQL config for IIS server under heavy load

I am running a PHP/MYSQL website on Windows Server 2012 using IIS 8. I had performance issues on my old server with the CPU spiking above 100% during peak times. So I've just upgraded my server to a ...
0
votes
0answers
27 views

How to use this phpcgi apache tempalte to run php 5.2

From vestacp documentation (the CP I use) "phpcgi - tempalte to run php as cgi. can be useful to run php4 or php5.2" here is the source of the template ...
1
vote
1answer
54 views

Kill old php cron script

After running ps aux | grep php, I found about 10 php scripts ran by cron that have started over a week ago and are hanging. Each script usually take 40 seconds to complete. I have set ...