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

Windows/IIS Hosted WordPress Website Randomly Drops Connections

Let me start by saying that I am a Software Engineer, not a Network/SysAdmin/Hardware guy, but, on a small team, I have frequently been tasked with setting up Web Servers. I recently setup/configured ...
0
votes
0answers
18 views

Gateway Timeout with PHP,NGINX and Laravel

I'm using a Godaddy VPS with Nginx, PHP and Laravel installed on Ubuntu 14.04, I have page where I'm sending request to Paypal REST API, that works on my local machine and the response is returned ...
0
votes
0answers
12 views

How to increase php-fpm processes on Plesk [on hold]

We have a VPS hosting account running Plesk 12.5 on CentOS 7. When we're loading testing the VPS it only runs 5 php-fpm processes (as shown by top). There are 24 cores on this VPS and overall CPU ...
0
votes
0answers
12 views

New nginx + phpfpm installation causes PHP files to download

I just finished installing Nginx and PHP-FPM using the steps in guide here. However, the test PHP info page seems to be downloading instead of showing up on the browser. Here's what the config looks ...
1
vote
1answer
34 views

Session files are created every 2 second. Running on openshift Laravel PHP nginx haproxy

What causes the access on the server when the server starts? I've run rhc tail on my app to monitor the new logs. Here is my log http://laravel.io/bin/Dez4o When I started the app using rhc app-...
-1
votes
0answers
12 views

Why do I use YII2 access to MySQL,but throw an exception [on hold]

I am Yii2 beginner.I use Yii2 built a simple model to link a database table called y_user.But when I want to test fetch the data from y_user it throws an exception,the meaning of this exception code ...
-2
votes
0answers
19 views

Phpinfo() now showing mysql - Debian wheezy

please, could you provide me your help? I'm using Debian in version Wheezy. I upgraded mysql to version Ver 14.14 Distrib 5.6.29, for debian-linux-gnu (x86_64) using EditLine wrapper and php is ...
0
votes
0answers
4 views

Sentora - Configuring PHP files [on hold]

I have an apache server up and running with a Sentora Control Panel. I am having trouble executing any PHP files at all from the servers address. The document root file is /var/www/html. I place the ...
-1
votes
0answers
6 views

Advice for Selecting the Right EC2 Instance [duplicate]

