Tagged Questions

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

0
votes
0answers
6 views

Frontend executing PHP page stopes other PHP pages from working?

I have VMware workstation with Turnkey Linux LAMP, but i had this problem in the past many times so don't think its related to server architecture. I have site setup mysite.com where i have 2: ...
-1
votes
1answer
14 views

Random 403 Forbidden error (Apache 2.4)

My Apache 2.4 (CentOS 7) server hosts multiple websites. Sometimes I get a 403 Forbidden (You don't have permission to access file X on this server) error when accessing any of the websites files ...
-1
votes
1answer
13 views

Correct packages to install LAMP on ubuntu

I have read some tutorials about install LAMP and I have seen that they install differents packages for MySQL and PHP. For example to install MySQL: 1. mysql-server 2. mysql-server ...
1
vote
2answers
10 views

“No input file specified” when running php under fastcgi inside chroot under nginx outside of chroot

I have a scenario with nginx/1.4.6 running on Ubuntu 14.04 but with php/5.2.10 inside a chroot Ubuntu 9.10 (Karmic Koala). My issue is that all requests to php files result in the dreaded "No input ...
0
votes
1answer
16 views

Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM

As stated in topic. There are few different php "wrappers"(?). What are differences between them? Tried to google some, but cant seem to find informations. (mod-php is not goole'able). What are they ...
0
votes
1answer
28 views

PHP file downloaded instead of executed with nginx try_files

I'm using Ubuntu 14.10, nginx 1.6.2, php 5.5.12. I have a site set up like this: server { root /usr/share/nginx/www/oliviataussig; index index.php; server_name oliviataussig.com ...
0
votes
0answers
9 views

MS SQL driver (Azure SQL) for PHP running on an Azure Website?

I am at my wits end. I've been googling this and all I get is 2010 blog posts that unfortunately do not appear to work today. I am trying to set up PHPBB on an Azure Website which uses the MS ...
-5
votes
1answer
37 views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel [on hold]

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...
1
vote
0answers
16 views

suPHP won't allow access to PHP sources

I am running suPHP with Apache2 and PHP5.4 on a Debian Wheezy. I found out that .phps files won't be showed and access will result in a 403 page. The same file with equal chmod/chown/chgrp will be ...
-4
votes
0answers
28 views

Mantis Bug Tracker not accessible [on hold]

I am trying to install mantis bug tracker in Ubuntu 14.04. I managed to install all the preqs like MySql, PHP, and Apache Server as mentioned here. Although I can see the info.php page on localhost, I ...
0
votes
1answer
42 views

Nginx virtual host servername, root

I installed nginx-1.6.2,2 on FreeBSD-9.2-RELEASE-p5 and here is my configuration: # tail -2 nginx.conf include _includes/*.conf; } # cat _includes/XXX.conf server { server_name XXX; root ...
0
votes
0answers
32 views

Strange characters from mail server

I have a server with PHP and Postfix isntalled. When I try to send an email with mail() PHP function like test! @ èòà I receive test! @ èòà I think it's a charset issue, but I don't know ...
-3
votes
0answers
27 views

How can I sort path to files in a tree [on hold]

I have the following array $files = ['/home/test/www/folder/file.txt','/home/test/www/folder2/file.txt']; and I want to create a representative tree array like the following: [ 'home' => [ ...
1
vote
0answers
33 views

Two PHP versions on same CentOS 6.4 server with Plesk [on hold]

I'm using CentOS 6.4 (Final) server running Plesk 11.0.9 with PHP 5.3.3, and I need to be able to use another PHP version (5.5.19) for some of our domains. I've followed Plesk's KB about how to ...
1
vote
1answer
19 views

POST requests from jQuery to PHP stuck if POST data exceeds several hundred characters

I have a plain ajax request being initiated by jQuery to a PHP script: $.ajax({ url:"script.php", data: data, type: "POST" // error & success handlers here }); If the data (could be ...
-1
votes
0answers
12 views

Table not converted in Owncloud migrating from SQLite to MySQL/MariaDB

In Owncloud database migratiion from SQLite to MySQL/MariaDB I have been prompted for the following question... # php occ db:convert-type --all-apps mysql owncloud_user 127.0.0.1 owncloud Creating ...
-1
votes
0answers
18 views

PHP application very slow in web hosting server [on hold]

I have installed a PHP application for school management system in godaddy hosting , Everything works fine , but add student and staff section goes time out after submitting the form data. However the ...
0
votes
0answers
14 views

mac yosemite install memcache-extension for xampp but point out the error as follow [on hold]

Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 MacdeMacBook-Pro:memcached-2.2.0 root# ./configure checking for grep that ...
-1
votes
0answers
12 views

Domjudge keeps Not Authenticated [on hold]

I am trying to install Domjudge in my VPS. After I run ./configure, make and config database I login at /public/login.php with the user/pass: judgehost/judge but it doesn't log me in. I try at ...
0
votes
0answers
18 views

PHP Change log Centos 7 [duplicate]

Might be a silly question but Im looking at the change log for PHP by running this command - rpm -q --changelog php | grep CVE See all the CVE's listed does that mean they have been patched in the ...
-1
votes
2answers
38 views

Can't update to latest PHP version. Centos 7 [closed]

I'm unable to update to the latest PHP package. I ran yum update php and it updated to PHP 5.4.16. Reran the update command to see if there was any newer versions and stated there was no packages ...
-2
votes
1answer
41 views

Apache httpd down sometimes [closed]

I am running Apache on Centos 64 bit , it downs sometimes (the apache only) not the server. When I restart httpd service it back up. Here is recent error_log when it was down [Sat Nov 15 00:35:20 ...
1
vote
1answer
24 views

Different php_value open_basedir based on domain name in .htaccess

I want to limit access to files using PHP open_basedir for multiple domains. Every domain sits in own directory, so I want prevent all domains PHP scripts from interfering with each other. How can I ...
1
vote
0answers
37 views

Nginx + PHP-FPM Client Abort

Here's my config (Nginx 1.7.x) : server { listen 8000; index index.php index.html index.htm; root /var/www/; server_tokens off; chunked_transfer_encoding off; location ~ ...
0
votes
0answers
12 views

Uploaded Files/Directories being Randomly Deleted [closed]

On a website I am developing I have files uploaded and then processed and saved with PHP. Take an image for example of the filename 'image.png'. It will get this directory structure: /uploads/{uuid}/ ...
-3
votes
0answers
24 views

When i install phpfox site it shows me an annoying language looks encoding error [closed]

I have installed phpfox on my linux based server cnektdev.com but when I installed it showing me a strange error. However the same code i run on 2 different servers working fine cnekt.com ...
-1
votes
0answers
36 views

PHP5.6 SMTP “Could not connect to host” on SSL and port 465, but TLS on port 587 works - why? [closed]

I'm getting the error, "SMTP Error: Could not connect to SMTP host.", when sending emails via Gmail following an upgrade from PHP5.2 to PHP5.6. If I switch back to PHP 5.2 without changing the smtp ...
0
votes
1answer
57 views

Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so'

When I try to run any php script with my user within shell, I get the following warning: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - ...
1
vote
1answer
36 views

Linux VPS settings to allow $_SERVER['REMOTE_ADDR'] to get client ip [closed]

I have unmanaged VPS server. I am trying to get client IP form PHP $_SERVER['REMOTE_ADDR'] but it's always gives me same for all users that is server internal IP. I have done some R & D and got ...
0
votes
0answers
5 views

IIS Web Config & PHP - 2 level url rewrite

Currently in my website, below code is working fine and redirecting rewrite URL www.example.com/ShopName1 to www.sitename.com/user/shop.php?sid=ShopName1 The rewrite configuration <rewrite> ...
0
votes
2answers
16 views

Configuring PHP and WikiMedia to use Microsoft Sql Server?

I have PHP 5.6 x86 installed on Windows 7 to C:\PHP. IIS is successfully running PHP and MediaWiki when it's configured to use MariaDB. I'm trying to get it to work with MS SQL Server and it's not ...
1
vote
0answers
26 views

Instal pecl_http: raphf installed but ./configure isn't seeing it

I'm trying to install pecl_http as an extension to php. phpise is working fine as I'm getting the configure file out. When I go to type ./configure I get the following error message; ... checking ...
-1
votes
0answers
33 views

Need advice on security and setup for an asterisk/pbx/front-end website server? [closed]

please can someone give me advice on this? I am in the process of configuring a server/system for a company. The server holds several websites and will also hold an asterisk/pbx system. I need the ...
1
vote
0answers
23 views

Log API requests via Varnish cache

I have Varnish in front of a standard REST API. Requests must be authenticated with an X-Access-Token header. I now need to keep track of the requests for each resource against the access token that ...
-1
votes
0answers
20 views

How display on page Č,Ć,DŽ,Đ from my sql [on hold]

How can display charterers from my sql Č,Ć,DŽ,Đ (Croatian language) already have in code and my sql datebase set up UTF-8.
0
votes
1answer
42 views

Failure in PHP_MINIT_FUNCTION(Wincache) with Wordpress, Microsoft Azure and IIS

I'm starting experience very annoying downtimes with my Wordpress installation hosted in a shared environment in Microsoft Azure PAAS, where PHP is executed under IIS. First of all I tried to ...
-2
votes
0answers
31 views

How to install older PHP version from official tar file [closed]

I need to compile an old version of PHP (5.2.6-1) on newly installed Debian. I will install all other things like Apache and MySQL from current repository but I need that old PHP version. All guides I ...
0
votes
1answer
20 views

Nginx proxy_pass with PHP authentication?

Hey so what I'm basically hoping to do is set up nginx as a reverse proxy to an internal IIS server which hosts content. The nginx server would have to authenticate users using a PHP/MySQL login ...
0
votes
1answer
27 views

Multiple domain server, sendmail working erratically

Movie synopsis: I'm managing just a few websites with VestaCP, each website has its own domain and so far it works good. The server is on Linode. I have implemented a very simple contact form in one ...
0
votes
1answer
26 views

Diagnosing where all the queries are coming from

We have an issue where a site on a shared hosting account is going over the allowed query limit per user; that is set at 100k queries/hr. The site shouldn't be generating that amount of queries TBH ...
1
vote
2answers
32 views

How to pass PHP mail.log output to a script

I'm logging all php mail output using the mail.log setting in php.ini. Rather than log to a file I want to have the log data sent to a script for parsing in real-time to raise alerts. I have tried: ...
0
votes
3answers
36 views

Delete file as different user under PHP

I'm running PHP as user www-data and Nginx is running as user nginx. I need to delete files in /var/cache/nginx/, which is owned by user nginx and I want to do it using PHP. Is there a way to allow ...
-1
votes
0answers
50 views

Install php 5.2.17 on Centos 5.11 on Rackspace server

I have been trying to install php 5.2.17 on a Centos server for about a week now only to run into one of two issues each time. Install from yum or other RPM I would get php 5.2.17 in console with ...
0
votes
0answers
26 views

can't apply process slot for /usr/lib/cgi-bin/php5

seen some other answers around the web related to my issue. Tried the answer from High CPU mod_fcgid: can't apply process slot too, did not work. Here are the files I believe toe be relevant for ...
0
votes
2answers
444 views

PHP no longer working on Centos after installing phpMyAdmin

I think I have killed my LAMP server! The server is CentOS 6.6 and has Apache 2.2 and PHP 5.4 installed. I didn't originally install anything - it was provisioned this way by my hosting provider. ...
0
votes
0answers
40 views

yum dependency conflicts already installed package

I want to install php 5.6 from the webtatic repo: yum install php56w php56w-opcache php56w-mysql php56w-mcrypt php56w-pdo php56w-xml One of the dependencies is httpd: Installing for ...
0
votes
0answers
43 views

how to route all php script emails through postfix

I have a plesk server with 1000 domains. customers send lot of spam from scripts, which i cannot block. so i want to route their php scripts or all emails from every scripts, to be passed/routed ...
0
votes
0answers
38 views

What can CPU and disk usage be at maximum, to handle visitors without causing slowness? [duplicate]

What should these rates be at maximum, to handle visitors without causing slowness? Such as 5mb/s and %20 CPU usage? I might get a lot of visitors soon and I want to be ready beforehand. My current ...
1
vote
0answers
19 views

can't find mediawiki after changing apache listening port on ubuntu server

I had mediawiki installed and apache listening on port 9997 accessed via example.com:9997/mediawiki Mediawiki is under /var/www/html/mediawiki. So I wanted to change it to port 80. I changed ...
0
votes
2answers
72 views

SELinux interfering with Apache / PHP [duplicate]

On my installation of CentOS 7, SELinux is enabled by default. This is preventing Apache from properly reading PHP files in the standard /var/www/html document root (the browser is blank when ...