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.

learn more… | top users | synonyms

4
votes
4answers
5k views

PHP configure not finding LDAP header libraries

I installed the LDAP development headers: apt-get install libldb-dev This added a few ldap headers: root@crunchbang:/usr/include# ls -la ldap* -rw-r--r-- 1 root root 9466 Apr 23 2013 ldap_cdefs.h ...
1
vote
2answers
79 views

Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)?

I'm currently working on a web hosting management panel for running PHP websites (like Plesk or cPanel). I was researching the best possible ways of running PHP with Apache. mod_php is out of the ...
0
votes
0answers
21 views

Uploadprogress installed but progress bar not working

I have video hosting script, which was working well on my old server, bit now in new server i have installed Virtualmin as control panel. Also there is Lighttdp installed for video streaming which is ...
-1
votes
0answers
103 views

Fatal error: Call to undefined function simplexml_load_file() on Puphpet

I have just booted up a new VM using Puphpet, VirtualBox(5.0.14) and Vagrant(1.8.1). I am running on Ubuntu 14.04 with PHP 5.6.2 and am getting this error: Fatal error: Call to undefined function ...
2
votes
0answers
99 views

ownCloud fails in reverse proxy config

My setup is that ownCloud runs on an internal server at 192.168.200.1. At 43.23.104.153 there is a public apache with mod_proxy that forwards the requests to the internal server: ProxyPass /edward ...
1
vote
0answers
18 views

how to monitor client bandwidth in saas app?

I am building a SaaS which allows customers there own space. They get a subdomain but they can also add their own custom domain by setting their CNAME to my server. The subdomains and custom domains ...
0
votes
0answers
27 views

Unrecognized access to cgi-bin with error message 'script not found or unable to stat' on Apache

I checked my Apache 2.4 error.log and found some unrecognized access on my server, which is a Windows platform. Here are those error log, the IP 31.184.195.114 is not belongs to anyone I know. ...
0
votes
0answers
27 views

Can't modify $_SESSION Unknown: write failed: No space left on device (28) in Unknown on line 0

When I try to assign a value of $_SESSION $_SESSION['whatever'] = "test"; I get Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 There is enough space on device, ...
0
votes
0answers
13 views

virtualmin 403 forbidden error

i have installed virtualmin, now i am trying to install clipbucket. now when ever i am trying to open domain, it gives me forbidden 404 /. error. I have changed the permission to folder, also i have ...
0
votes
1answer
67 views

Codeigniter: website have too many redirects

I have developed a webportal in codeigniter framework,but when i try to host in a shared hosting server i will get this error. wwww.abc.com redirected you too many times. ERR_TOO_MANY_REDIRECTS ...
0
votes
3answers
2k views

php upload_max_filesize ignored - unable to upload 5gb file

I'm unable to upload files larger than roughly 2gb. The max upload/post values were previously set to 2500MB so I thought that was the problem. First, # php --version PHP 5.3.3 (cli) I set ...
0
votes
0answers
18 views

How to manage high traffic on news portal(cache)? [duplicate]

I have some questions regarding to my news portal, where I have some issues with high traffic. The issues is: I have daily about 50 k UU, and sometimes I have shots about 20 k UU in one time from ...
0
votes
1answer
2k views

PHP - Centos OpenSSL error

i'm currently having a problem with OpenSSL on my Centos 6.5 Server. it ran perfectly fine until sunday. and i checked the error_log and i saw this error in the log PHP Warning: PHP Startup: ...
3
votes
1answer
5k views

Setting php error_reporting value with a console parameter

In order to test my PHP projects on errors I normally use this command: find ./ -type f -name \*.php -exec php -l '{}' \; | grep -v "No syntax errors detected" I would like to extend the part php ...
2
votes
1answer
71 views

Laravel EC2 Nginx PHP 7 scripts downloaded instead of executed

The php scripts are downloaded on Amazon ec2 server with nginx installed instead of being executed. This is my nginx conf file: user nginx; worker_processes auto; error_log /var/log/nginx/error.log; ...
2
votes
1answer
104 views

Apache spawning enormous number of httpd processes

I am running a CentOS 6.7 machine (16 GB vRAM, 8 vCPUs) with a simple web server setup (Apache/2.2.15, PHP/5.3.3, MySQL/5.1.66), hosting an online shop with a moderate number of page impressions ...
1
vote
0answers
22 views

