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

0
votes
0answers
5 views

PhPVirtualBox - Control Remote Servers - Central Management

Not sure if this is possible, all my google results come up with RDP stuff, or just basic, how to install PhPVirtualBox. I was wondering If I can set up a Central PhPVirtualBox and connect it to ...
0
votes
2answers
1k views

How find and install PHP 5.3.10 or later on CentOS 6.5?

When I check yum list php it only shows 5.3.3 which is older than 5.3.10. How do I get and install the newer PHP? (Using CentOS 6.5)
1
vote
1answer
44 views

Disk I/O and load average peaks once every hour

We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time. ...
1
vote
2answers
9k views

Apache 2 and PHP 5 not working

I have a test.php file in the web server directory with php phpinfo(); content. When I try to execute php test.php at a shell then it executes correctly. But when I try to open the web page in a ...
2
votes
2answers
9k views

What is the best place to put php files above server root directory?

I am running a web application and I want to move a directory containing my php files above the server root directory. Where would be the best place to put them? On my web server I rent from ...
-1
votes
0answers
24 views

unable to insert a row in mysql [migrated]

I am using LAMP server and a PHP script to connect to an existing Mysql server (local server i.e. host=localhost:3036). I have created a table called depositor using $sql2="create table depositor(...
0
votes
1answer
19 views

getting started with lamp server [on hold]

I have successfully installed LAMP server on my machine running Ubuntu 14.10. Now, there is a location /var/www/html/. In this directory, I am supposed to place the HTML files and php files that I ...
1
vote
2answers
331 views

httpd (apache2) server doesn't parse *.php files but displays them as text with installed php-module on arch-linux

I'm trying to set up my httpd (apache2) server on archlinux. Everything works now except for the parsing of my php files. I followed this article: https://wiki.archlinux.org/index.php/...
2
votes
2answers
3k views

How to set up file permissions/ownership for FTP/Apache/PHP on CentOS

I have basic understanding of chmod and CentOS file permissions. 777 stands for 111111111 and rwx for each root, group, user, etc. What I can't get my head around is setting up Apache, FTP and PHP to ...
-3
votes
0answers
17 views

PHP application mysql giving error

Got the below error while implementing this. I have done every thing which is mentioned in the document, but still I get this error, previous implementation is working fine. The following error ...
0
votes
1answer
1k views

PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'

I am running PHP 5.6 on Linux. When I try to load a PHP page, I'm getting the following PHP error. PHP Startup: Unable to load dynamic library /usr/lib64/php/modules/php_mysql.so' When I look ...
0
votes
0answers
285 views

How to Install PHP 5.3.7 On Godaddy Linux VPS using SSH [closed]

I have bought a New VPS from Godaddy. They supported PHP 5.3.5 earlier and then 5.4.34 but I need to use PHP 5.3.7 on my VPS.
0
votes
1answer
3k 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 ...
0
votes
0answers
62 views

How to set user creation limit on vtiger CRM?

I have installed vtiger latest version. In the admin panel how to set the user creation limit? I need to set maximum users = 10.
1
vote
2answers
107 views

Apache shows Blank page for PHP

