PHP is a widely-used, general-purpose scripting language that is especially suited for web development. Use this tag when you are dealing with a PHP script, installing PHP, or configuring a PHP installation.

learn more… | top users | synonyms

4
votes
0answers
119 views

Using a NFS for gcc, Apache, PHP, MySQL, glibc

I have 7 SLES VM. I am compiling always the newest version of gcc and all dependencies. Apache and all dependencies. PHP and all dependencies. MySQL and all dependencies. glibc and all dependencies. ...
3
votes
0answers
102 views

php5-embed does not load extensions

While setting up php on my Ubuntu server (using php5-embed under uwsgi/nginx), I noticed curl.so was not being loaded. The file /etc/php5/embed/conf.d/20-curl.ini exists and contains extension=curl.so....
2
votes
0answers
173 views

munin phpfpm plugin

I have setup PHP-FPM plugin All graphs works except three PHP5-FPM Average Process Size PHP5-FPM Memory Usage PHP5-FPM Processes setup /etc/munin/plugin-conf.d/munin-node [phpfpm_*] env.url ...
2
votes
0answers
50 views

Fatal error: Call to undefined function gzopen() in /etc/apache2/htdocs/sites/all/modules/smart_ip/includes/smart_ip.utility.inc on line 454

I'm using centos 6.7, http 2.4.17, mysql 5.1, php 5.5.30. web page is working fine but at bottom it is giving below error. Fatal error: Call to undefined function gzopen() in /etc/apache2/htdocs/...
2
votes
0answers
47 views

Unable to insert records on sqlite on a Linux environment

I tested a simple Php program using Sqlite3 instead of mySQL on my own computer and it works fine. What the program does is simple insert of record into a certain table. Now, when I try to do that on ...
2
votes
0answers
335 views

Nginx on Debian 8 dev setup. PHP via PHP FPM not working

UPDATE: Ok, I can now happily say that what you see below is the recipe for a happily working automated PHP and Nginx dev setup (with automatic domains) and all problems I had are now solved. I ...
2
votes
0answers
462 views

File uploads and max_execution_time and request_terminate_timeout

In case of HTTP file uploads (nginx+php5-fpm) does max_execution_time (in /etc/php5/fpm/php.ini) or request_terminate_timeout (in /etc/php5/fpm/pool.d/www.conf) also include the time the file took to ...
2
votes
0answers
294 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: ...
2
votes
0answers
3k views

Can't Install ImageMagick on Centos using Yum

I am trying to install ImageMagick on my dedicated-virtual Centos server for use with PHP. I first ran the following commands successfully: # yum install gcc php-devel php-pear # yum install ...
2
votes
0answers
299 views

How do I install PHP5.4.16 on Debian Wheezy?

I used to be able to install php-5fpm=5.4.16-1~dotdeb.1, but it seems that this package is no longer available from the latest dotdeb packages. Here are the steps I tried. Append the following two ...
2
votes
0answers
1k views

Nginx Owncloud 4 produces “No input file specified.”

I'm trying to setup an Owncloud 4 instance with nginx as a webserver. The host device is a Raspberry Pi with preinstalled Debian 6. When I try to open the URL to the Owncloud installation in a browser,...
2
votes
0answers
2k views

MySQL socket and PHP (and other languages)

Background info I'm currently running CentOS (or Red Hat?). uname -a gives (I edited out my domain name) Linux XXXXXXXXX.com 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 ...
1
vote
0answers
26 views

nginx proxy - 502 bad gateway

First of all let me tell you that I am not an expert on web-servers and things like that. I'm trying to set-up a cloud system on raspi following this link: RasPi Owncloud However, when I try to ...
1
vote
0answers
22 views

download file/backup from remote server to desktop without SSH or SCP?

Issue Background 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 ...
1
vote
0answers
21 views

PHP running as root on Apache2 running as daemon

On one of my servers, Apache2 is running as daemon user: [root@sbecby07 ~]# ps -ef | grep httpd root 1114 29432 0 10:13 pts/2 00:00:00 grep httpd root 29773 1 0 09:03 ? 00:00:...
1
vote
0answers
15 views

