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

Fatal error: Maximum execution time of 30 seconds exceeded xampp [on hold]

I am using xampp and when try to acces the http://localhost i get the " Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\inc\connect.inc.php on line 2 " If i remove that ...
1
vote
1answer
19 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 ...
0
votes
1answer
15 views

Cannot install PHP iUS 5.6 on RHEL 6.4 - conflicts/dependencies

When trying to install PHP 5.6 from the iUS repo, I get this error: --> Processing Conflict: php56u-common-5.6.5-1.ius.el6.x86_64 conflicts php-common < 5.6 --> Finished Dependency ...
0
votes
0answers
16 views

MySQL Proxy Alternatives on Connection Pooling

I'm looking for a MySQL reverse proxy to pool the connections between two servers between datacenters. Servers are VPS. The website is on PHP-FPM and is under heavy load, so lots of connections ...
-1
votes
0answers
21 views

How to run command after receiving email in Exim 4? [duplicate]

i want to ask how to run command everytime new mail has been delivered to vmail and include email sender and receiver in the command like: php ...
-2
votes
0answers
31 views

Run command after receiving mail in Exim 4 [duplicate]

i want to ask how to run command everytime new mail has been delivered to vmail and include email sender and receiver in the command like: php ...
0
votes
1answer
20 views

Make postfix trigger a php script using always_bcc

I have been having a VERY hard time with this, have searched everywhere, and in utter desperation am posting this question. I am using postfix and dovecot on ubuntu 12.04. I am trying very hard to ...
0
votes
1answer
28 views

PHP eat a lot of memory on IIS

