PHP is a widely-used, general-purpose scripting language that is especially suited for web development.

learn more… | top users | synonyms

0
votes
0answers
9 views

How find the reason why .so library does not included in ZendServer CE

I've installed phalcon.so library. I compiled it (http://phalconphp.com/en/download) and moved to /usr/local/zend/lib/php_extensions It works perfect until I update Zend Server from 5 to 6. After ...
2
votes
1answer
662 views

Installing PHP 5.3.3-24 on CentOS 6.5 (Final)

I require a slightly older version of PHP for my server because I need to be able to exploit a CVE (CVE-2006-7243) that was patched in the newer versions. NOTE: This is a legitimate use case where ...
1
vote
2answers
720 views

I get a “command not found” error, though the script file is shown by “ls”

I want to run yii console commands in shell. I run protected/yiic in the console, yet it fails, yielding -bash: yiic: command not found What's the problem? See the shell commands and responses I ...
1
vote
1answer
54 views

How to install mutliple PHP instances and configure for Apache

I need to upgrade my PHP installation on CentOS 6 from 5.3 to 5.5. While I have a couple of webprojects running I like first to install the new PHP in parallel and switch back to the old one if ...
0
votes
1answer
35 views

PHP on NetBeans IDE

I have installed netbeans on my laptop running elementary os luna. I installed netbeans with this command: sudo apt-get install netbeans After few minutes the software was successfully installed in ...
0
votes
0answers
87 views

Error on building and installing memcached php extension

I have problems to run make on the latest memcached PHP extension, on CentOS 6.5: pecl download memcached tar zxvf memcached-2.2.0.tgz cd memcached-2.2.0/ phpize ./configure ...
0
votes
1answer
394 views

Centos - executing a bash script from PHP