I am new to this particular flavor of StackExchange and apologize in advance if this is a poor question or the wrong area for it. I wanted to ask for some help in choosing the right EC2 instance (...
0
votes
0answers
10 views

Force a connection from PHP to MySQL version 4

I am trying to connect a PHP application to a version 4 MySQL database. Both are running on an internal network on different servers. There is no outside exposure. I've tried using three MySQL ...
3
votes
1answer
217 views

What time zone is a cron job using?

I'm guessing there's a difference between my PHP time and the server time. When I check the current time in PHP, it's showing that MST is being used. However, cron jobs aren't running at the correct ...
0
votes
0answers
8 views

Server stack for PHP and remote Oracle [closed]

I have to deploy PHP web app on EC2 server which connects remote AWS Oracle RDS. I know that I will have to install Oracle Instant clients and OCI8 extension to connect Oracle with PHP. Which OS ...
0
votes
0answers
11 views

How to run codeigniter project in subdirecory of cakephp? [closed]

I have one website in cakephp. In that website i want to run one codeigniter project which is already bulit. Please let me know is it possible if yes what i need to change in both the projetcs?
-1
votes
1answer
25 views

why memcached server running slow for my case

I am usiing memcached for html caching for my project but it take too much time to retrieving data and responding. Server stats: 8 GB RAM, centos, php client Here is my setting : echo "stats ...
-2
votes
0answers
11 views

GNIP engagement API call in PHP [closed]

I am using GNIP engagement API trial version. I tried to get engagement API response via PHP client code but getting error : Your account could not be authenticated. Reason: Bad signature This ...
0
votes
2answers
50 views

Permission Denied to PHP Files on Centos 7 with nginx

I have problem WHAT I DID Install Centos 7.2 with nginx 1.10 -- create a nginx server block sudo mkdir -p /var/www/example.com/html -- set permission sudo chown -R nginx:nginx /var/www/example.com/...
-1
votes
2answers
16 views

Can PHP have not root permissions, if it is runned via root cron job?

In /etc/crontab i see a job like this: 15 15 * * * root /usr/local/bin/php /path/to/script.php So, with some other settings, cat this php script have not root access, when runned? My ...
0
votes
1answer
32 views

separate php error logs for each Apache vhosts

Is it possible to separate php error logs for each Apache vhost ? I am running Apache/2.4.10 (Debian) and PHP 5.4.45 (cli) For example i tried php_value and PHPINIDir in my apache config <...
0
votes
2answers
39 views

corrupted openSSL, website down can't SSH, yum, rpm etc [closed]

I was trying to install uTorrent on my PHP site and mid-process I was kicked out of SSH and the website went down. libssl.so.1.0.0 and libcrypto.so.1.0.0 were required for uTorrent so to downgrade, ...
0
votes
0answers
38 views

RewriteRule return 404

I just setup apache on my raspberry PI. I've enabled the Rewrite Mode for shunk all the api request on the index.php. In my project root (of my rest api) I've configured the .htaccess as following: ...
0
votes
1answer
22 views

How to integrate the php’s error codes to submit to a database

I'm trying to writes PHP error to a mysql database. If there’s a way we can change it so that instead of writing directly to an error_log file, it sends the error to a script, which records it in the ...
-1
votes
0answers
14 views

How do I properly configure /etc/hosts so that sendmail will work? [closed]

Hey guys! I'm trying configure sendmail on my ubuntu server so that I can use PHP's mail() function on a simple "contact us" web form. I'm confused on what information I have to give in the /etc/...
-5
votes
0answers
31 views

How to a database chat works? [closed]

I want create a chat with PHP and SQL. How the database chat (with messages, nick etc.) works? I've tried to create this idea: User -> Write something on the input and send it. DB: Save this ...
0
votes
0answers
21 views

PHPMailer - Track calls to find spam script

Through making logs more verbose, I've managed to find that all the spam calls are being made from class-phpmailer.php in a Wordpress installation. However, this isn't that helpful - this is the ...
0
votes
1answer
32 views

mysql php ssl connect certificate verify failed

I have followed this steps to add mysql ssl support on Server A: # Generate a CA key and certificate with SHA1 digest openssl genrsa 2048 > ca-key.pem openssl req -sha1 -new -x509 -nodes -days ...
-1
votes
1answer
13 views

Running Ruby on Rails and PHP apps side-by-side under the same (Apache) web directory structure

My company have several apps running alongside on an Apache2 web server which resides on an Ubuntu server. Our setup includes: A portal website is set at Apache's document root "/" Another ...
0
votes
1answer
19 views

PHP websocket script running as daemon stops working after a while

I start my websocket script like so: nohup php server.php & and I close the ssh client and it seems to be working fine for a while, but after say half an hour or so it stops working, any idea ...
0
votes
0answers
14 views

Configuring nginx + Laravel to not execute any other PHP files

I have a Laravel application hosted on nginx, using a fairly standard php-fpm configuration. There should be no need to execute any other PHP files on the server, except for one specific script that ...
1
vote
0answers
28 views

OpenSSL Header Version != OpenSSL Library Version affecting HTTP/2 for APNS

i have this weird combo on my openSSL on WAMP. My windows command prompt openssl version returns the library version -> OpenSSL 1.0.2h 3 May 2016 while my php curl call -> echo "openssl version text:...
0
votes
1answer
12 views

PHP on IIS6.1 Error log file plus write permissions

This is a Windows 2008 R2 Standard Server with PHP 5.3.6 running on IIS 6.1 (Build 7601: Service Pack 1) I have these settings in my PHP.ini file: error_reporting = E_ALL & ~E_DEPRECATED ...
0
votes
0answers
9 views

Redis Performance Tanks as Number of Nodes Increases

Strange problem. We have 6 nodes behind a loadbalancer. They are high-spec VPSes running Ubuntu. On a separate node we run Redis. Further nodes run MySQL. The whole LAMP setup hosts Magento. ...
3
votes
0answers
26 views

debugging stuck apache/php thread on production server

I have a linux system with apache httpd and PHP which is loaded using LoadModule php5_module /usr/lib/apache2/modules/libphp5.so. I've enabled the mod_status module of apache and I see a particular ...
0
votes
1answer
35 views

including files from /var/www in apache virtualhost subdomain

I've been having this problem for a while and still can't come up with a proper solution - I want to include files from directories within /var/www from my Apache server. This isn't a problem whenever ...
1
vote
0answers
12 views

PHP on IIS7 can't enable MSSQL

I have an installation of PHP 5.3.6 on my IIS 7 server. I did not install this and am only beginning to manage it. It has Wordpress 3.2.1 on it. It has these values; from phpinfo(): Configure ...
0
votes
0answers
10 views

Possible to transfer session between 2 apache php instances [migrated]

I have two identical VMs, containing Ubuntu 16.04, Apache 2.4, and PHP 7.0.4 running on different IPs. In both the VMs I have a script doing some simple session procedures. <?php session_start(); ...
-5
votes
0answers
21 views

What specification server can handle 1 million mySQL queries and 5 million PHP scripts daily? [duplicate]

What kind of specification would I need for running 1 million mySQL queries and 5 million PHP scripts daily (with 80% of the load being between 8am and 10pm). I know databases can require massive IO ...
0
votes
1answer
35 views

LAMP/Apache2: How to set webhook API PHP file as public but outside of project root directory?

I have an AWS EC2 LAMP server (using Apache 2.0 and mod_php5) with a basic directory structure like this: var |-- www | `-- api_folder (NOT public) | | |-- sensitive files (NOT ...
1
vote
1answer
15 views

Wordpress Permalinks and regular php files

I have Wordpress installed in the root directory and configured properly using permalinks. Alongside the Wordpress blog, I have a full-fledged custom developed php application with several pages. I ...
-1
votes
1answer
33 views

PHP: how to write a file when no permissions are granted to www-data user [closed]

I have a WEB-page on Apache/2.2.9 (Debian) server located in .../public_html I am a user with no root preveligies. I rewrote my site in PHP and noticed that it cannot write files in ../public_html I ...
0
votes
0answers
44 views

Apache not sending POST data to PHP?

I have written a simple command line program that opens a browser and posts data to a given url. For some reason once the request gets to my apache server, apache see's the post data, but fails to ...
1
vote
0answers
11 views

PHP: No mapping for the Unicode character…, for specific greek characters

I have a windows IIS server working with PHP. The user inserts a word via an HTML form, it goes to PHP and then PHP calls a COM dll (vb6) function passing the word to the function as a utf8 string. ...
1
vote
2answers
75 views

.htaccess file not loaded for PHP files

I am trying to work out why my .htaccess is not being considered when loading a .php file. Below files sit in the webroot of my localhost. .htaccess # Cause a HTTP 500 test file.html <html>&...
0
votes
1answer
42 views

Adding IMAP support to brew php after install

Possibly related to this question, but I need some clarification. I'm managing a Mac Mini server with brew's php54 installed. I did not do the install; the developer who did has since left the ...
0
votes
1answer
24 views

BitBucket Server Automatic Deployments with PHP WebHook

I've done some research and I'm attempting to reproduce something similar to JONATHAN NICOL's blog post, "Automated git deployments from Bitbucket". UPDATE TO ISSUE I've enabled logging of the ...
0
votes
0answers
10 views

shell script hijacked my .htaccess files [duplicate]

Posted this on SO but was led here. I run a wordpress website and last night somehow a user was able to upload a shell script onto my server. This executed some linux commands modifying my .htaccess ...
1
vote
1answer
40 views

Best manner to access files in S3 Bucket from EC2 instance

I have tried several packages (goofys, s3fs, fuse) and have not been able to find a solution to my problem. I have an S3 Bucket with several thousand files currently in it and will continue to grow. ...
0
votes
1answer
42 views

Contact form from ubuntu to Zoho email address

I would like some support in order to get my Postfix configuration working with my Zoho email account. What I am trying to do is to send a message from my contact form in http://www.g3eo.com/#!/...
0
votes
0answers
14 views

strftime() returns incorrect preferred time format

Migrated from: http://stackoverflow.com/questions/38175863/strftime-returns-incorrect-preferred-time-format I need to display time in preferred format by the country where user resides. setlocale(...
0
votes
1answer
22 views

nginx download php script on HTTP but not in HTTPS

I'm nginx with php-fpm on my server. I configured nginx with SSL (Let's Encrypt) and made HTTPS the default instead of HTTP. The problem is that when accessing the web via HTTP the php file is ...
0
votes
1answer
7 views

Restrict Excecution Access

Lets say we have multiple domains in the same hosting account. The tree is like: home->website1 home->website2 home->website3 The problem is that website3 or website2 can contain a php or js file ...