I just transferred one site from Linux to windows and i`m getting strange fatal error messages. My Linux PHP had 256MB memory limit and never had single "out of memory" fatal error. Now on IIS i have ...
2
votes
1answer
18 views

Cygwin OpenSSH server does not respond after first command from PHP (Using phpseclib)

I got cygwin and sshd working fine. And there are no issues at all when using putty. It responds as expected even for multiple commands. But when using phpseclib , A response is received only for the ...
0
votes
1answer
24 views

Make error_log readable by apache

Setup: CentOS 6.6, Apache 2.2.15, php 5.5.21 I 'm building a php script that displays the content of the /var/log/httpd/error_log file. Unfortunately, it does not work. The error message states: ...
-1
votes
0answers
14 views

File Created by PHP Doesn't Have Permissions

The problem is when I upload a photo to my server using PHP from android, TrustedInstaller doesn't have permissions on the file and I can't change file permissions using chmod(). There is no problem ...
-5
votes
0answers
22 views

which email software do I need to install [on hold]

I am in the process of building an event management system. Part of the system is going to be sending emails. What should I use to send emails and would give me proper control and monitoring ...
0
votes
2answers
35 views

PHP memcached session redundancy

I'm trying to follow How To Share PHP Sessions on Multiple Memcached Servers article and implement that to my environment: /etc/php.d/memcache.ini: # grep -v ^\; /etc/php.d/memcache.ini ...
0
votes
0answers
11 views

Supersede the default Apache config on a different config file

I'm using Ubuntu with Apache 2.4. The config file for Apache is found at /etc/apache2/apache2.conf at the end of this config file it's written # Current File: /etc/apache2/apache2.conf <Directory ...
0
votes
0answers
8 views

PHP Warning: Unknown: Failed to write session data (memcached). Very infrequent

I installed memcached (2.2.0) libmemached (1.0.18) a few weeks ago. (Apache/2.4.10 and PHP 5.5.20), mostly for php session management. Generally I'm really pleased with performance but I notice this ...
-1
votes
1answer
14 views

PHP Session sharing between HTTP and HTTPS

I am setting up a shopping cart website however I am having issues with sharing PHP Sessions between HTTPS and HTTP. My secure address: https://secure.domain.com My regular address: http://domain.com ...
-1
votes
0answers
6 views

Getting new PHP version in WAMP to load [on hold]

I'm downgrading my WAMP from 5.5.12 to 5.3.10, I added exported php-5.3.10-Win32-VC9-x86.zip to C:\wamp\bin\php\php5.3.10\ I've added the necessary php5apache2_4.dll into the php5.3.10 folder and ...
0
votes
1answer
21 views

WHM - php.ini in public_html stops default php.ini

I have a server with WHM panel. OS is CentOS. When I put a php.ini in public_html PHP stops reading /usr/local/lib/php.ini. When I compare results of phpinfo() what I see is; error_log error_log ...
0
votes
0answers
13 views

Client denied by server configuration, after upgrade

Yesterday, after upgrade my development machine, received this messages on intermittent mode. Client denied by server configuration. I working for years with the same configuration without problems. ...
1
vote
0answers
23 views

Atomatic SaaS scaling

I'm thinking about how to best setup my SaaS application for automatic scaling and have reached a step I'm unsure of how to tackle. To properly describe the problem, I better start by explaining how ...
1
vote
1answer
18 views

Error 500 / 503

I get an Error 500 / 503. My theory was that php5-fpm was being killed and re-spawned every second due to messages like this in php5-fpm.log [27-Jan-2015 08:21:34] NOTICE: fpm is running, pid 30045 ...
0
votes
0answers
32 views

Long process PHP stops after several minutes

What is the reason for process to end? Here is the part from log_file when this happened.. 2015-01-28 13:28:19.808 [INFO] [62.54.16.41:52122-0#APVH_mysecrets.omg] Connection idle time: 901 while in ...
0
votes
1answer
31 views

Add a PHP Handler to a website or even a folder only via AppCmd

I am trying to automatically deploy an IIS webserver (currently 8.5, will need to work it out all the way down to 7.5 as well), using AppCmd.exe I am using PHP's FastCGI to handle requests. I have ...
0
votes
1answer
18 views

mail.log for PHP mails

I got a new server. When I get a new server I always activate mail.log in php.ini. I did again too. Path is /var/log/phpmaillog I restart httpd and I also created the file with touch ...
1
vote
1answer
19 views

Can't Install freetds php-mssql on Centos7

I am at my wits end... Newbie to Linux... please help me... Goal is to connect to MS SQL Server 2005 using PHP. I have installed PHP and ODBC. I am running CentOS7. PHP Version => 5.4.16 .... ...
0
votes
0answers
30 views

Running Python and PHP on the same server

I've got Django, Gunicorn, and Nginx set up and working nicely together. I'm only going to have a few pages on this Django website, so I'm trying to I'm trying to set up the server such that files ...
0
votes
0answers
10 views

PHP files randomly not loading? [closed]

I have a website hosted with GoDaddy and for the first few days in ran smooth as butter. Then pages randomly starting having problems loading. I can navigate for a while, then I will click a page and ...
0
votes
0answers
15 views

And another FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream,

having some issues with 'file not found' or FastCGI sent in stderr. From what I have searched and researched about the issue it's due to the fastcgi_param SCRIPT_FILENAME not being able to locate the ...
0
votes
0answers
28 views

cgi error script not found or unable to stat:

I just found myself on an error I did not know what that even mean and don´t know and hardly found solutions on the internet . This happens on my Centos 7 (apache 2.4.6, php 5.4.16 and 15.1 Distrib ...
0
votes
1answer
30 views

nginx: url rewriting not working

I'm using Jelastic with nginx 1.6.1 and would like to use friendly urls without the .php extension. So if someone visits for example https://domain.com/faq.php nginx should rewrite it to ...
-5
votes
1answer
31 views

Deleted php5 www.conf help please [closed]

I accidentally deleted the php5 www.conf file located at: /etc/php5/fpm/pool.d/www.conf is there any way to get a copy of the original file back? I believe there is an answer to my question ...
-2
votes
0answers
24 views

GoDaddy servers handling ajax calls [closed]

I have a website http://novuta.com/ (not trying to advertise because it's not even finished) and my website is mostly dependent on Ajax calls. I am running it off a shared hosting plan with GoDaddy ...
-3
votes
0answers
38 views

mysqli phpmyadmin Seems to be something going on here [closed]

Oddly I can find no help with this issue. I have a developer here who wants to use phpmyadmin. So I set it up on our server and get some errrors. I updated everything I get some errors. I swear some, ...
-1
votes
1answer
48 views

php-fpm using 100% CPU and nginx gives 404

I am playing around with Magento CE on Nginx and its working fine. Problem starts when I do a 500 user load test. The php-fpm process hogs up all the CPUs to 100% and I start getting 404 as the ...
0
votes
0answers
6 views

DOMPDF/PHP truncates the output

I'm trying to render a PDF file using DOMPDF on a LAMP setup. The files it renders are truncated to 55kb and are not valid PDFs. This happens when I add images to the file I'm trying to render. If I ...
-2
votes
2answers
53 views

How to set custom $_SERVER variable for PHP

I'm working on a PHP web app which ALSO has some command line tools. I need the command line tools to detect the environment so that they connect with the correct DB credentials etc. The web app does ...
0
votes
1answer
25 views

Nginx Cache with PHP-FPM

I have the folowing niginx config file: server { listen 80; server_name pajilleros.com www.pajilleros.com; access_log off; location / { root ...
0
votes
0answers
35 views

Ubuntu 12.02 to 14.04, Wordpress tries to use wrong MySQL user on single post pages

I just ran an update to Ubuntu 14.04 on my web server. It went super smooth and I thought all was well, but I just noticed the inner most pages of my Wordpress site throw an unusual error. Access ...
-1
votes
0answers
18 views

How to install mcrypt in dual PHP version CentOS 6

I have two parallel versions of PHP installed on CentOS 6.4. then, i tried this link How to install mcrypt in dual PHP version CentOS 6? $ rpm2cpio php-mcrypt-5.4.16-1.el6.x86_64.rpm | cpio -idmv ...
0
votes
0answers
3 views

Connect MSSql using Service account “domain/User” via PHP/Yii [migrated]

i trying to use a windows service account user "DOMAIN/username" to access an existing MSSQL db environment via PHP/Yii i m able to successfully login to the MSSQL database directly using this ...
0
votes
0answers
25 views

Compile php with latest openssl and curl

I am trying to compile php 5.4.36 with latest curl and openssl (1.0.1l), i have compiled openssl into a separated folder My system is CentOS. When i try to compile php with ./configure ...etc... ...
0
votes
0answers
30 views

How to enable apache userdir when using nginx as reverse proxy

I have a setup using apache 2.4, php-fpm, and nginx. I need to enable the apache userdir module so http://ip-of-server/~user would be equivalent to the http://example.com normal site. I can't get it ...
0
votes
1answer
37 views

Execute PHP script when someone requested a certain file in another Folder

I am building a WebHosting service. Users can create a Account and upload Files with FTP and access them by visiting username.mywebsite.com (just an example). I would like to record the number of ...
-1
votes
0answers
19 views

Update PHP component on server with running Plesk 12.0.18 [duplicate]

I've installed PHP component on my Plesk server with default version 5.3.3-40.el6_6 on CentOS6. Unfortunately I have damaged PHP and now I have to reinstall PHP on my plesk server. I'd like to install ...
0
votes
1answer
49 views

PHP cant write files regardless of permissions

On a Centos 7x64 box apache/php is unable to write files regardless of permissions. I set the directory to apache:apache and even set it to 777 and php is still getting permission errors. What else ...
2
votes
2answers
32 views

apache worker + php fastcgi, long script

My problem is that long php scripts (several hours) are exiting early. (FireFox says "connection to the server was reset while the page was loading"). They exit sometimes after 30 minutes, sometimes ...
-1
votes
0answers
11 views

How to make local PECL mirror

Accidentally asked this question on stackoverflow, and was beat down. Anyone have any tips on making a local mirror of PECL? I found docs on doing a PEAR mirror, but not PECL.
0
votes
2answers
34 views

nginx with php5-fpm and multiple Wordpress in subdirectories

I have a running nginx server with php5-fpm on a debian wheezy. I want /var/www/devel/ to be my development folder served at http://devel.example.com. In this directory I have multiple projects like ...
-1
votes
0answers
11 views

how to solve submit value empty in $_POST Method? [migrated]

this is my html form VSN Treks Nepal :: Your Trusted Trekking Partner in Nepal $(document).ready( /* This is the function that will get executed after the DOM is ...
0
votes
0answers
39 views

PHP upgrade to 5.3.3 stopped sessions working

I can't login to any of my PHP applications now (phpmyadmin, mediaWiki) after using yum to update PHP to 5.3.3 I've looked at other posts but there doesn't seem to be a general fix to the problem, ...