Questions tagged [php5]
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.
864
questions
1
vote
1
answer
8k
views
php5-fpm with nginx Session Not Maintained / Dropped Randomly
When running nginx with php5-fpm, session variables randomly lose their values. Since my session variables become empty, my script asks for the user to login again. However, what's weird is that the ...
1
vote
1
answer
97
views
Cannot access virtual directories on Drupal 7
I have installed Drupal 7.37 on AWS EC2 Linux instance. It was working perfectly until I reinstalled httpd24 and PHP 5.5. Since then, the main page loads perfectly but I cannot access my virtual ...
1
vote
1
answer
1k
views
Install memcached PHP extension on openSUSE 13.2
Is there a standard/supported way to get the memcached extension for PHP installed on openSUSE 13.2?
On CentOS this was a case of yum -y install php-pecl-memcached.
But it doesn't look like the ...
1
vote
1
answer
890
views
Apache processes become stale but won't time out
I'm having an issue with apache2 httpd. The apache is using mpm_prefork and the web application uses php.
I noticed that the machine where the apache runs suddenly drops to 0% cpu usage during the ...
1
vote
1
answer
2k
views
PHP-FPM - problems with the pre-start process
My webserver runs NGINX with PHP-FPM. After (I guess) an update, the service php5-fpm stopped working and refuses to restart/start - even after a reboot. As another webserver does the same updates and ...
1
vote
1
answer
360
views
Ubuntu Server 12.04: upgraded php to 5.4, now sites won't load
I just upgraded php on my Ubuntu Server 12.04 to 5.4 from 5.3, using the ppa:ondrej/php5-oldstable ppa but now my php-powered sites don't load (I just get a downloaded file). I've restarted apache2, ...
1
vote
1
answer
1k
views
how to create multiple sub domain in local host? [closed]
Using nginx and php I need to create multiple sub domain in local host. How i can make it happen?
I am using ubuntu 12.04 andphp5 withnginx as webserver.
i Have tried *.servername.com in my ...
1
vote
1
answer
16k
views
.php files not working with AddHandler - Apache 2.4
I am having an issue with Apache 2.4 configuration with PHP5. I have got this:
<Directory / >
Options +ExecCGI
AddHandler cgi-script .cgi
Action backButton /backButton.cgi
AddHandler ...
1
vote
1
answer
2k
views
Rewrite file extensions in NGiNX
I'm looking to show a file like domain.com/login instead of domain.com/login.php
My NGiNX site config is:
#02API
server {
# listen 80 deferred; # for Linux
# listen 80 accept_filter=httpready; #...
1
vote
1
answer
509
views
PHP MAIL() dsn status
Is there a way to get the DSN status of an email set with postfix, using php mail function or any other library ? I can parse the log for the id and DSN status, but that won't be quite good for the ...
1
vote
4
answers
2k
views
.php file blank - .php5 files works
I have a problem with a server of mine. I've installed virtualmin/webin on it for administration and I have 1 domain on it. DNS management is external. On this domain I only have an html "Under ...
1
vote
1
answer
2k
views
PHP thinks date.timezone isn't set
For some reason, even though I've uncommented the line in php.ini and properly set the value to date.timezone = America/New_York, php refuses to acknowledge it. When I open up phpinfo.php it says
...
1
vote
1
answer
342
views
HA for Resque & Redis
Trying to avoid SPOFs for Resque and Redis. Ultimately the client is going to be PHP via (https://github.com/chrisboulton/php-resque). After going through and finding some workable HA for nginx+php-...
1
vote
1
answer
1k
views
mod_fcgid error after upgrading from PHP5.3 to 5.4
I just made an upgrade from PHP 5.3 to 5.4 via dotdeb.org sources.
After that, I get errors on vhosts with active FastCGI-Application.
[Mon May 20 21:05:15 2013] [warn] [client xxx.xxx.xxx.xxx] (104)...
1
vote
1
answer
2k
views
Error after trying to install php5-mcrypt on Debian Squeeze
I want to install php5-mcrypt, but I get this error after entering a
apt-get install php5-mcrypt
Error:
php5-mcrypt : Hängt ab von: php5-common (= 5.3.3-7+squeeze15) aber 5.3.9-1~dotdeb.2 soll ...
1
vote
1
answer
986
views
CentOS 6.4 PHP code not executing
I'm quite new to Linux so please excuse my ignorance, and accept my apology for what is likely a very lame question.
I have setup a Centos 6.4 server and also installed LAMP, phpmyadmin, mod_ssl and ...
1
vote
2
answers
3k
views
Cannot install php-intl on CentOS
When I run:
yum install php-intl
I get this error:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.as29550.net
* epel: ftp.nluug.nl
* extras: mirror....
1
vote
1
answer
5k
views
Nginx and Nagios passing through FastCGI Handler, 403 Error
I'm currently working on the renewal of my Web plateform and switching from Apache to Nginx.
So I've to test all our administrative and internal applications before doing it.
Well, so far, I didn't ...
1
vote
1
answer
2k
views
Install pecl extension on ubuntu after upgrading to php 5.4
I had php 5.3 installed and upgrade to 5.4 using this PPA https://launchpad.net/~ondrej/+archive/php5 - everything went smoothly.
My old pecl extensions, such as oauth, wern't enabled, so I ...
1
vote
1
answer
724
views
how to set up delegation on IIS 7.5 and PHP (web platform installer)
We are successfully running or corporate Intranet using PHP under IIS 7.5 on Win Server 2008 R2. We used Web Platform Installer to setup PHP. Impersonation worked right from the start but delegation ...
1
vote
2
answers
2k
views
Apache executed only one request and all other requestes wait first to finish
I have a basic install of Apache2 server and PHP5.3 on my local Ubuntu machine.
I created file index.php and put sleep 30 seconds in it
<?php
sleep(30); // script sleep 30s
?>
When i run "...
1
vote
1
answer
1k
views
Downgrade PHP 5.4 to 5.3 on bitnami ubuntu server
I have to downgrade the php version of a bitnami ubuntu image to support some legacy codes. I tried to look for different methods that suggest using apt-get and dpkg to remove the 5.4 and install 5.3 ...
1
vote
1
answer
444
views
PHP `virtual()` with Apache MultiViews not working after upgrade to Ubuntu 12.04
I use PHP's virtual() directive quite a lot on one of my sites, including central elements. This worked fine for the last ~10 years -- but after upgrading (or rather moving, as it is on a new machine) ...
1
vote
1
answer
573
views
Error after installing mysqlnd_ms
I am working on Amazon EC2 using the Amazon Linux AMI which is based on CentOS. I have installed php54 and php54-mysqlnd.
Then I do a sudo pecl install myslqnd_ms. This installs fine. I add the ...
1
vote
2
answers
4k
views
Enabling openssl With PHP/nginx
I'm getting the following error when trying to connect to SMTP + SSL through PHP using nginx + PHP 5,
Could not connect to smtp host 'ssl://smtp.gmail.com' (5) (Unable to find the socket transport "...
1
vote
2
answers
3k
views
Error when install Wordpress with mariadb "Your PHP installation appears to be missing the MySQL extension which is required by WordPress."
rpm -e --nodeps mysql-libs
yum install MariaDB-server
The above command helped me to install mariadb, also installed Wordpress. This was a great help. My problem now is when I reboot the server or ...
1
vote
1
answer
7k
views
PHP-APC is exceeding limit apc.shm_size often
I am implementing the apc on a shared server that currently has 1000 sites (using wordpress, moodle, etc.). I'm Looking for the admin page, and I see "Cache full count" is growing rapidly. I've tried ...
1
vote
2
answers
820
views
Custom php ini files for IIS7
I have a Windows 2008 Web edition server setup with IIS7.5 and PHP 5.4.6 FastCGI installed. I would like to make use of the user INI files as described here:
http://php.net/manual/en/configuration....
1
vote
1
answer
1k
views
Set global handling for PHP scripts in NGINX + PHP-FPM
I have to define fastcgi_pass for every virtual host. How do I define it global-wise?
server {
listen 80;
server_name www.domain.tld;
location / {
root /home/user/www....
1
vote
1
answer
2k
views
Can't start xdebug
I managed to install xdebug and enable it through local php.ini files when needed.
It was working just fine for about a month, but today It doesn't.
If I try to start a debug session with Zend ...
1
vote
3
answers
1k
views
PHP script timed out, or otherwise killed on Apache under CentOS (shared host)
When trying to run a PHP script (CentOS, Apache, PHP 5.2), that may take a long time, it is apparently killed after 45 minutes.
PHP script is invoked from a web browser, and in certain situations, ...
1
vote
1
answer
2k
views
Add module to custom compiled PHP
In CentOS I have a compiled version of PHP but it is missing IMAP module. Is it possible to add that module without re-compiling php?
1
vote
1
answer
1k
views
Apache2 is not parsing PHP files
i have a problem with my server (VPS with debian+apache2+php5).
I have two virtualhosts, one is linked to a ruby webserver and has a PRoxyPass from port 80 to 8080 and the second one is a normal ...
1
vote
2
answers
2k
views
Password management with pg_connect()?
I am new to using postgresql along with php, but something doesn't seem right here. 9/10 examples I've seen using sets the password parameter in plain text.
For example, here's one sample
$con = ...
1
vote
1
answer
2k
views
phpMyAdmin doesn't find mbstring eventhough it's installed [closed]
I'm running Kloxo at the moment and have updated phpMyAdmin to the latest version as well as php and mysql, however, phpMyAdmin seems to complain about mbstring not being installed, eventhough it is. ...
1
vote
1
answer
162
views
Best way to Install Lampp setup on Ubuntu
What is the best way to install a lampp setup in ubuntu? I know to install using xampp. Is it ok for using as a central development server?
Or if am installing individually what are the packages i ...
1
vote
1
answer
4k
views
I want to install php 5.3.9 in ubuntu 12.04 via apt-get - what repository should I add?
I want to install php 5.3.9 in ubuntu 12.04 via apt-get.
apt-cache show php5-fpm
only lists 5.3.10-1ubuntu3.1 and 5.3.10-1ubuntu3. There is a critical bug in 5.3.10 ( https://bugs.php.net/bug.php?...
1
vote
2
answers
2k
views
mod_vhost_alias + suEXEC: auto selecting uid/gid
I'm trying to configure Debian 6.0.4 for massive shared hosting with PHP5.
Packages apache2-mpm-worker libapache2-mod-fcgid apache2-suexec are installed.
I successfully loaded mod_vhost_alias and ...
1
vote
3
answers
1k
views
APC minimal shm size
What is the minimal amount of shm Space APC needs to operate properly? I'm currently running a Wordpress blog on a VPS based on virtuozzo and I can't set kernel shm to anything above 32 mb. Is there ...
1
vote
1
answer
2k
views
Enable PHP-ZTS and MPM Workers in Apache to lower memory footprint, but still keep MySQL?
My question is quite similar to this one in that I'm trying to reduce the memory footprint of my website on a somewhat meager shared hosting solution. I'm going to be playing around with my own ...
1
vote
1
answer
399
views
PHP 5.3.8 doesn't load module xapian.so
I have web server on fedora 16 nginx + php-fpm (PHP 5.3.8),all installed with yum from standard repo. I'm trying to use xapian.so module so I istalled php-xapian and added extension=xapian.so to my ...
1
vote
1
answer
2k
views
Unable to load dynamic libraries (pcre,spl,gettaxt,mhash,snmp,sockets,tokenizer)
I'm a bit new to freeBSD and trying to set up a webserver.
I've managed to get phpmyadmin installed and phpinfo(); works fine.
But when i typ in 'php -v' i get some warnings:
PHP Warning: PHP ...
1
vote
1
answer
372
views
Running PHP 4 and PHP 5 at the same time on the same site using Apache on Windows
Most results I get on google is how to get both versions running simultaneously on the same server but at different URLS but that's not what I want.
I'd like, for example, to get http://localhost to ...
1
vote
1
answer
2k
views
php session_start() permisson denied
PHP Notice: session_start(): ps_files_cleanup_dir:
opendir(/var/lib/php5) failed: Permission denied
I am getting it in my apache error log
/var/lib/php5 owner and group is root, so is it fine to ...
1
vote
4
answers
6k
views
Only allow access to /directory from a specific domain?
I have multiple domains pointing to the same site.
Example:
I have www.admin-domain.com pointing to /var/www
I have www.test.com pointing to /var/www/test directory and this is OK.
Example:
www....
1
vote
1
answer
2k
views
Zend Optimizer not compatible with PHP+APC+Drupal. Can I disable it for Drupal-run domains?
I use the following set up:
PHP Version 5.2.17
Apache/2
Zend Optimizer v3.3.3
Drupal 7.8
As far as I read other articles and questions, Zend Optimizer doesn't do any good neither for PHP5 nor ...
1
vote
1
answer
242
views
Centos 5.6 switching/migration from apache to lighttpd
I'm currently running Apache 2 with PHP 5.1.6 running as mod_php on a Centos 5.6 box.
I use .htaccess for mostly redirection.
I already have latest APC running apc.so.
I also have MySQL, etc.
Until ...
1
vote
1
answer
3k
views
PHP files not getting parsed? [duplicate]
Possible Duplicate:
Problem with php and apache
I have php 5.1.6 running on my CentOS 5 server running Apache 2.2.3
when i use command php -v it says
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:...
1
vote
1
answer
65
views
Apache/PHP Configuration question - Where else can info.php be disabled besides php.ini?
Sorry for the bone head Q. but I rarely need to reinstall my server :)
I wish to enable phpinfo() function. My php.ini config file has the disable_functions directive blank--which I understand is the ...
1
vote
1
answer
1k
views
NGINX + PHP5-FPM segfaults under high load!
I have been dealing with this problem all day and it is driving me insane. All Google results and searches here lead to dead ends. I hope someone can work with me to provide a solution for myself ...