Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php]

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.

0
votes
0answers
11 views

wordpress header not displayed after upgrade from opensuse 13.1/Apache 2.2 to Debian 8/Apache 2.4 [on hold]

As the headline states already: I upgraded an opensuse 13.1/Apache 2.2 installation to Debian 8/Apache 2.4. The website of one of the virtual hosts in the original installation was WP 4.1.1 driven. To ...
1
vote
1answer
8 views

console PHP produces opcode output

I have PHP running on WSL on windows along with nginx+php-fpm. The web component is running php OK, but console PHP produces opcode output for some reason. For example i have such PHP file: ?php ...
1
vote
1answer
9 views

Nginx to redirect to specific PHP

I wanted to rewrite the url path to point to certain PHP. Here is the flow: User Login https://admin.abc.com After they logged in, the system will pass url to be redirected https://admin.abc.com/...
0
votes
0answers
11 views

Upload wamp webpage to the internet [on hold]

I've a question for you. I've created a website (Which i'm testrunning on WAMP) because I've a database and using PHP to access it. But I just noticed a problem.. How am I supposed to upload my ...
0
votes
0answers
19 views

Nginx 502 Error with php-fpm depending on hostname

I'm using Nginx to serve out a web page using the Grav CMS which runs on PHP. I am using php-fpm to achieve this with Nginx. Everything seemed to work fine at first, but then I started getting a 502 ...
0
votes
0answers
30 views

Nginx pass my request to default or local address

There is two issue with NGINX configurations. I tried to setup prestashop on CentOS 7 with Nginx according to this instrument that I found similar this in Prestashop forums . the nginx.config file ...
-1
votes
0answers
19 views

How to solve the error “could not load PEM client certificate, OpenSSL error:02001003:system library:fopen:No such process”? [on hold]

Excuse me if the question is silly, but I'm a novice in this area. I need to connect to a service via SSL from a Drupal 7 site. I have a file with a ".p12" extension and a password for it. Also, I use ...
0
votes
0answers
8 views

Quick php upgrade on nginx webserver

I need to do a php version upgrade on clients production server. (current is 7.0 need to upgrade to 7.2). Since this is production environment, I need as little downtime as possible. What would be the ...
0
votes
0answers
11 views

wordpress 500 (internal server error) sending request to load-scripts.php

I'm facing a problem for days now, Each time I try to edit a page with Thrive Architect I get 500 (Internal Server Error). I get this on the page: Internal Server Error The server encountered an ...
0
votes
1answer
38 views

ec2 out of memory from apache random spike

Over the past year, we had consistently random spikes which caused apache to use all the memory and swap out. Server Uptime I have an example of the latest crash (5:30AM - 12:00PM UTC). OOM Kernel ...
-4
votes
0answers
14 views

Access website via network IIS 7 fails [closed]

I have a website that i want to be accessible over the network, locally it works fine but when i access the website on another computer on the network i get this message But when i access the server ...
-2
votes
0answers
30 views

How to architect ECS Fargate PHP App [closed]

As Docker runs single process in foreground I use Supervisord to run both Nginx and PHP-FPM on a single container. What would be an alternative / right design for such stack? Should I have separate ...
0
votes
0answers
26 views

Migrating existing site to Azure is slow

I am migrating a site to Azure. However the site is now running unacceptably slow. The setup is as follows: Azure standard Linux apps service plan MySQL on Azure standard instance Here's some of the ...
0
votes
0answers
8 views

Missing php-redis repository in docker debian stretch image

I'm missing the repository that includes the php-redis package. Inside my debian 9/stretch docker container I run the following: root@dcc82d674095 [19:36:46] [/var/www/html] -> # apt-get install ...
0
votes
0answers
20 views

Install Apache with ftp access

I have ftp access to a server running windows. Is there a way I can install Apache server and PHP in it through command line ? How I connect to the server is through ftp using my macbook.
0
votes
0answers
18 views

Configuring Apache for a static site built with PHP; Getting 404 Not found

So I inherited a static site built in PHP. Upon trying to go to the alias I created, It's pointing instead to my index.html file in my Users/antonio-pacivevac-ortiz/Sites/ Here are some config files (...
0
votes
1answer
20 views

What does the following statement on nginx config mean?

I am seeing a statement on nginx config but can't figure out what it does. this works when I am at the main directory under path; however, when I try to access files in subdirectories, it doesn't ...
0
votes
1answer
57 views

php apache_note with mpm_event

I'm wanting to switch to mpm_event to be able to serve a higher rate of requests. My initial testing showed that the server can serve a higher rate of requests when using mpm event. The server is ...
0
votes
0answers
32 views

Cannot disable open_basedir

When I upload my site from localhost to my nginx server I receive this error: Warning: session_start(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): I have ...
0
votes
1answer
35 views

PHP app under subdomain of Gitlab's nginx

I have set up Gitlab using Omnibus. It has embedded nginx. It works fine on ports 80 and 443. On 8083 I also have installed VestaCP. VestaCP has Softaculous. Using Softaculous I have installed a PHP ...
0
votes
2answers
69 views

Upgrading PHP 5.3 to 7.x on CentOS 6.10 (final) - Unmet Dependencies

I am a bit rusty these days and could use some help. I've cracked opened a few old servers and have started the process of dusting them off. In the process I'm updating things like PHP. I regret to ...
0
votes
1answer
25 views

Restrict home directory from showing all the accounts

When I run the following code in one of the website on my CentOS 7 box. $directories = glob($somePath . '/home/*' , GLOB_ONLYDIR); var_dump( $directories ); The code above list all the accounts ...
0
votes
0answers
28 views

Synology and php.ini / fileinfo

When i run phpinfo() it states fileinfo IS enabled when i search the server with shh i cannot find fileinfo.so anywhere i even made an if statement to only fire if fileinfo extension is enabled... it ...
0
votes
1answer
20 views

Lint PHP and only return errors

I'd like to use php -l to only return errors and not No syntax errors detected messages. Is this possible?
0
votes
1answer
37 views

Apache redirect Absolue url to relative url

So I want to load a web-app from a subfolder. Current configuration looks like this <VirtualHost *:80> ServerName YOUR IP ADDRESS/DOMAIN ServerAdmin webmaster@localhost ...
0
votes
2answers
40 views

IUS not pulling latest PHP packages

I have a RHEL 7 64 bit machine that that IUS installed on it. We are trying to get the latest hotfix version of php 7.1. The version I am trying to download is 7.1.22, and we are on 7.1.21. I have ...
0
votes
1answer
26 views

Apache/PHP Undefined function - occurs sometimes - fix by apache restart

I'm facing a really strange problem My website sometimes starting to serve errors like 2018/09/25 09:13:33 [error] [php] Call to undefined function @=Q<C6>+V(). File: /var/www/xxxx/MainModule....
-1
votes
1answer
22 views

Unknown site using jquery and css file but include my site path [closed]

This is my site URL - https://www.thecodedeveloper.com But this Unknown site http://newnuk.com/dialio/Web_doctor/viewinfo/139 means i am not owner of this site But once i view source this page ...
1
vote
2answers
39 views

Scaling Apache/PHP is as simple as maximizing the number of CPU cores?

I have an Linux/Debian server with Intel i7 CPU with 4 cores and 8 threads. When I run my heavy duty Apache/PHP job it uses 1 thread, and when I run concurrent Apache/PHP jobs they each use their own ...
0
votes
1answer
24 views

Why does WordPress on 3 load balanced EC2 servers run out of memory/fpm child processes and crash?

The problem: 30-40 minutes after pointing the DNS from our old server towards our new server, all available memory gets used up and our (3) load balanced EC2 instances crash. To make matters worse, ...
1
vote
2answers
76 views

WordPress admin pages timeout, or take 30s to load on Elastic Beanstalk, PHP 5.6, Apache, RDS, and CloudFlare

I recently migrated a WordPress website I inherited over to AWS from Rackspace and am experiencing large performance decreases. I'm pretty new to the whole DevOps thing so I'm not sure where to start ...
0
votes
0answers
37 views

php-fpm in docker have FastCGI sent in stderr: “Primary script unknown” while reading response header from upstrea error

I trying to use docker to run my php-fpm I use this Docker Image mkaag/phpfpm this is my nginx config location ~ \.php$ { try_files $uri /index.php =404; fastcgi_pass php-upstream; ...
0
votes
2answers
69 views

LiteSpeed ignore PHP header 404 status

After moving my website to a webhost which uses LiteSpeed it seems PHP header is ignored. I have tried these variations: $s = "HTTP/1.1 404 Not Found"; $s = "HTTP/1.0 404 Not Found"; $s = "Status:...
0
votes
1answer
34 views

Ubuntu 16.04 - Purge php completely but still shows PHP 5.4.15 (cli)

I want to purge PHP completely from my Ubuntu 16.04. I have did all the stuff to remove PHP which as below, sudo apt-get purge "php*" sudo apt-get purge "^php.*" sudo apt-get purge "^php*" sudo apt-...
1
vote
0answers
27 views

Trying to run php-fpm 5.6 alongside php7.2 for different Apache virtual hosts on EC2 amazon linux , what am I missing?

I'm working on amazon linux on an EC2 instance. I installed php72 using yum, apache worked fine. I have installed php5.6 at /opt/php5.6 configured it as fpm and done the make install whcih all went ...
0
votes
1answer
28 views

Is it a good idea to put shared files outside public_html / root?

I just figured out that I can place files outside the domain root (outside public_html). The benefit of placing functions outside the domain root is that I can use the same file on multiple domains. ...
0
votes
0answers
22 views

httpd holding open too many connections on aws ec2 t2.micro

I've set-up an API server on a t2.micro (Amazon Linux AMI 2017.09.0.20170930 x86_64 HVM GP2) - it is written in PHP and is connected to RDS Postgres database (also on db.t2.micro). The system is ...
0
votes
1answer
68 views

Cannot run php within html on nginx

I am trying to run php within html on an nginx server. What happens is that the php code within the html just gets printed, not executed. I can run php stanadalone scripts fine. but not ones within ...
-1
votes
0answers
9 views

Video Streaming using SSL on Alibaba ECS

I have an ECS instance on Alibaba using LetsEncrypt for SSL configuration but i have an issue with PHP Video Streaming that is not working when SSL is used where Video Link gives 404 when the ...
0
votes
1answer
48 views

Installing Apache2 / PHP on AL2

I've installed Apache2 and PHP as follows: sudo yum install -y httpd.x86_64 sudo amazon-linux-extras install php7.2 I'm not able to find a libphp7.so module to load within Apache2. I loaded the ...
0
votes
0answers
42 views

how to have index.php on root and subdirectory with nginx

I have two index.php files that I want to serve on my nginx server. One of them is in the root directory and the other one is in a subdirectory under root. The root one works just fine but nginx only ...
0
votes
0answers
7 views

Calling a Django server function from PHP server [migrated]

I Just hired as a junior python developer at a company. Here they want to pass a heavy tasks (bulk mailing,Excel import,PDF export) from a PHP server to a django server(celery) to reduce work load. In ...
0
votes
3answers
101 views

nginx downloads php files instead of rendering them

I found a similar question here: https://stackoverflow.com/questions/25591040/nginx-serves-php-files-as-downloads-instead-of-executing-them But unfortunately the answer there doesn't help me. So here ...
0
votes
0answers
28 views

PHP7.2 configuration file does not match contents reported by phpinfo

A little bit of background I am running a Centos 7 server with Virtualmin, Nginx, and various versions of PHP. These PHP versions are 5.4, 5.5, 7.0 and 7.2. Nginx is configured to use FastCGI, and ...
0
votes
0answers
6 views

Remove a portion of the URL with .htaccess [duplicate]

I have an OpenCart site that I have enabled SEO URLs which uses the CMS and .htaccess to manage and have noticed in Webmaster tools that sometimes the crawler picks up a URL with a strange string in ...
0
votes
0answers
49 views

How to use different php version on ubuntu

I have a main webpage that uses php v5.6, now we're integrating a project into a subdomain that need php v7.1 /var/www/html/mainpage.com /var/www/html/subdomain.mainpage.com The server is a vps ...
1
vote
1answer
74 views

Error 403 (access denied) with updated .htaccess file

Im using a plugin for one of my websites which I have updated recently. Since I have updated I get always an access denied message (Error 403) when opening magnalister.php of the plugin. When I ...
0
votes
1answer
14 views

Multiple Apache vhost pointing to same directory

I have different domains, and related multiple Apache vhosts, pointing to the same directory. So, basically, the different domains (mydomain.com , mydomain.de , mydomain.fr ) share the same site and ...
0
votes
1answer
30 views

is Xampp enough For a School Local Web Server? [duplicate]

So Guys I'm trying to build a website for my school but can be access with no internet cause i will be running it on a virtual host using xampp so if students connect to the router where i run my web ...
0
votes
0answers
5 views

Host a local pecl repository on Debian

any idea how to host a local pecl repository? i have a load of the servers that need to install pecl modules but they dont have access to the internet, therefore I need to host a local private pecl ...