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

learn more… | top users | synonyms

0
votes
1answer
44 views

Display an image when the web server is accessed

I run a Minecraft network on a dedicated debian 8 jessie machine and I have a LAMP server running on it. I want to know how can I make it so when people put my server IP into their browser and hit ...
0
votes
2answers
134 views

NGINX and php-cgi on Windows “No Input File Specified”

I'm running php-cgi and NGINX. They are running in a folder, however their root directory is 2 directories out, and 2 in from there. When the root was html (default), they worked perfectly, however ...
0
votes
2answers
57 views

Fatal error: Out of memory Error on WampServer

I have set memory_limit to -1 in php.ini file in Wampserver. My RAM is 6 Go. But I still getting this error: Fatal error: Out of memory (allocated 1673789440) (tried to allocate 67108864 bytes) in C:\...
0
votes
0answers
35 views

Ganglia/Gmetric/Graph.php: how do I prevent the AGGREGATE option from mucking the data up?

I am using the "aggregate" query parameter to Ganglia's graph.php to display stacked graphs. The downside is that it ALSO appears to seriously muddle the data. WITH it, the graph looks "about" okay in ...
0
votes
1answer
199 views

apt-get install libphp-phpmailer not including class.phpmailer.php

I am installing PHPMailer on a Ubuntu 14.04 LTS server. I ran the command apt-get install libphp-phpmailer. It installed the files under usr/share/doc/libphp-phpmailer as expected. However, it is ...
0
votes
1answer
11 views

Apache/PHP cannot save to the public_html

Apache and PHP are running as nobody user and group. public_html folder is set to: drwxrwx--- 11 myuser nobody 4096 Feb 11 14:39 public_html/ but when Apache and PHP (via Wordpress) tries to ...
1
vote
0answers
192 views

OCI8 extension not loading in PHP 5.4, CentOS 7

I have a CentOS environment running as a VM guest. It runs and Oracle 12.1 Database, along with PHP 5.4.16, on Apache 2.0. I've gone through the installation steps to ensure that the correct OCI ...
0
votes
0answers
611 views

phpmyadmin Fatal error: Uncaught Error: Class 'SqlParser\Lexer' not found

I'm a new XAMPP and phpmyadmin user and I don't know many things about networks etc but I am trying to install XAMPP to use phpmyadmin and learn to use it. The issue is that it was working fine at ...
0
votes
1answer
105 views

Is mod_xsendfile not compatible with Apache 2.4

I asked my VPS hosting provider to install mod_xsendfile. Here is what I got in response: "I am sorry that I forgot to respond about mod_xsendfile. My research shows that the module has not been ...
2
votes
2answers
109 views

setting up MediaWiki to host more than one wiki

I am working on Ubuntu and have no experience in about PHP or Apache. Now I want to setup a wiki-family. So I looked to the official docs Manual:Wiki family. There are some steps to do that. I could ...
1
vote
0answers
43 views

Unintended multiple PHP versions on OSX

For an application i'm making i need the PHP stats functions. My OSX (10.11) came with the default PHP 5.5, but i needed 7.0 to install the PECL stats package so i updated my local PHP version to ...
1
vote
1answer
90 views

Execute an SSH command with the Apache2 www-data user

I'm working on a virtual machine project where I use two servers, let's call them server A and server B, both with Ubuntu 14.04 LTS installed. Server A runs web server Apache2 with a website where ...
0
votes
1answer
161 views

500 error on fresh Apache setup on Fedora 23. One file loads, and the other doesn't