Apache2 uncaught Exception 500 error

I have installed Apache2 on my Debian server with PHP and MariaDB. I use PDO to connect to my MariaDB database. But whenever I get an exception but don't try-catch it, I get an 500 server error. Is ...
1
vote
0answers
33 views

Setup vhost for subdomain

I am new to Linux and vhost, so I am sorry in advance if this question is stupid :D. I am trying to make vhost, but it is kinda semi working. I am able to run the index.php and load home page, but ...
1
vote
0answers
266 views

Permissions on nginx log files

I have a PHP/nginx environment on OS X which is deployed to an Ubuntu server. On OS X, nginx is set up with Homebrew, thus my user ("joe") owns the files, whereas on Ubuntu nginx is installed with ...
1
vote
0answers
71 views

Apache, can't link to Home directory, Alias does not work

I am trying to make a folder in which I can build websites (using php). I have switched from a Windows system where I was using Uniserver (http://www.uniformserver.com/) which is a setup with MySQL, ...
1
vote
0answers
166 views

Purge PHPVirtualbox to start over - has persistent settings/files somewhere

So I am diagnosing an error in PhpVirtualBox related to the console. My Vbox starts and gets to login screen then when I try to console in I get Disconnect reason: E: TCP: SECURITY_ERROR Error #2048 ...
1
vote
0answers
155 views

Opcache and shared memory issue

I installed zend_opcache on my server box , but I can not increase opcache.memory_consumption over 1600 . (example : 2048) . after increase following error occur in server : Fatal Error Fatal Error ...
1
vote
0answers
134 views

nohup is not working when called from root folder

When I execute the nohup command from the same folder it's working fine (server.php is used to listen to a port 7070) root@servername:/var/www/html/admin# nohup php server.php & [4] 2803 root@...
1
vote
0answers
167 views

Install php apache module from source in CentOS 6.6

I tried running yum install php on my centos box however it kept installing an older version. Therefore I installed apache 2.4 and php 5.4 from source. However, I'm not sure how to install the ...
1
vote
0answers
149 views

Correct/Efficient/Reliable way to import log file entries to a MySQL database?

I'd like to be able to query our server access log files to identify abuse patterns. Log files really aren't very queryable, and it would be fairly easy to do what I wanted if each hit was a row in a ...
1
vote
0answers
300 views

Can't run php cli at webuser but will run as root

I am running a Magento application on a Nginx server. nginx + php-fpm running as webuser:www There are some function in the shell directory of Magento which run fine as root and the import run fine ...
1
vote
0answers
127 views

nginx serves info.php but doesnt serves index.php

info.php with basic phpinfo() is served when I enter info.php in the url, however index.php is not being served. I tweaked around some changes reading different answers on stackexchange `try_files $...
1
vote
0answers
158 views

CodeIgniter On LAMP not loading database library

I have installed LAMP TURNKEY Debianf Wheezy I unzipped codeigniter into /var/www/ It worked fine. But If I autoload or load any controller that uses library database it throws a 500 error. The ...
1
vote
0answers
256 views

PHP script can't read CLI arguments when extra extensions are enabled in php.ini

I hope that I'm posting in the right StackExchange. I am facing a very strange problem with PHP CLI. I'm using Symfony Framework and I can't use Symfony's commands properly when I add extensions in /...
1
vote
0answers
150 views

Start glassfish in LINUX server remotely

I want to start glassfish on a server running LINUX, the problem is that my service provider does not grant access to ssh connections nor any other helpful tool to run asadmin start-domain I have ...
1
vote
0answers
505 views

Redirect loop with Nginx as reverse proxy and Yii

I've been reading another similar issues and changing some things in my Nginx configuration, but no one worked :/ When I'm trying to access to a specific page at my site, it leads me to a "redirect ...
1
vote
0answers
389 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 ...
1
vote
0answers
217 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 ...
1
vote
0answers
979 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 ...
1
vote
0answers
5k 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 ...
1
vote
0answers
127 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 ...
1
vote
0answers
3k views

Reading apache error logs from php

I have apache2 logs at :/var/log/apache2/error.log which has permission: -rw-r----- 1 root adm 127140 Mar 20 12:54 /var/log/apache2/error.log for the sake of accessing from php I changed the ...
1
vote
0answers
3k views

How to install PHP 5.2.4 in CentOS release 6.5 (Final)?

Folks I need to install PHP 5.2.4 in CentOS release 6.5 (Final). My souces list are: # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of ...
1
vote
0answers
610 views

Compiling PHP-FFMPEG Extension

cd ffmpeg-php* phpize ./configure --with-ffmpeg=/usr/local/cpffmpeg make Then I end up with the following issues on my make: ... ... ... /usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: (...
1
vote
0answers
483 views

Debian - Apache 2.2 & mod_php - memory usage

I have a memory problem with my servers (Debian 6.0) where is installed Apache httpd 2.2, mod_php and APC. Actually it seems that httpd allocate all available memory (4GB) when is waiting too much ...
1
vote
0answers
220 views

/etc/php.ini not being read on fastcgi?

On my DV from MediaTemple running Centos 5.8 I installed APC. I then added extension = "apc.so" to /etc/php.ini so APC will be enabled for all existing and future sites on the server. When I checked ...
1
vote
0answers
168 views

Unmanaged VPS bought today. Sendmail not functioning correctly

I purchased an unmanaged VPS today. I moved my website on over, and when I try to send an email. It returns a blank page. Not to mention I had to install PHP myself. Apache was there, for some reason, ...
1
vote
0answers
400 views

Debian: Upgraded to php 5.3 and lost phpcli, php-pear, etc

I upgraded to PHP5.3 using this tutorial: http://www.debiantutorials.com/how-to-install-upgrade-to-php-5-3-on-debian-lenny/ It removed the following packages: Removing php-pear ... Removing php5-...
0
votes
0answers
16 views

ffmpeg-php is showing in phpinfo but not working

Php info result ffmpeg-php version 0.7.0 ffmpeg-php built on Jul 13 2016 22:27:57 ffmpeg-php gd support enabled ffmpeg libavcodec version Lavc57.50.100 ffmpeg libavcodec license nonfree and ...
0
votes
0answers
16 views

not able to install ffmpeg php

I have installed this ffmpeg in CentOS server using ffmpeg auto installer version N-80962-g70d418c. After that I downloaded ffmpeg-php-0.6.2 and tried to configure and I got this error: configure:...
0
votes
0answers
13 views

Unable to Authenticate PhPVirtualBox Remote host - Firewall off - Auth Off

I am trying to get the most very basic setup running that I can build upon for controlling a remote Virtualbox installation. The setup : Server A : 192.168.1.10 Oracle VM VirtualBox web service ...
0
votes
0answers
26 views

Magento can't send mails using postfix on ubuntu

For some reason mail() function fails when we try to send emails, I debugged the Magento base code and I found that it generates a call to mail function like this: $result = mail('test@test.net', 'My ...
0
votes
0answers
115 views

Mcrypt install dependencies issue

I'm attempting to install php-mcrypt on a system that I have been building as a webserver. I know its an old outdated software but its necessary for the app I'm installing. I believe the issue is due ...
0
votes
0answers
30 views

PhPVirtualBox Fails to import VM - SOAPFault

I am trying to import previously existing VM's into PhPVirutalBox. The installation of PHPVirtBox goes fine. I can create a VM's in the VM root @ /srv/Virtualbox, but I can't seem to add VM's. Note : ...
0
votes
0answers
9 views

Send new login & logout logs to a database

I want to know how to send new login and logout logs to a database. I know that last command outputs the "lasts" login info. But, I found the following problems? How to filter to only get new logs? ...
0
votes
0answers
22 views

LAMP server Installation - httpd, mysql are 'unrecognized services'

I recently installed Bitnami LAMP server to have apache, mysql and php on my server with redhat 6.7. The installation was fine, I can see httpd and mysql processes; even the wget from localhost ...