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
2answers
25 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
8 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
5 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 ...
-1
votes
1answer
13 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
11 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 ...
0
votes
1answer
16 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
31 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
17 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 ...
0
votes
1answer
16 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? [on hold]

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
13 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
25 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
29 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 [on hold]

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
45 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
5 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 ...
-1
votes
0answers
20 views

How to Upload to multiple websites [closed]

I am trying to come up with a solution to a problem for a friend, and cannot work out the best way to do it so any help would be extremely gratefully received. He has a large number of domain names, ...
-2
votes
2answers
49 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
24 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
25 views

Nginx routing vs Laravel App Routing [closed]

Is Nginx based routing for sites faster than App based routing that's used in PHP frameworks like Laravel? We are currently testing out Laravel and we see a steep decrease in performance comparing app ...
0
votes
0answers
34 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 ...
-1
votes
0answers
40 views

Serve multiple programming languages with Nginx [closed]

I'd like to have multiple sections on my website, each serving a specific programming language. For example, example.com/php would serve PHP, example.com/python would serve Python, and ...
0
votes
0answers
23 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
28 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
36 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
48 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
31 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
33 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
38 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, ...
0
votes
1answer
28 views

Upstart service was running, stopped and will no longer run

I feel sure that someone, somewhere changed something on the server but I cannot identify what occurred. Keep in mind the service was working perfectly prior to the beginning of this week. (NOTE: this ...
0
votes
1answer
45 views

Two browser windows hitting same MySQL app, both can't run at the same time

I have a LAMP web application that has some pages that do quite a bit of processing and take a while to complete. Sometimes as the developer I like to do two things at once as I'm working on a ...
0
votes
1answer
33 views

Protect /analytics on Nginx with basic authentication, but allow access to .php and .js files?

Hope this is the right place to ask. I have Piwik setup and running on a Nginx webserver that I protected with HTTP basic authentication, as seen below. location /analytics { alias ...
0
votes
1answer
10 views

SimpleSAMLphp OpenID Consumer

I'm using SimpleSAMLphp as an OpenID Consumer and no openID provider I tried seems to work. I always get the following error: Exception during login: SimpleSAML_Error_BadRequest: ...
0
votes
0answers
21 views

Performance degradation using PHP APC

Having configured and deployed PHP APC on a Windows server, the sites running PHP seem to have taken a hit in performance. They are slower than what they used to be. Disabling APC, returns them to ...
-1
votes
0answers
19 views

IIS 7.5, php pages give 404 error on one site but others (on same server) work fine

I have a working Wordpress intranet site on a Windows 2008r2, IIS 7.5 server. I'm trying to set up a second Wordpress site on the same server. Site-1 and site-2 have the same setup/config but for ...
-5
votes
0answers
31 views

nginx and apache on diff ports

I have a shared server with apache running on :80 and nginx running :8080. I would like to enable APC for HTTP requests coming from nginx. For this I need to enable apc in php.ini or apc.ini. If I do ...
0
votes
1answer
46 views

PHP not executing in installed phpMyAdmin directory

I installed phpmyadmin on centos via yum and can access it via //ip/phpMyAdmin. However, it shows the source code instead of the interpreted PHP code result. I tested this again by adding another ...
0
votes
1answer
41 views

Running PHP and Node.js on the same Nginx server

is it possible to run PHP and Node.js on the same Nginx Server and VPS? I already manage to make nginx as reverse proxy for node.js but my question is how to run it alongside with PHP? I want node.js ...