All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
6k views

Changing PHP_FCGI_MAX_REQUESTS

I cannot find the location of the conf file where I can change the value of PHP_FCGI_MAX_REQUESTS. Info about the system: Debian, php7, FAST-CGI, Apache 2.4, Plesk Onyx 17. There are similar ...
Ulugbek's user avatar
0 votes
1 answer
174 views

Hostname based traffic routing to ips and ports

Need to figure out a safe setup that allows me to control traffic based on hostnames. For example at the moment I am dealing with a small list of people on a small machine. Every one of this persons ...
Sysmin's user avatar
  • 1
1 vote
0 answers
1k views

PHP/Apache: multiple calls to header() doesn't work

In my PHP file I have this code (not the real code, just for demonstration purposes): ob_start(); var_export(headers_sent()); var_export(ob_get_status()); header('Content-Type: text/html'); header('...
TheStoryCoder's user avatar
0 votes
1 answer
553 views

PHP Not Working With Proxy Pass

QUESTION It seems that my php pages are not loading through proxypass set up on my master Apache server. What change do I need to make in order to get php pages to load through my proxypass? I ...
Max Kulik's user avatar
  • 228
0 votes
3 answers
10k views

Apache www permissions for php script

I have a php script which run a private social network. It's running on a Ubuntu 16.04.03 with an mariadb and apache 2 and php7 config. I have created a new folder in /var/www/myscript and copied ...
Phatair's user avatar
0 votes
2 answers
449 views

Is it mandatory to name folder same as domain name for virtual host?

I'm learning how to create virtual hosts on apache2. I have Ubuntu 16.04 operating system. I also have WSL (Ubuntu 16.04) in Windows 10. Now, here's what I observed when I made a virtual host on ...
Vikas's user avatar
  • 97
1 vote
1 answer
748 views

Apache2 give access to specific locations (.htaccess file)

Could someone help me with making a .htaccess file or how can i limit access to specific locations. All my user accessible files are located in /var/www/website however I also have some more folders ...
ACristian24's user avatar
-2 votes
1 answer
737 views

After OS update PHP function file_get_contents() cause SSL error

After my regular updates and a reboot of my server I accessed a web page on it and got the following errors: Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: ...
sevynos's user avatar
  • 61
0 votes
0 answers
998 views

Nextcloud 12: blank page after downgrade from php 7.2

my Arch Linux machine running Nextcloud on a LAMP-Stack got updates for php 7.2.0 a few days ago. Unfortunately, Nextcloud does not support php 7.2.0, and won't do so until the next major release. So ...
LukeLR's user avatar
  • 349
-3 votes
2 answers
43 views

One site non https

Hello I want to make sure that one file of my site is non https. I have this in my VirtualHost80 file Redirect permanent /README.php http://<ip>/README.php And I have this in my ...
John Wick's user avatar
  • 105
0 votes
1 answer
334 views

Apache And PHP Permissions

I have a server using ubuntu server, with apache2 and php. I want to setup a directory with a php file, that is visible to the internet,and inside it, a directory that is private, and no one (apache) ...
Nadav Tasher's user avatar
1 vote
1 answer
408 views

HTTPS except one page

Im trying to configure my apache server to host everything in https except one page that i need my script to be able to access. Currently i am prompted for to bypass the untrusted ssl certificate ...
John Wick's user avatar
  • 105
0 votes
0 answers
50 views

All PHP sessions deleted from Apache

Yesterday, we faced a strange issue. We have our application in PHP hosted on an Apache server. Suddenly, all our users were logged out from the application. In apache log we didn’t find any log ...
Alex's user avatar
  • 111
0 votes
1 answer
114 views

How to add new site to Apache-based Ubuntu server by using shell script, call by PHP? [closed]

I have Unmanaged Apache-based Ubuntu VPS, I want to add new domain by using shell script, call by PHP script ? I can do this directly easily, see this http://www.servermom.org/how-to-add-new-site-...
helpdoc's user avatar
  • 121
0 votes
1 answer
736 views

Display plain PHP code

I am using Amazon EC2, CentOS 7 x64_86, 1GB RAM. (1) Run command php -v result PHP 7.0.24 (cli) (built: Sep 30 2017 10:10:28) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, ...
Vy Do's user avatar
  • 151
0 votes
0 answers
846 views

Webserver not responding - not sure what's wrong

Server version: Apache/2.4.29 (Ubuntu) Linux pinf-vps 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64 PHP Version 7.1.10-1+ubuntu16.04.1+deb.sury.org+1 (php-fpm) Ubuntu 16.04.1 ...
devondre's user avatar
  • 103
0 votes
1 answer
376 views

Apache server freeze - Memory filling fast

I do have an application that runs on centos running PHP5.5.x/MySql5.5.x (16Gb of memory) and the big problem now it's that apache/mysql processes becomes unresponsive at some random point in time. ...
Viorel Tudor's user avatar
0 votes
1 answer
965 views

suEXEC queries www-data when trying to execute a script as userXYZ

I am setting up a suexec environment with Apache2 and PHP 7.0 with FastCGI. I have installed everything the normal way Aptitude install libapache2-mod-fcgid apache2-suexec-custom A2enmod suexec My ...
Daniel Marschall's user avatar
1 vote
1 answer
916 views

Compiled a PHP, how do I load it in Apache?

I compiled and install PHP7.1.7 from source on Ubuntu16. I followed this tutorial: http://www.shaunfreeman.name/installing-php-7-on-ubuntu-16-04/ I followed it upto the place he adds something to the ...
Silencer310's user avatar
0 votes
0 answers
401 views

Apache with ProxyPass: wrong (doubled) request URI

I've a serious and odd problem using Apache and the ProxyPass directive. Here is the configuration: ProxyPass / http://example.com/test/a/ ProxyPassReverse / http://example.com/test/a/ When I debug ...
gremo's user avatar
  • 339
0 votes
1 answer
626 views

Apache Error, php extension missing - xml

I have installed cacti to monitor my system. Installation was easy, and everything went right. But when I tried to access 127.0.0.1/cacti I get this error It is my first time on apache, Please help ...
Luv33preet's user avatar
1 vote
1 answer
44 views

dockerfile can't be ran

Here's my Dockerfile: FROM php:5.5-apache COPY sites-enabled.tgz /root/sites-enabled.tgz RUN cd /etc/apache2/sites-enabled && \ tar xvf /root/sites-enabled.tgz I have a number of sites ...
neubert's user avatar
  • 317
-1 votes
1 answer
127 views

How to debug these internal server errors?

I am not a server admin but do have some experience with Linux servers but mostly in Django and Nginx. Someone at our company has left suddenly for personal reasons and we have a site running on PHP ...
goblin_rocket's user avatar
0 votes
1 answer
375 views

public/index.php does not show

I have a bit of a strange problem. I just got a dedicated server, an I pushed my code to my server. When I load any route or even /public/index.php, I get a 404 file not found error. I followed the ...
Tom Morison's user avatar
0 votes
0 answers
21 views

getting apache2 to log php errors in required files

I've spent way too long finding errors in some files because apache2 isn't logging errors in a way I thought it should. I have my vhost configured to have its error log going to /var/www/mysite.com/...
frumbert's user avatar
  • 131
6 votes
1 answer
6k views

Apache's mod_rewrite and PHP's REQUEST_URI variable

I have an issue with Apache passing to the PHP $_SERVER['REQUEST_URI'] variable the URL after it has been rewritten rather than the original one requested. I am doing this rewriting because I had a ...
Mg512's user avatar
  • 61
0 votes
3 answers
1k views

Apache collapses after getting overloaded

I have an apache http server. Recently, my server became overloaded, resulting that the service was no longer answering any http requests(the last answer was 503). Even when the server was no longer ...
prognoza's user avatar
  • 131
1 vote
0 answers
69 views

Apache2, PHP5 , Code Igniter and PGSQL

I'm generally familiar with the stack I am encountering an odd problem. When i call a webpage that send a request that makes postgres take long to respond generally because the table is large. My ...
sqwale's user avatar
  • 141
0 votes
1 answer
2k views

How to prevent PHP from accessing directories?

I have a basic LAMP installed and I'd like to secure it that the PHP won't be able to access anything outside the /var/www directory. How can I do that? By "access" I mean also reading files and ...
Martin Heralecký's user avatar
0 votes
1 answer
622 views

Time to first byte (TTFB) high in Chrome & FF, instant in Safari

We have a Wordpress instance running on Ubuntu 12.04 LTS and Apache 2.2.22, and it takes > 3 minutes to load a page in Chrome and Firefox, whereas it loads instantly in Safari. I have no idea what ...
Michael Böckling's user avatar
1 vote
1 answer
2k views

PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0

My ubuntu vps' php was uploading images fine while running php5, but after upgrading to php5.6 all websites on my vps are no longer uploading images I keep getting this error PHP Warning: File upload ...
George Jingo's user avatar
1 vote
1 answer
316 views

Azure Virtual Machine (classic) Ubuntu connection to Azure hosted MySQL database

Machine I created a Virtual Machine (classic) in Azure. Running Ubunu 16.04 LTS. It is hosted in the cloud. Cloud service (classic) Webhosting Installed Apache2 Installed my required PHP version My ...
Tomi's user avatar
  • 111
0 votes
1 answer
15k views

Failed to write session data (files)

I'm trying to set up a fonctionnal Apache2/PHP web server on my debian Jessie machine. It seems I cannot handle session variables. These lines keep repeating in /var/log/apache2/error.log: [Wed Oct ...
nicoco's user avatar
  • 157
3 votes
1 answer
3k views

AddHandler for PHP with different file extension

I'm trying to configure a hosted Apache server, via .htaccess, to execute files with .asp extension with PHP. But I don't know what the correct handler-name for AddHandler is. The reason is that we ...
dotnetCarpenter's user avatar
2 votes
0 answers
549 views

How to fix Apache2 w/ suPHP to scan the correct .ini directory?

Apache2 was reading the correct area for php.ini in /etc/php5/apache2 until suPHP was added to the system. Configuring suPHP_ConfigPath in /etc/apache2/mods-available/suphp.conf gets the correct php....
Michael's user avatar
  • 151
0 votes
1 answer
414 views

Running Ruby on Rails and PHP apps side-by-side under the same (Apache) web directory structure

My company have several apps running alongside on an Apache2 web server which resides on an Ubuntu server. Our setup includes: A portal website is set at Apache's document root "/" Another ...
Sarun Sermsuwan's user avatar
5 votes
2 answers
6k views

debugging stuck apache/php thread on production server

I have a linux system with apache httpd and PHP which is loaded using LoadModule php5_module /usr/lib/apache2/modules/libphp5.so. I've enabled the mod_status module of apache and I see a particular ...
cherouvim's user avatar
  • 804
0 votes
0 answers
188 views

Apache 2.4, 403 on all php scripts, html works

After upgrading from Debian 7 to 8 and therefore from Apache 2.2 to 2.4, I'm facing some issues regarding php scripts. As the configuration files between the apache versions are not compatible, I did ...
Roper's user avatar
  • 121
2 votes
1 answer
4k views

Apache 2 Fast CGI php issue

I'm trying to set php5.6.23 as fast CGI on my server for using php7 as main version but in one of my domain, I get this error : The requested URL / was not found on this server. here is my vhost ...
Jeremy Talus's user avatar
-1 votes
1 answer
4k views

How do I only reverse proxy php files with nginx?

Currently I have the following in my nginx config file: server { listen 80; return 301 https://$host$request_uri; } server { listen 443; server_name envy.zone; ...
Nathaniel Suchy's user avatar

1 2
3