Vagrant, Apache and FastCGI uses huge cpu

I cannot really grasp why it's so slow. Site loads really slow. And vboxheadless hits more than 100% cpu every request. I use 2048 memory and 1 cpu. Here is activity monitor and top: ...
-1
votes
2answers
511 views

How do I set up php 7 to use a different php.ini for cli and apache2?

When I installed php5 using apt-get, it seemed to be configured to use: /etc/php5/cli/php.ini for the cli binary /etc/php5/apache2/php.ini when running through apache I cannot find anything in any ...
0
votes
2answers
48 views

Apache returns empty response and must restart

I have the classical LAMP configuration on several servers, on one server I can frequently see Apache returned an empty error. I have PHP-FPM running to serve .php file, static pages like .html is ...
1
vote
3answers
285 views

Running two PHP versions (5.3 & 5.2) at the same time

I have read this topic: Running php4 and php5 along side each other There, the issue is handling two different generations of PHP (PHP 4 vs PHP 5), but what I need is to make all but one of my server ...
0
votes
0answers
14 views

Install php-ZendFramework and php-ZendFramework2 in parallel on a machine

is it possible to install php-ZendFramework and php-ZendFramework2 on one host? I need v2 for bareos-webui and v1 for icingaweb2. I've only found some info here ...
0
votes
1answer
23 views

php-cgi.exe CPU load jumps after MySQL Backup

I'm running Windows 2012r2 on a new server, with Plesk 12.5 and MySQL 5.6 installed. There's a backup script which takes a DB dump and zips website data files that runs each day. However, it brings ...
0
votes
1answer
41 views

How to store Cloudflare IP as an additional FastCGI parameter in Nginx? [duplicate]

I need to be able to know the Cloudflare IP for connections made to my server. This is so I can determine if a connection is made through Tor. To do that, I need to send the tool the IP that the ...
1
vote
1answer
1k views

Error in osm data data import while nominatim installation

I am doing nominatim installation on my server. I run the following command ./utils/setup.php --osm-file /usr/share/osm2pgsql/planetfile/planet-latest.osm.pbf --all to import the pbf file and Few ...
3
votes
2answers
87 views

Allowing PHP to run specific bash script with root permissions

I have a php script calling a bash script like this: <?php $result = exec('sudo /bin/bash /var/www/my_bash_script.sh /var/www/vhosts/testsite/htdocs/'); var_dump($result); ?> This is ...
0
votes
1answer
24 views

How to register user on ejabberd using php code?