Alright, I'm finding this slightly bizarre. So, most of my experience with Apache has been on an Ubuntu server install. But after my server's harddrive experienced a catastrophic failure (which I ...
0
votes
1answer
47 views

Is it possible to parse a zip file without extraction in PHP

I have 4 questions: Is it possible to scan the entire zip file and navigate inside it without extracting the entire zip using PHP? Will it be time efficient? i.e. I have a zip file of about 50GB ...
0
votes
0answers
49 views

Request default in Laravel 5.1 when none given not working

1 and I need to have a default request when none is given so the view looks like: <form name="search" method="POST" action="/s"> Country<input name="country" type="text"> Field<...
-1
votes
2answers
101 views

Prevent uninstalling phpmyadmin when uninstalling php

I have a centos 6 server and i want to upgrade my php version from 5.4 to 5.5 but as far as i know i need to uninstall version 5.4 first (most guides say so at least), when i type yum remove php-...
0
votes
0answers
23 views

Why does GNOME have to be removed for PHP 7 on Debian 8 (Jessie)?

Just upgraded my VirtualBox VM's OS from Debian 7 (Wheezy) to Debian 8 (Jessie) and want to PHP from 5.5.x to 7.0.2. The simpliest solution seems to do this via the Synaptic Package Manager. So I ...
1
vote
1answer
217 views

How can I compress a jpg images for google insights optimisation

I m getting this error when tring to see the speed of my website in google page speed: Optimize images Properly formatting and compressing images can save many bytes of data. Optimize the following ...
0
votes
1answer
230 views

Error Installing MongoDB driver on XAMPP (OS X/El Capitan)

I'm not new to XAMPP, PHP, or MongoDB, but I'm new to Mac, so getting the PHP MongoDB driver set up is causing me more trouble than it probably should. When I try to run $ sudo pecl install mongodb ...
0
votes
1answer
122 views

How do I determine what's making the web server so slow (Apache)

I'm running Apache 2.4 (64bit) on a Windows server. It also uses MySQL 5.7 on the same server. It has been very, very slow recently to come up, but when I look at the access logs, there are very few ...
1
vote
0answers
532 views

Unable to install php mongodb driver on Ubuntu 14.04 LTS

I have been trying to install php driver for mongodb on Ubuntu Linux 14.04 LTS. Tried to install as follows : sudo pecl install mongodb output is No releases available for package "pecl.php.net/...
3
votes
1answer
70 views

Pass arguments from script to PHP interpreter is not working with quotes, why?

I need to create a wrapper script for PHP interpreter (already in PATH): #!/bin/bash # This is a wrapper for the PHP interpreter. # # We prepare the enviroment for SQL Anywhere PHP extension sourcing ...
0
votes
0answers
21 views

How can I set xdebug.max_nesting_level to inlimited

I have sold a VPS server. I want to set xdebug.max_nesting_level to inlimited. I contact the support and they told me they can't find it. I can set it to inlimited in my local server. Please help.
0
votes
0answers
33 views

How can I minimize memory usage in WHM in order for PHP FileInfo to compile?

I have a VPS running CentOS 6.7 with WHM 11.52.2. I'm trying to run EasyApache 3 to add FileInfo for PHP 5.6.16 but I keep running out of memory (it uses about 440MB out of 1024MB when idle). What ...
0
votes
1answer
47 views

Populate command line from script

I have a PHP script that goes through a lot of complication and, in the end, produces a command for the user to run. Right now, it prints the command and then quits. The user has to copy the command ...
0
votes
0answers
43 views

trying to connect ami with another ami postgresql

i have php 5.6.14, apache2, moodle 3.0 (server 1) | postgreSql 9.3 (server 2) but I have already set this error moodle. Error: database driver problem detected The site administrator ...
1
vote
2answers
2k views

After upgrading PHP to version 7, why can't I use the mongodb driver?

Well here's an odd situation I've found. I've been using PHP and MongoDB together on a project, and updated the associated software. After the upgrade, I did make sure to update the new conf files and ...
0
votes
0answers
22 views

How to configure Nginx to support PHP on Mac OS X

I am building a web site using Angular JS, hosted on my local system using nginx. I want to add a contact form to my web site, but I don't know how to configure my nginx.conf file to support php. My ...
1
vote
1answer
43 views

phpMyAdmin config.header.inc.php broken

I have installed phpMyAdmin 4.0.10 on an Ubuntu 14.04.3 LTS Server machine. Everything works fine, but I want to add a banner to the top of the web pages with a legal notice. I should be able to ...
2
votes
0answers
38 views

Application conftest stopped unexpectedly

I have set up phpfarm so that I can use multiple versions of PHP interpreter on my system. This work really good but now I am getting crash reports on each and every system start. Seems like my ...
0
votes
0answers
73 views

php-fpm downgrading php version

Current Software Version:- OS : CentOS 7 PHP : 5.6.14 After installation of php-fpm on nginx 1.8, it downgrades php to 5.4. Even though new and latest version(5.6.14) is already installed. I don't ...
0
votes
0answers
16 views

WHM: Grant different PHP version for each user

I have a VPS with WHM installed. It is running Centos 6. I want to upgrade only one account's PHP version. How can I do this? I'd prefer if I only used the WHM GUI but if I have to mess with config ...
0
votes
0answers
575 views

Notice: Use of undefined constant CURLOPT_CAINFO

I try to use TwitterOAuth which requires cURL. First of all, I think it is important to point that I use Win 8 64 bits with WampServer 3.0 and PHP 5.6.15 When I run the scripts (given by TwitterOAuth) ...
1
vote
0answers
16 views

Simultaneously enable gzip and $STR_REPLACE in CGI in apache

I have a code in my CGI script for text replacement (for example replace 'red' with 'blue') $STR_SEARCH='red' $STR_REPLACE='blue' I am using the below code in .htaccess for enable replace function: ...
1
vote
1answer
114 views

Phabricator installation - change database name prefix

I'm on a shared host and I'm in the process of installing Phabricator. One issue I've come across is created the databases for Phabricator, which want the following, phabricator_audit ...
0
votes
2answers
943 views

Codeigniter Imagick warning on godaddy linux hosting

I am using godaddy linux cpanel hosting and install fresh copy of codeigniter . And getting the following error on each session. A PHP Error was encountered Severity: Core Warning Message: PHP ...
1
vote
0answers
210 views

Codeigniter libMagick Severity: Core Warning [closed]

I am using GoDaddy Linux cPanel hosting and install fresh copy of CodeIgniter. I'm getting the following error on each session. Each session means this message vanish after next refresh. But when I ...
0
votes
0answers
131 views

Zpanel error File does not exist: /etc/zpanel/panel/cgi-bin

I have a loaded a PHP (5.3.3) website on zpanel 10.0 with the below Vhost configuration: DOMAIN: mydomain.com ServerName mydomain.com ServerAlias mydomain.com www.mydomain.com ServerAdmin ...
1
vote
0answers
41 views

How can I shorten include paths on a ubuntu apache server [closed]

I've created a php login script hosted on a Ubuntu Server located at /var/www/html/project However when I include files within my PHP script, I want to be able to be able to use shortened paths such ...
0
votes
0answers
114 views

Apache 2.4 tuning - idle workers during load

I have setup: CentOS 7, Apache 2.4 + mod_disk_cache, PHP 5.4 + opcache (haven't yet added memcached for sessions). Apache is running in event MPM, and PHP is accessed through mod_proxy_fcgi to PHP-FPM....
0
votes
1answer
88 views

Allow PHP to execute in a specific subdirectory, when parent directory is denied?

I operate a small shared server and would like to give some of my users the ability to execute PHP code from the browser (but not all of them) but have been unable to do so. In the top level ...
0
votes
1answer
667 views

PHP CURL SSL CA cert (path? access rights?)

Curl through php is constantly complaining about Problem with the SSL CA cert (path? access rights?). This all happend after trying to fix another problem with curl ssl with pem cert chain not ...
0
votes
0answers
34 views

How do I create a custom action in CakePHP3 with CRUD?

I'm trying to create a custom action in CRUD called createOrUpdate, that will check whether the object exists or not before deciding whether to add or edit the object (using the existing CRUD actions)....
0
votes
0answers
58 views

codification makes video longer and consequently doesn't sync with video

I have an audio and video input that I have to transcode into libx264 and libfdk_aac. To do that, I've prepared this ffmpeg sentence: ffmpeg -i temp/filename.wav -i temp/filename.webm -vf "scale=...
0
votes
2answers
502 views

Is it possible to add Java support to Netbeans+PHP installed package?

under Ubuntu I have installed Netbeans with PHP and HTML Js support. What's the best way to add also Java support? Should I download from https://netbeans.org/downloads/ the package under Java SE ...
-1
votes
1answer
586 views

How to setup a website server on local lan on Windows 8 - Apache.PHP.MySQL

Trying to setup a website server at home. Been trying this for weeks, but to no avail. If someone can help I will indeed be grateful, and I will wire over some beers if necessary. So, I have ...
0
votes
2answers
102 views

How to confirm which PHP file is running in Apache?

I have a situation that my VPS has run out of CPU because of my website. How to confirm which PHP file is running by Apache? So I can solve this problem. I tried the commands of lsof -p, ps -f, ...
0
votes
1answer
117 views

Wordpress can't upload images due to permissions [closed]

I'm having problems trying to get Media uploads working on my VPS w/ Wordpress. My Apache service is running as user:group apache:apache. My user folder is owned by my user eugene and grouped apache. ...
0
votes
1answer
30 views

Network resource as local developement

I am using Windows 8.1 as host operating system. I have installed Ubuntu on Virtual box as guest and PHP7 installed in it. I want to use PHP7 as local development on Windows. Is it possible to use ...
6
votes
1answer
1k views

Compiling PHP 7 with mssql support

So I'm trying to switch to PHP 7. Unfortunately I'm in need to connect to an MSSQL Server so I'll need the dblib driver for pdo. With PHP5 you could ust the php5-sybase Package. So I tried to do it ...