I've installed a fresh version of Centos 7,I'm new to Linux. I installed Apache using yum -y install httpd and i can open the test page and everything is ok with it. after that i installed PHP(5.4....
0
votes
1answer
1k views

Slow DNS resolve from curl/lynx etc

I have a strange issue with DNS resolving: Root of the problem is that I get curl errors: "Error executing HTTP request: name lookup timed out". Tried to ping some sites, all resolved fine (and fast). ...
-2
votes
1answer
2k views

Changing IP address of Apache server using PHP statically

I want to statically assign the IP address of my Arch linux using php. I want to change the IP by using netmask,interface,broadcast,address & gateway. The user puts up the values into a html page. ...
0
votes
1answer
696 views

“Too many arguments to function” error while installing php5-pdo_mysql from ports in FreeBSD [closed]

I'm having a trouble while installing php5-pdo_mysql in my FreeBSD environment. Everytime I trys to do /usr/ports/databases/php5-pdo_mysql make install the console gives me this error: /usr/ports/...
1
vote
1answer
936 views

How can I call a .NET web service from PHP?

The web service could be a SOAP asmx or a WCF Service. Assumption here is that the IIS on Windows is serving the web-service and Apache on Linux with PHP 5.3 consuming it.
0
votes
1answer
2k views

Allow www-data to perform specific commands

I need a PHP script to perform git pull however I am not naive enough to give it permissions on git. I've wrapped git pull in a script which www-data has permissions for, but I'm not sure how to give ...
0
votes
1answer
136 views

Calling php function from /var/www/folder (as www-user), which is located in a file in /var (or any folder) (with root permissions?)

I wrote a script which "walks" through /var/www/xyz and scans folders and more. The folders are all 'user-bound', so the permissions for a single folder there are set to the specific user. Running ...
2
votes
2answers
4k views

Git pull error libcurl.so.3 not found

I have a php script to git pull from my github repository set up in my webservice hook urls like so: <?php echo shell_exec('~/git/usr/bin/git pull 2>&1'); ?> When I open this script ...
2
votes
2answers
112 views

Tracking from httpd instance to PHP script when PHP is a module

I'm trying to figure out exactly what's going on that kicks CPU usage in random httpd workers so high but I'm having a little hard of a time figuring out what PHP page is being requested so that I can ...
2
votes
1answer
4k 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
2answers
2k 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 ...
0
votes
1answer
288 views

Unable to access http service intranet

I'm not sure if this is the right place, if this is the case I will move the question with no problem. I'm setting up a web server for testing Wordpress. Everything works fine if I try to access the ...
0
votes
1answer
6k views

httpd memory usage very high

I host a wordpress site on my server which has 2GB mem, I have used some cache plugin, but when I type ps -eo "%C : %p : %z : %a" | sort -k5 -nr in SSH, I see the httpd memory usage is very high. 15....
2
votes
3answers
1k views

Cannot Access Webpage from Outside LAN

I have a CentOS 6.0 web server running httpd, mysql, php, and Joomla 2.5. It has a static, public IP address. I can access the webpage (which is the Joomla management console) by IP address perfectly ...
3
votes
1answer
137 views

Where to securely place files needed by PHP in Linux filesystem (according to FHS)

I have a PHP script running on my LAMP server that requires certain files in order to produce HTML content. The script is publicly accessible (i.e. http://example.com/script.php) but the files ...
1
vote
2answers
2k views

How can I get crontab to use a different PHP installation location?

I have a MAMP setup which runs PHP 5.3.5 on my Mac OS X 10.5 computer. I am trying to install a crontab that executes a PHP script, which is located on my MAMP server. I can only get the crontab to ...
0
votes
2answers
679 views

suphp directory not owned by user

I have an odd problem with suphp. I have logged in as tom and added some php to a directory in my web server. Now I'm getting this error: Directory /home/.../web/public_html is not owned by tom I ...
4
votes
1answer
1k views

suexec with chrooted environment

I'm trying to get a chrooted Apache environment working running mod_fcgid with suexec. Looking at suexec log inside jail, the wrapper scripts are being executed with no problems, however, when I look ...
1
vote
1answer
1k 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 ...
0
votes
0answers
17 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
75 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
1answer
36 views

Shell to do action, when someone visited my webpage [closed]

Can someone make a script that beeps or does some action when a user visits my webpage (apache2)?
0
votes
0answers
38 views

Problems / Issues with Importing osm-file inside Nominatim

Getting the following error while importing OSM data during the installation of Nominatim on Centos 6.6 cPanel server: ./utils/setup.php --osm-file india-latest.osm.pbf --all --osm2pgsql-cache 18000 ...
0
votes
0answers
184 views

find returns 'No such file or directory'

Continuously getting so many warnings yet my command is working fine. find: `api/PlayersImpl0.smali': No such file or directory find: `api/PlayersImpl1.smali': No such file or directory find: `api/...
0
votes
0answers
38 views

Enable modules in PHP 5 without recompiling

I am trying to install a CMS which requires the mbstring module for PHP. According to that page, the module is installed but not activated by default. The article links to an install page which "...
1
vote
1answer
19 views

PHP does not use MySQL default sockets

I am having a hard time understanding why PHP cannot connect with localhost as a host. I can connect by doing: mysql -uroot -p And also, through Sequel Pro I can connect with localhost as a host. ...
4
votes
1answer
2k 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 ...
0
votes
0answers
14 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 : ...
1
vote
0answers
26 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
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
1answer
1k views

PECL memcached installation gets error

I installed Zend Server 6 (debian). Also installed several packages: apt-get install gcc apt-get install g++ apt-get install libncurses5-dev apt-get install zlib1g apt-get install zlib1g-dev apt-...
2
votes
0answers
156 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 ...
0
votes
1answer
4k views

How to install Owncloud on CentOS 6.5

I wanted to install Owncloud on my VPS running CentOS 6.5. I followed the instructions on the official owncloud website but when I run the command yum install owncloud it says Error: Package: ...
0
votes
1answer
51 views

How can I display \n as new lines in multitail?

I am using multitail to monitor logs while I program. I really like this tool. However, it is hard to use it to view object output in a php error log because new line characters \n are not processed. ...
0
votes
0answers
529 views

How to stop mail with PHP error messages to root?

Today, my Centos has a problem. When I type df -h in SSH I get: /dev/vzfs 61G 61G 0.3G 99% / The disk is full. I found that /var/spool/mail/root is nearly 53GB. tail /var/spool/mail/root -n 50 ...
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 ...