I have 3 scripts (I have removed the help_page function from the networkstats.sh script when I pasted here to save some space): api3.php <?php output = shell_exec('/bin/bash ...
0
votes
1answer
34 views

similar content Project access from a single file [closed]

I create three different project which are access different three different database. Except that all project files are same. so, I want that in a project folder all project files and in other two ...
2
votes
1answer
134 views

mdadm inconsistencies when run programmatically

Update #1: I just gave an extra layer of testing, writing a shell script (.sh, #!/bin/bash) and a php script to be executed by php's cli. Bash works. It seems that it's not the Apache's HTTP ...
0
votes
0answers
78 views

Why does “Connection Failed: 2002” display randomly on my PHP/MySQL website?

I'm running CentOS 6 with Apache/PHP/MySQL. PS. I'm sort of a novice at Linux, but I did my best to gather info before coming here. I'm now a bit stuck. I recently upgraded PHP to version 5.5.12. I ...
3
votes
2answers
361 views

Updating PHP to Gaurd Against Mayhem Malware

How will making sure my PHP version is updated thwart the Mayhem Malware? Will updating PHP on my Ubuntu server prevent the Mayhem Malware from being able to make it onto the server, prevent it from ...
2
votes
1answer
880 views

I cant save files in /var/www/html

I'm running Centos 6.5 and I'm having problems saving my files to /var/www/html. The folder currently belongs to root and I have gone through everything from SELinux to configuration procedures, but ...
2
votes
1answer
830 views

Howto fix my PHP install on FreeBSD using pkg

I've been messing around with pkg install, installing / removing both php5-5.4.29 and php55-5.5.13. But when I run php from the command line, it will give me an error like this: PHP Warning: PHP ...
1
vote
1answer
267 views

install php5-fpm on Debian Squeeze

I tried in many ways to install php5-fpm in om Debian squeeze, but couldn't. I was wondering if I have to upgrade php5.3.3 to higher version because it doesn't seem to work on lower than php5.4 I ...
0
votes
1answer
42 views

How to live a Pleskless life? [closed]

I have always used Linux with Plesk when hosting web projects. It's easy to host multiple websites and setup email accounts but I realized it's overkill sometimes. I think it uses a lot of resources ...
0
votes
1answer
187 views

installing php-mysql on rhel6

I have rhel6 running on my server and installed mysql from Red Hat Enterprise Linux 6 / Oracle Linux 6 (x86, 64-bit), RPM Bundle. Now I want to host a php site on that machine. And when I run yum ...
0
votes
1answer
117 views

How to reconfigure PHP

We have a new linux server CentOS 6.5 with Plesk. Default PHP is 5.3.3, I have installed PHP5.4 & 5.5 on the server. I am a beginner on linux. Actually, I don't know how to install software on ...
2
votes
2answers
13k views

PHP 5.5.13 on CentOS 6.5 with yum

I've got problems with installing PHP 5.5.13 (last stable build) on a CentOS 6.5 (64 bit) machine, through yum. Can somebody guide me through this a little bit? It is not a part of the CentOS, EPEL ...
0
votes
1answer
333 views

how to skip install libphp5.so when buidling php?

I'm trying configure and install older php 5.3 version on my archlinux, and I don't want it to copy libphp5.so to /usr/lib/httpd/modules/ because there's an existing version (newer) there. ...
0
votes
2answers
647 views

Running system bash command in PHP script - syntax error: unexpected T_LNUMBER

If anyone can shed some light on my issue that'd be great. Please don't down-vote me; I'm new to the language and the OS itself and I'm trying my best to research before asking questions, so any ...
1
vote
0answers
71 views

How to debug a semop failure?

Using a 2.6.30-gentoo-r4 Linux a very complex system of php code is executed (with 4.4.9-pl0-gentoo and 5.2.10-pl0-gentoo), which occasionally runs into a semaphore blocking problem. The call to the ...
0
votes
1answer
92 views

PHPStorm Only runs on Gnome or KDE

Does anyone know why it is so? I was using unity... then i switched to LXDE and it wont run. I checked the requirements and it turned out that it requires either GNOME or KDE. So what exactly is it ...
1
vote
0answers
111 views

php5-curl installation aborts due to ucf failing on /etc/php5/mods-available/curl.ini

I've screwed my raspbian (debian) installation. To fix this I'm going through reinstalling every single packacke. This is tiresome (or rather: slow) but works in general. Where I'm absolutely stuck ...
2
votes
1answer
233 views

how to use html tidy on Nginx

I just installed HTML tidy using the following command line: sudo apt-get install php5-tidy yet I have no idea how to use it because I thought it is an auto process that can do things by itself ...
1
vote
0answers
722 views

Apache 2.2, PHP 5.3 and MySQLl 5.5 on Linux Mint 17?

Our stack consists of Apache 2.2, PHP 5.3 and MySQL 5.5. I've installed Linux Mint 17 Giana. If I install apache2 via apt, it will install Apache 2.4 which is not required for me. Is there any way ...
0
votes
0answers
538 views

phpmyadmin doesn't work after installing php5-mysqlnd

I am currently running into some problems with phpMyAdmin. I set everything up correctly and made sure everything worked. Then later after some developing on some pages I noticed I couldn't execute ...
2
votes
0answers
82 views

PHP exec and amixer

I'm trying to make php lower the dB level of amixer using exec, but it seems like php isn't able to perform the task which requires sudo-access. What should be the best way to solve this? I tried: ...
4
votes
3answers
250 views

File permissions

I have a PHP script running which makes symlinks. To confirm which user it is: file_put_contents("testFile", "test"); $user = fileowner("testFile"); unlink("testFile"); echo "running as user '" . ...
1
vote
1answer
76 views

How to get “apt-get -y upgrade” within a PHP script to function as expected?

Yes, I'm aware of unattended-upgrade, but I don't like that package's limitations. I've got a PHP script that makes the following calls: ... system("/usr/bin/apt-get update"); ...
0
votes
0answers
25 views

Error when adding phtreads support to PHP while following arch wiki

Willing to add phthreads support to PHP, I read this page and began to follow its instructions : https://wiki.archlinux.org/index.php/PHP_pthreads_extension But while the makepkg -s step, compilation ...
0
votes
1answer
2k views

mcrypt, EPEL and CentOS 6.4

I am having issues installing php-mcrypt. I am not an administrator of any level. I have performed the following. Installed EPEL Installed REMI Configured EPEL Updated YUM Cleaned YUM Installed ...
1
vote
0answers
2k views

mysqld dead but pid file exists

Webserver was running fine for weeks then suddenly: I can access, but I am unable to log into Webmin I can access Magento, a php-based storefront application, but I am no longer able to log in and ...
0
votes
0answers
326 views

PHP mail() and Debian Wheezy Not Working

I am currently running my on debian wheezy with php5 installed. I was trying use the mail() function, and I realised that I will require a MTA/exim installed before it will be possible because the ...
0
votes
1answer
84 views

php-mysql not working

I'm running on RHEL6. I have installed php and php-mysql. <?php phpinfo(); ?> is working perfectly. But I can't connect to MySQL is there a way to confirm that php-mysql is not working on my ...
0
votes
1answer
972 views

PHP on centos 6 not working

I have installed PHP, MySQL, Apache on CentOS 6, now I have restarted the Apache and mysql, to test PHP i have created a index.php on /var/www/html/test/ now once i go to localhost/test/index.php then ...
0
votes
1answer
2k views

yum install PHP Error Summary

so I'm following this tutorial to install php5 in a red hat 6.5 box and I have only type one command and is this one below, I just wantend to install the php-gd module.(testing..) when I try this: ...
2
votes
0answers
99 views

Bus Error when run php-cgi

This is what I got when I run command "strace /usr/bin/php-cgi -v" execve("/usr/bin/php-cgi", ["/usr/bin/php-cgi", "-v"], [/* 39 vars */]) = 0 brk(0) = 0x11e4000 ...
2
votes
1answer
1k views

Executing PHP with CronJobs in CentOS 6.4 not working?

So I've spent around 2-3 hours now and some times researching, I found several of the same responses online but none seem to work! I'm trying to execute a PHP script every minute (as a test), but it ...
1
vote
0answers
45 views

Storing Web Session on S3 bucket

I have a cluster of web servers which store web session related information in a NFS shared directory. We are trying to implement an AWS version of our product where we could use S3 bucket to store ...
2
votes
2answers
1k views

High Idle CPU / Low CPU Load average

After removing APC (alternative php cache), I noticed that there are less pagination access and less dirty pages but in the same time: High idle CPU Very low CPU load (relatively to the time before ...
2
votes
1answer
478 views

Downgrade PHP 5.4 -> 5.3 on CentOS 5.10 [closed]

Due to being in some dependency hell and some issues with PHP 5.4, we downgraded from PHP 5.4 -> 5.3. Since doing so, a few of our web apps are acting strange. E.g: # php index.php Results in: ...
1
vote
1answer
204 views

How would I run Django and LAMP on different subdomains, but on the same Apache server?

I am currently working on a development project where I need to run four different PHP programs (both with MySQL backends) and one Django project. Current Plan: XenForo (forums.domain.com) [PHP ...
1
vote
0answers
99 views

phpcurl not able to install on terminal

I am not able to install packages php and curl. But its gives dependencies error, please check below curl : Depends: libcurl3 (= 7.29.0-1ubuntu3.4) but 7.32.0-1ubuntu1 is to be installed ...
1
vote
0answers
400 views

how to resolve yum replace php-common --replace-with=php55w-common error? [closed]

How to resolve yum replace php-common --replace-with=php55w-common error on CentOS 6.5? root@server [~]# yum replace php-common --replace-with=php55w-common Loaded plugins: fastestmirror, replace, ...
1
vote
2answers
122 views

wget - corrupted directories

I am using wget to create an HTML mirror of a php templated site on localhost. I am encountering a problem with some directories being mirrored as extensionless documents. What could be causing this ...
0
votes
1answer
118 views

understanding LAMP: linux apache mysql and php [closed]

I have multiple questions and I am confused. Few months back, I was installing a software locally ~/bin. Tools got installed successfully and running fine till date. In installation it automatically ...
0
votes
0answers
41 views

Why does SPACE sometimes not work with more (or less)

Usually with |more I press space to get another screenful. But with some commands space just does nothing, and I need to actually keep doing SPACE-ENTER to scroll forward a screen at a time. Both more ...
1
vote
2answers
424 views

shell script to find the combination of the array elements

I have a shell script in which I have defined an array. The array contains more than 2 elements. I need to find the combination of all the elements in my array. Suppose, if my array has the elements, ...
0
votes
2answers
194 views

Make Ubuntu acknowledge that a custom built version of PHP is installed

I'm trying to install PHP from source code on my Ubuntu 12.04 VPS. I'm installing PHP like this: Download the latest version from the php.net website. Configure it using the parameters below. ...
0
votes
2answers
904 views

WordPress installation with Docker

I have to migrate my WordPress installation to my own server in order to get SSL working properly. (It was originally on GoDaddy shared hosting, which doesn't allow for external SSL cert ...