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
24 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
29 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
23 views

GoDaddy servers handling ajax calls [on hold]

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

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

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

How to make apache use different php versions per virtual host on Ubuntu

I have a LAMP server, with multiple virtual hosts running on php 5.x, however I need to allow a single (cakephp 1.3 app) virtual host to run on php 5.3.29 in order for it to work. I have tried to find ...
-1
votes
1answer
36 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
14 views

How to Upload to multiple websites [on hold]

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
44 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
22 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
22 views

Nginx routing vs Laravel App Routing [on hold]

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

Serve multiple programming languages with Nginx [on hold]

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

Nginx times out after 1 minute [closed]

I've been googling this for like 2 hours now, but couldn't find solution. Im running nginx on windows 10 tech preview on my local network laptop as a server, and I'm developing a php app, so I'm the ...
0
votes
0answers
20 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
32 views

PHP sites blank when installing any script [closed]

a while ago I set up a test server with Debian, just to test any scripts I would be interested in, nothing more so mainly what I have on the server is a bunch of test sites with various cms, apache + ...
0
votes
0answers
24 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
29 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
18 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
45 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
30 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
29 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
32 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, ...
-2
votes
0answers
16 views

Recursion in phpagi script of asterisk server [closed]

I am using this in extension file which execute the my phpagi script:- exten => s,n,Read(NUMBER,,4) exten => s,n,agi(a.php,${CALLERID(num)},${NUMBER}) And this in my phpagi script:- ...
0
votes
1answer
25 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
27 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
6 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
19 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
16 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
42 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
38 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 ...
0
votes
1answer
63 views

Ubuntu 12.04 unmet dependencies [closed]

I have a VPS which is running plesk, I wanted to use a nginx web server and update the php version but I believe there could've been some sort of conflict with plesk when I tried to install nginx. I ...
0
votes
2answers
58 views

PHP file Upload & execution Prevention

I am security administrator for a shared Linux web hosting. I have done my level best to secure the server in many ways within the possible limitation. Means, As it is shared hosting, there will be ...
2
votes
1answer
52 views

Nginx treating old PHP urls as Files

Having a very hard to trying to figure this out. I have changed my website from another platform to Joomla and now Nginx is unable to handle old urls. My Old Urls were like this: ...
0
votes
0answers
53 views

phpMyAdmin display table Structure Error

I believe that didn't do any setting to the server, or moved its files, but I have the following error when I want to display the table structure: Notice in .\libraries\structure.lib.php#1524 ...
0
votes
3answers
42 views

How to allow PHP to send email only if the FROM address is an existing email account on the server

I have a VPS server. on a previous shared server I remember that PHP would only send mail if the FROM address exists on the server as an email account. I need to know how to limit PHP from sending ...
0
votes
0answers
6 views

Can I apply PHP's open_basedir to socket paths? [migrated]

The PHP manual states: open_basedir (string) Limit the files that can be accessed by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether ...
-2
votes
1answer
44 views

PHP website grinds to halt for an hour, then runs fine…how to debug?

I have a PHP website which uses $_SESSION variables. It runs on Apache, Mysql and Ubuntu 14.04 on a very resourceful server (Amazon EC2 - M3.X-large) For some unknown reason, the website virtually ...
-1
votes
0answers
10 views

CentOS using PHP to access network file

I just set up a machine on our local network running CentOS 6. I had some PHP code that worked on our Windows server, but no longer work on this one. The code isfile_exists('//BUFFALO/databases/Daily ...
-2
votes
0answers
16 views

Is this the right way to set up php permission on apache server? [duplicate]

I'm creating a site where I need to make users able to upload images. To gain the access for php to create folders and move files, I had to do some changes to my lamp server. I wanted to stay away ...
-1
votes
0answers
11 views

How can I calculate the hardware I need for a WAMP server? [duplicate]

Hello I need to find a way to calculate what kind of hardware I need to run a WAMP server that will host a SMF forum and a wordpress blog. and expecting about 75 hits/day. What do i need to calculate ...
0
votes
1answer
36 views

PHP `disable_functions()` reports empty

In some PHP code, there is a check to see if shell_exec is in the disable_functions list: $disabledFuncs = explode(',', ini_get('disable_functions')); $isShellDisabled = is_array($disabledFuncs) ? ...
0
votes
1answer
37 views

Enable curl_exec() in a sub-folder

Curl is enabled on the server but curl_exec function is disabled for security reasons. disable_functions = exec,passthru,shell_exec,system,proc_open,popen, ...
0
votes
1answer
38 views

Wordpress mu 404 with LEMP stack + Ispconfig3

I have a Centos dedicated server with Nginx, PHP-FPM and ISPConfig3 as control panel I installed Wordpress in a sub-domain and enabled Wordpress mu : ex.domain.com I added the following rules in ...