I am trying to register user on ejabberd linux server. I am using below php code <?php $username = 'hello'; $password = 'hello'; $node = 'my ip'; exec('sudo -S ejabberd ...
0
votes
1answer
53 views

How can I get Laravel app routing to work in a sub-folder of a WordPress site?

I've got an existing WordPress site and I need to get a Laravel app to work in a sub-folder called 'api'. This is an nginx site, so .htaccess redirects will not work, and the best solution if it needs ...
0
votes
0answers
14 views

Ubuntu Apache configuration

I am running PHP on Ubuntu and I see that each SAPI is using a different location for its php.ini file in the /etc/php5 directory. There is a directory for CLI, for CGI and for Apache2. I would like ...
0
votes
1answer
68 views

PHP script with systemd

I'm new to systemd and I've got issue with script my colleague gave me. This script worked as background process in Debian 7 but doesn't in Debian 8. I decided to rewrite it to systemd. I have this ...
1
vote
1answer
26 views

500 Error: “End of script output before headers” - Simple script within Wordpress theme

I have a multi-site install of Wordpress running fine on a unmanaged CentOS server, however for a certain feature I need to do my own thing on certain pages and manually interact with some ...
3
votes
4answers
2k views

Allow PHP to write file without 777

I am setting up a simple website on webspace provided by my university. I do not have database access so I am storing all the data in a flat file. The issue I am experiencing is related to file ...
1
vote
2answers
1k views

Compile freetype support in php

I'm not able to compile freetype support in php... My configure command is: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-bcmath --enable-zip --with-zlib --with-gd ...
0
votes
0answers
60 views

Microsoft Access Database drivers on server

I'm really in need of assistance with this issue, ive been trying for days. I have an access database which i'm trying to query via PHP - i have come to this forum because after reading many posts and ...
0
votes
0answers
56 views

nginx 500 error when accessing large file from php script

I am using nginx/1.8.0 and to debug a large file upload issue I am facing in WordPress, I post a file with a simple script: Index file: <html> <!-- index.html --> ...
2
votes
0answers
31 views

Upgrade openssl in apache from source and set as default

I have upgraded the openssl from source to version OpenSSL 1.0.1s for Apache, which installed under /usr/local/ssl/bin/openssl, and change the symlink to point it into this new installation directory ...
1
vote
1answer
90 views

Server is often slow to serve webpages and takes long to ssh into

First of all, I am in no way a professional running a server for about two years from home, so keep in mind that the cause to my problems can be very basic and with a simple solution. My problem is ...
0
votes
1answer
45 views

Cron Job error says ioncube is not installed when it is

I have a website (mivprofit.com) and this website works with a script that requires a couple of cron jobs to run once a day. I have a cron email set and whenever the cron job runs this is the email ...
2
votes
3answers
70 views

PHP session directory full?

I was hoping somebody could give me some advice please. I'm running a CentOS 6 server and over the last couple of days my disk usage has gone from 60GB to 135GB (98% full). I believe the issue may be ...
1
vote
1answer
75 views

High CPU usage by Apache on opening WordPress Admin Pages

I'm having a VPS server with below configuration 2 core CPU 2GB RAM 50 SSD Centos 7 Web Panel: Sentora From the last week, I'm facing a high CPU usage. Most the sites are WordPress. On opening each ...
1
vote
1answer
35 views

Long running PHP process randomly stops with message 'Killed'

I have a PHP script I wrote that I am running, and it has ran all the way through before, but for some reason, it keeps stopping with a message of 'Killed' ... It is my box, no one else is logged in ...
1
vote
0answers
29 views

Centos - PhpMyAdmin showing blank screen when trying to access it [closed]

I have just installed PhpMyAdmin, and when i try to access it it just shows a blank screen. I suspected this is because i followed a tutorial on how to secure php, so i reinstalled php to reset the ...
1
vote
1answer
417 views

2006: MySQL server has gone away

I am getting 'Lost connection to MySQL server' and '2006: MySQL server has gone away' errors so frequently that the server is unusable. There are questions related to this issue, but none that apply ...
1
vote
0answers
24 views

nginx prevent loss of POST parameters when rewriting uri

I would like to do some url rewriting on nginx with php-fpm. Namely, routing all requests to php scripts to a single script like: /index.php?fulluri=(originaluri) Many ways to approach the problem: ...
0
votes
1answer
29 views

How gzip compression still happening?

I am using Ubuntu 14.04.4 LTS,Apache/2.4.7 and PHP 5.5.9. I installed Wordpress 4.4.2 in my machine. When I run my site in localhost, I noticed that js/css are compressed in gzip format. I didn't ...
0
votes
2answers
153 views

“sudo apt-get install php7.0-dev” not working

I am trying to install Xdebug to server and pre-requisite in tutorial I am following is php5-dev but I am using php7.0.5 so I tried sudo apt-get install php7.0-dev. It gives me Reading package ...
0
votes
3answers
3k views

Binding to LDAPS using PHP failing

We've finally set-up our server to accept ldap SSL connections thanks to another question answered by a helpful member. Our problem now is that when attempting to bind to ldap using the below simple ...
-1
votes
1answer
149 views

php-cgi.exe is opening up an enormous amount of instances

I am hosting php 5.2 on IIS 8. Yes, I know that's a horrible idea, but that is reality. The server runs out of resources after our website is up for a few hours because for some reason php-cgi.exe ...
-1
votes
1answer
15 views

Connection reset when trying to access / with a FallbackResource rule

I am having an issue where my site is working as intended for all urls except the base url of example.com/. When I try to access that in particular I get a connection reset. I have reduced my site to ...
0
votes
0answers
12 views

How did my non-CMS based website get hacked? I have a file called mails.php which contains a preg_replace statement [duplicate]

I have a series of websites in my server, all of which share the same set of PHP files. They're not based in any CMS (no Wordpress, no Joomla, etc.). All of them contain my own "CMS" so to speak. I've ...
4
votes
2answers
13k views

Allow access to PhpMyadmin only on a specified virtualhost

I'm working on a multiple virtualhost Environment. I've installed PhpMyadmin for Mysql Remote Control. Environment is configurate as below: one.domain.com two.domain.com onlyphpmyadmin.domain.com ...