Questions tagged [php]

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.

PHP is an open-source general-purpose scripting language that is suited and popular for server-side Web Development. There is an excellent online manual and a wiki. The online manual is a complete reference for syntax, built in functions, and extensions. There are lots of extensions for PHP that most of them can be find in PECL.

If you want to post a question in PHP, check the error log or if errors are enabled, enter them from output of your script if any.

7887 questions
2
votes
4 answers

AWS EC2 PHP session_start with permission denied

I have an strange issue related with PHP an the session save path. I have configured in my php.ini the session.save_path = "/tmp", and I know that is correctly configured since in the server I could type the following command and the command result…
alvarolb
  • 131
  • 1
  • 4
2
votes
2 answers

nginx+php-fpm(chroot). No input file specifed

OS: Centos PHP: 5.5.6 Nginx: 1.4.4 Nginx conf server { listen 80; server_name example.ltd; root /srv/example.ltd/www; index index.php; access_log /srv/example.ltd/logs/nginx-main.log main; error_log /srv/example.ltd/logs/nginx-error.log…
user201166
  • 21
  • 1
  • 3
2
votes
1 answer

Nginx downloading php files - Possible cause: regular expressions

Problem I'm trying to deny access to two files in my web root, update.php, install.php and require authentication for apc.php (also webroot). I think I've successfully denied access but on opening the file it's downloaded instead of being run. For…
split_account
  • 169
  • 4
  • 11
2
votes
1 answer

Is there more than one provisioning technology named fog?

I have a puppet installation in which I tried to check the fog version (for cloud provisioning), but I got no response so I assumed it was not installed. I need fog in order to utilize the vmware cloning ability of puppet. In any case, it seems fog…
Carl Carlson
  • 169
  • 4
2
votes
1 answer

DBLIB PDO driver keeps failing when trying to connect/query Microsoft Azure SQL database

So I'm using Linux (ubuntu) and I'm trying to connect to a Microsoft Azure SQL database. Server information: The server address is a1a1a1a1a1.database.windows.net (a1a1a1a1a1 is a placeholder for my server name) The database name is MyDatabase The…
B1NARY
  • 51
  • 1
  • 5
2
votes
1 answer

Enable php pdo on cpanel

Getting this error: Fatal error: Class 'PDO' not found Have these lines in php.ini: extension=pdo.so extension=pdo_sqlite.so extension=sqlite.so extension=pdo_mysql.so This shows up in php.info()-- --enable-pdo=shared' ' Have access to whm but…
mike
  • 21
  • 1
  • 2
2
votes
1 answer

"Cannot allocate memory" Using composer to install composer using fork from laravel git

Whenever I try to install a new laravel project, I receive the following error: PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in…
samayres1992
  • 127
  • 1
  • 7
2
votes
2 answers

How to get feedback from SMTP server, connecting to it from another server in the same network?

I have the following scenario: [HTTP Server]: process messages [SMTP Server]: only send messages [HTTP Server] === connect to ===>>> [SMTP Server] === sends message ===>>> [world] Ok, this is going well. My point is: how to get feedback from [SMTP…
2
votes
1 answer

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/php-fpm/sock/gosianozka.sock [10-Oct-2013…
Spacedust
  • 568
  • 5
  • 13
  • 28
2
votes
2 answers

windows php curl install : recommend a good site?

So I'm struggling to get php curl installed on my windows xp professional machine and I've probably tried 5 different sites which either dont' work or refers to missing file references like the ca certificates and such. I'm looking to write a php…
phill
  • 327
  • 3
  • 13
  • 20
2
votes
2 answers

With PHP installed, Apache is (comparatively) slow at serving static content?

First some background on how I installed PHP, Apache, and some Apache modules: # apt-get -y install php5 php-pear libapache2-mod-php5 php-apc php5-mysql php5-mcrypt php5-xmlrpc php5-curl php5-imagick php5-gd php5-imap php5-pspell # apt-get -y…
its_me
  • 225
  • 1
  • 7
  • 23
2
votes
2 answers

How to configure sendmail to only send to specified domains?

I have a local development server (centos) which I develop a number of websites on. Occasionally I need to test email sending scripts. I want to avoid the development server from sending emails to anyone who doesn't have an email address with a…
David
  • 841
  • 3
  • 14
  • 31
2
votes
1 answer

413: Request Entity Too Large (client_max_body_size is set)

I'm really not sure where else to look for the answer. Every single guide or question online says to check client_max_body_size and that solves it. For me however, I'm trying to do a large PUT request to a PHP file that's on my own server. I have...…
Tallboy
  • 179
  • 3
  • 15
2
votes
3 answers

Debian: can not install php5-suhosin and php5-apc

Just ordered a new Debian server and for some reason can not install php5-suhosin and php5-apc. Any ideas? apt-get install php5-suhosin Reading package lists... Done Building dependency tree Reading state information... Done Package php5-suhosin is…
user189078
  • 225
  • 2
  • 4
  • 7
2
votes
2 answers

Apache restart needed after php code change

When I change php code of an application I need to restart apache to make the new code effective. $ sudo apachectl -l Compiled in modules: core.c mod_log_config.c mod_logio.c itk.c http_core.c mod_so.c It is a pretty stock Ubuntu…
Martijn de Munnik
  • 123
  • 1
  • 1
  • 4