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
5 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
1answer
1k views

PHP not working with Apache on Centos 7

I'm on centos 7 and have the httpd service (2.4.6) installed from yum no problems and I had to install PHP from a different repo remi to get php 5.6 installed. PHP works on the command line and the ...
0
votes
0answers
8 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 ...
0
votes
1answer
1k views

Why is PHP -> MSSQL very slow when the DB is not on the same machine as the PHP code

In the course of trying to move our website to Azure, we've found a problem with our PHP code talking to MSSQL. On the current dedicated host (hosting both the PHP and the DB), going to a page ...
5
votes
2answers
2k views

All PHP sites stopped working on IIS7, internal server error 500

I installed multiple drupal 7 sites using the Web Platform Installer on Windows Server 2008. Until know they worked without any problems, but recently internal server error 500 started to show up (...
2
votes
1answer
202 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 ...
1
vote
3answers
1k views

session.save permission erorr

My Debain server created a session in private tmp folder /home/user/tmp the temp folder owner: drwxrwxrwx 2 user www-data 4096 2011-08-23 16:26 tmp After the session created, the session ...
4
votes
1answer
2k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
0
votes
0answers
7 views

Server stack for PHP and remote Oracle [on hold]

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 ...
1
vote
2answers
74 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
0answers
11 views

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

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?
2
votes
1answer
1k views

phpinfo.php is not showing extra folder for additional PHP configuration files

My phpinfo.php is not showing extra folder for additional PHP configuration files. I am running Apache v2.4.4(with PHP DSO) and PHP v5.4.14 on CentOS v6.3 32-bit. Apache and PHP installations are ...
1
vote
2answers
1k views

Lighttpd + Index.php not found

Its the first time ever for me to setup a webserver myself. Also I am not familiar with linux, therefor excuse me if I am about to ask something stupid... I have setup lighttpd and everything seems ...
1
vote
1answer
1k views

Stopping memcached: [FAILED]. Why?

My application seems to be having issues with memcached not stopping. I'm using php, and have specific keys expiring after every hour. However those keys & values are not repopulating anymore. ...
-1
votes
1answer
21 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
1answer
1k views

Nginx: wild card subdomain redirect URL to page with request

I am trying to convert: http://test.example.com/file.php To either http://www.example.com/file.php?subdomain=test or http://test.example.com/file.php?subdomain=test Depending on ...
0
votes
1answer
2k views

Configure php mail() on Windows/IIS

I have a Windows Server 2003 / IIS web server running various application servers, and ended up begrudgingly adding PHP into the mix. I know Win/IIS isn't the ideal environment for PHP, but it's what ...
5
votes
2answers
1k views

Apache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunked

I'm running into a problem with a new production server whereto I'm transferring projects. The HTML output of the PHP applications isn't compressed by the Apache mod_deflate module. Other resources, ...
-2
votes
0answers
9 views

GNIP engagement API call in PHP [on hold]

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
1answer
2k views

php fopen error (failed to open stream: Permission denied)

I have a php script on a Windows Server 2008 box (IIS 7) that is run periodically to download a remote XML file and store it on the server. This script (which previously used to run successfully), is ...
1
vote
5answers
3k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
0
votes
2answers
38 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
15 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 ...
6
votes
3answers
36k views

phpMyAdmin Error - The configuration file now needs a secret passphrase

I keep getting an error "The configuration file now needs a secret passphrase" after installation of phpmyadmin. I have set the passphrase and also followed the instruction presented on phpMyAdmin not ...
1
vote
2answers
6k views

Executing a python script through php button

I am having an issue with executing my python script through using a button on PHP. I looked through any or all relevant questions regarding my issue, and tried any answers i could find and modifying ...
0
votes
1answer
30 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 [on hold]

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
37 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
1k views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on /home/...
4
votes
3answers
4k views

Ubuntu install php5-ffmpeg

When I try to install php5-ffmpeg: apt-get install php5-ffmpeg I get an error: The following packages have unmet dependencies: php5-ffmpeg : Depends: phpapi-20090626+lfs As I understand my php5-...
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 ...
-4
votes
0answers
29 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 ...
-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/...
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 ...
1
vote
2answers
1k views

PHP App (Owncloud) Pages Requesting Incorrect Path for Assets

I have a VPS set up with php-fpm and nginx (with ssl). I have set up Tiny Tiny RSS already, and it works just fine. However, I recently attempted to set up Owncloud, and instantly hit a roadblock. I ...
6
votes
1answer
2k views

Nginx + PHP-FPM produce 502 bad gateway instead of fatal error?

I'm currently testing Symfony2 with Nginx and PHP-FPM. I also use Xdebug. Symfony2 comes with a Demo bundle, I wanted to test the new handling of fatal errors which comes with Symfony 2.2.0 by ...
0
votes
1answer
30 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 ...
0
votes
1answer
1k views

php REMOTE_USER variable

I am trying to setup mediawiki with SSO. I was able to set up authentification with domain, but I cannot setup SSO. For some reason, $_SERVER['REMOTE_USER'] variable is not set. I looked into some ...
0
votes
1answer
2k views

Compiling PHP on CentOS Needs MySQL PDO Configured

I am trying to compile PHP with mysql_pdo on CentOS 6 and I am having just one heck of a time trying to make it happen. Currently I am trying to compile PHP 5.2, but I am going to have to do this for ...
-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 ...
-1
votes
0answers
18 views

email not working in webuzo panel cloud server [closed]

I am using webuzo panel in cloud server. It's working fine but seems issue in email.I created new email account like contact@domainname.com and opened that in squirrel mail but I am not able to send ...
0
votes
1answer
303 views

upgrade php to 5.2 on centos 5

I'M triyng to upgrade php 5.1 to 5.2 on centos 5 following these directions. I enabled the centos-testing repo: But yum can't find any package to upgrade... rpm -qa |grep php php-mbstring-5.1.6-39....
0
votes
3answers
1k views

Unable to send mail through php script

I have setup a server with the following settings: CentOS release 6.3 (Final) Kernel \r on an \m Linux version 2.6.32-279.14.1.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.6 ...
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 ...
0
votes
1answer
18 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
12 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 ...
0
votes
1answer
4k views

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.(while selecting multiple columns)

am using apache 2.2.i have written this code when am trying to run it my browser is failing to run it ,it's showing This webpage is not available The connection to localhost was interrupted. Error ...
0
votes
2answers
2k views

Apache authentification error

I've installed Apache 2.2 on my Debian-based distr (kernel 3.2.0-27) and apache2.2-common package with default configs. Trying to run simple script info.php I got the error found in /var/log/apache2/...
5
votes
5answers
22k views

Nginx/FPM/PHP all php files say 'File not found.'

i just installed nginx 1.1.13 and php 5.4.0 on a centos 5.8 final 64bit machine. Nginx and PHP/Fpm are running, and I can run php scripts via ssh command line, but in the browser I keep getting 'File ...
1
vote
1answer
6k views

MySQL connections aborted - should I be worried?

I'm tuning MySQL on a webserver with Apache and mod_php for speed so I ran mysqltuner and here's the result: -------- General Statistics -------------------------------------------------- [--] ...