Skip to main content

Questions tagged [php]

PHP is a widely-used general-purpose scripting language that is especially suited for Web development. Questions about programming in PHP are off-topic and should be asked on Stack Overflow.

0 votes
0 answers
241 views

error installing php dependencies on ubuntu

I have a vps with linux ubuntu 20.04 LTS installed, I also installed the lamp stack to upload my web projects, php with version 7.4, now I need to install some more php libraries for example: php-gd ...
FeRcHo's user avatar
  • 109
1 vote
1 answer
201 views

How to install PHP for local development on a daily use Ubuntu machine, only running when called?

I did this years ago, but at this point I don't recall how anymore, so I know it's doable, and I've yet to find good documentation in any other way than it's possible. I'm looking for how to install ...
lilHar's user avatar
  • 169
0 votes
0 answers
123 views

Why can't I use localhost to open a file I moved, even though the permissions are the same and I changed DocumentRoot in Apache configuration

I am learning to use Apache on macOS Monterey. I have a simple test file test.php: <?php echo "Test"; I put this file in my home directory (/Users/my_username) and update my Apache ...
harry.kuril's user avatar
0 votes
1 answer
603 views

'The requested resource was not found on this server' error in IIS

I have configured IIS (ver 10) in Server 2022 edition and added few sites which including php,Dot net technologies etc. The sites were working fine except some DB issues which i was working on it. ...
Nidal K I's user avatar
0 votes
2 answers
719 views

Is there a way to set up Xdebug on Windows without submitting that form with your phpinfo() dump?

On https://xdebug.org/docs/install , in the Windows section, it says: Follow these instructions to get Xdebug installed. This leads to: https://xdebug.org/wizard , which only has a textfield and ...
Rubiera's user avatar
1 vote
2 answers
1k views

Apache .htaccess not working on a new VPS

We changed hosting, being from a normal server, to a VPS server. In this VPS server the operation is normal, however the .htaccess file is not being executed or read by the VPS. Even being simple ...
Nieri Oliveira's user avatar
1 vote
1 answer
2k views

How to remove trailing slash before URL parameters in Nginx

I have an simple Nginx site that runs a single PHP file regardless of the URL (except for CSS/JS files, which are served normally) However, no matter what I do, and testing with multiple browsers, any ...
kmecpp's user avatar
  • 111
0 votes
1 answer
1k views

PHP doesn't work with my Apache

While starting the httpd service this error happens: archlinux httpd[20575]: httpd: Syntax error on line 543 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mods-enabled/php....
MatiasGdo's user avatar
0 votes
1 answer
223 views

How do I know if I'm being hacked?

I'm building a small site on a LAMP server and hadn't logged in for a few days. I logged in today to make some changes and after checking the error log I can see that I've had the following error ...
Instream's user avatar
1 vote
1 answer
473 views

Apache and PHP symlink behavior

I have debian installed with apache2 and php and symlinks are working. But not as I expect: /a/b/config.json /a/b/index.php /a/b/api/api.php /var/www/html/x/config.json /var/www/html/x/index.php ->...
Tobias Wollgam's user avatar
-1 votes
1 answer
2k views

Finding php location on MacOS Ventura

I'm using MacOS Ventura. PHP and Apache are running ok because i can access both on the browser localhost. But how can i find out where the current PHP version is installed ? When i go to the prompt ...
delphirules's user avatar
0 votes
1 answer
2k views

Error while switching to php-5.5.17 with laragon

I am trying to configure php-5.5.17 downloaded from https://www.php.net/distributions/php-5.5.17.tar.bz2 unzipped in laragon/bin/php and switched from laragon menu to php-5.5.17. Getting this error: ...
Amit Shah's user avatar
  • 131
1 vote
2 answers
798 views

Why does index.html.bak take precedence over index.php (Apache)?

I stumbled upon a strange behavior on my new virtual Debian 11 install. Under user/public_html I was doing some changes to a page and at some point my browsers started downloading the index file ...
llahteinen's user avatar
0 votes
0 answers
3k views

Cannot start Apache on Ubuntu 22.04 running PHP 8.1.2. How to install missing PHP load module?

I am on Ubuntu 22.04. I recently upgraded PHP from 7.4 to 8.1 PHP version: PHP 8.1.2-1ubuntu2.8 (cli) (built: Nov 2 2022 13:35:25) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) ...
Niladri Sarkar's user avatar
1 vote
0 answers
276 views

How to properly redirect HTTPS to local HTTP connected via WireGuard tunnel when the app itself is not using SSL?

I have an domain that is setup with an SSL certificate via Let's Encrypt so it only works via https://example.com/ This domain is connected via WireGuard tunnel to my home PC which serves a Laravel ...
Stackerito's user avatar

15 30 50 per page
1
3 4
5
6 7
133