We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [php]

PHP is a free server-side, general-purpose scripting language that is especially suited for web development. Originally PHP stood for Personal Home Page, now it stands for PHP: Hypertext Preprocessor.

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
34 views

405 for POST requests, download triggered for GET requests for specific php file only

Apologies, I know this is a basic question, but I'm learning nginx! I've inherited a Nginx driven site, the problem is that when browsing to a specific php file it initiates a download. The file, ...
2
votes
0answers
39 views

Phone number on wordpress website magically being changed to different number

I have a very strange problem on the website of a client of mine. It's a wordpress website I have designed with a child theme of the Leisure theme. I have coded a couple of simple plugins to suit ...
2
votes
0answers
63 views

PHP 7.3 doesn't show in Web Platform Installer (WPI) in IIS 8.5

I have 3 Windows servers, two of them are Windows Server 2012 R2 - IIS 8.5 and the other is Windows Server 2012 - IIS 8.0. I wanted to update to PHP 7.3.x automatically through the Web Platform ...
2
votes
0answers
29 views

Can I check for thumbnail existence with RewriteCond !-f and have my controller create files that don't exist?

My team have an application written in PHP. Most requests are rewritten to our index.php file using the condition below, in the Apache .conf RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /...
2
votes
0answers
76 views

500 error from Mediawiki for first request after an idle period: Premature end of script headers

So I've got a Mediawiki on a subdomain, and until fairly recently everything was fine (if occasionally a little slow). A few weeks ago we started occasionally getting 500 Internal Server errors. ...
2
votes
0answers
322 views

503 service unavailable error for ALL files except PHP files when using Apache virtual hosts

Apache 2.4/ PHP 7.0 Virtual hosts setup working correctly. There are no issues loading JPG files when pointing directly to the server using IP address. <VirtualHost *:80> ServerName example....
2
votes
0answers
477 views

How to start troubleshooting extremely high ttfb on large queried pages?

We have a dedicated server that feeds a very large wordpress site with a lot of advanced queries - large integrated CMS/Video-enabled with a ton of extra WP fields added on. The server is 32G memory, ...
2
votes
0answers
70 views

Remote document root being overwritten with local

Today an interesting problem has arisen. A piece of code that relies on the Server Document Root suddenly stopped working on only my browsers. My machine is where I develop locally using xampp, and ...
2
votes
0answers
42 views

running multiple website through one site on apache2

I am new to web development but giving it a try to learn and whilst make use of it I have installed sites gogs , pydio and reviewboard on apache2 running on Raspbian. right now I have to start each ...
2
votes
0answers
647 views

Google reCAPTCHA “Type the Text”

I'm currently trying out Google reCAPTCHA and I want the challenges to be "Type the Text" where it will only shows digitized text/numbers and the user will just type what they see on the digitized ...
2
votes
0answers
691 views

Xampp and file paths

I'm having hard time with xampp, it really getting me crazy. I have few installations of WordPress with Roots Template, which was loading without any css, js..etc. And the solution was to delete ...
2
votes
1answer
245 views

“wiki is currently unable to handle this request” after installing SimpleMathJax on MediaWiki

I need to show mathematical terms in mediawiki-1.26.2 so I tried to install SimpleMathJax on mediawiki. I followed the described in extension page: I downloaded SimpleMathJax-master.zip then extract, ...
1
vote
0answers
41 views

Is it safe to give write permission to index.php file?

Today I accidentally gave write permission to my index.php file to using sudo chmod +x index.php. I don't know what permission it had before. My index.php contains a php script for collecting number ...
1
vote
1answer
44 views

Configure Apache for multiple web roots based on domain

I have a single app, which shares a large amount of code in PHP but which has 3 separate application-level folders depending on the domain name entered. IE: app.example.com is /apps/app-name/...
1
vote
0answers
23 views

All In One WordPress SEO plugin creates a meta description from the post and joins lines without using any spaces

I have a question regarding Worpress All in One SEO pack. It creates description without space to new lines. Here is an example: <meta name="description" content="Welcome to my websiteHere is ...
1
vote
0answers
139 views

Why is my Last-Modified header always sent using GMT timezone?

I want to send the last-modified in IST timezone, But it always sends in GMT. What is wrong with this PHP code? echo "Timezone " . date_default_timezone_get () ; //==>verified, timezone set ...
1
vote
0answers
346 views

IIS showing 404 error for CakePHP routing prefixes for instance located in subfolder

I have this Single Page Application built using AngularJS that resides in the document root. The SPA communicates with an API built using CakePHP 3.5.x. The CakePHP instance resides in a folder named ...
1
vote
0answers
294 views

Wordpress in Suexec or suphp

I have a Hsphere 3.6S.0SPU installation (that I am begging management to get rid of, but anyways...) that has several customer WordPress installations in it. I have discovered that the only ...
1
vote
0answers
79 views

Google Analytics PHP API Getting fullReferrer

I want to get fullReferrer using Google Analytics API with PHP. And I tried as follows: return $analytics->data_ga->get('ga:' . $profileId, '7daysAgo', ...
1
vote
0answers
65 views

Facebook Web app development: Storing user access token in a session variable

If i store facebook user access token in session variable , as there will be huge users (may be 10000 daily) will it cause the hosting server any issue ? EDIT 1: Server specification: 400mb disk ...
1
vote
0answers
165 views

mod_php5 as a static apache module in a cpanel environment

One source claims that apache would perform about 5% slower when using modules that are dynamically loaded (shared). Because of this, I want to be able to make PHP on the server run faster by ...
1
vote
0answers
311 views

Installing WP in Bitnami with php 7

I wanted to test possible incompatibilities of my WordPress site with php 7. So I downloaded the php 7 wamp installer and installed it without problems. Then I downloaded the WordPress module But ...
1
vote
0answers
197 views

Parallels Plesk Apache dedicated server shared IP / A Address serving default page

My Website Works when you go to it, however Google Adwords is telling me that my site is redirecting/ not showing up properly to their bots. When you put the site into a website checker like GT ...
1
vote
0answers
488 views

GAPI output doesn't match Google Analytics website

I have to get the main info about my Google Analytics Goals. I'm using GAPI lib, with this code: <?php require_once 'conf.inc'; require_once 'gapi.class.php'; $ga = new gapi(ga_email,ga_password)...
1
vote
0answers
166 views

Best practice for suEXEC on complex sites?

What is best practice for using suEXEC on complex sites? We've got a site running under a single vhost, and we want to be able to run different PHP web apps eg /forum /wiki /crm as their own UIDs, to ...
1
vote
1answer
79 views

PHP webpages in sub-directory cannot be accessed

I've got a university club website at thing.uni.ac.uk/meow/foobar which also has the domain foobar.co.uk. I don't have access to the config. I set up this website using HTML/CSS/JS alone and it's been ...
0
votes
1answer
43 views

Need help setting canonical within PHP

First, I want to preface that I am not very good with php so I am looking for some guidance. I'm working on a website using Dreamweaver that is being accessed through .davaccess each php page has ...
0
votes
0answers
7 views

CPanel - replace all references in user account of domainA with domainB

Trying to solve an easy case for when a user's domain name expired (and got stolen by squatter wanting a ransom!), for a global replacement of any text in that user's cpanel folder of the old expired ...
0
votes
0answers
100 views

How to fix .htaccess error? Keeps asking for authentication

I'm setting up basic http authentication for my subdomain dev Laravel site with .htaccess and .htpasswd. First, I created my .htpasswd user and password by command htpasswd -bc .htpasswd admin ...
0
votes
0answers
9 views

Can multiple vhost use the same php-fpm pool

I have several vhost setup on my apache server. I'm wondering if there are any issues with them all using the default php-fpm www pool, if I have it set to ondemand? Some are development sites, some ...
0
votes
1answer
66 views

How can I resolve htaccess causing social media bots to see 404 response even though the page displays correctly?

I use the below htaccess code which appears to function correctly to rewrite URLS, however when a page is shared to social networks or scanned by bots like AHREFs, they all return 404 yet the pages at ...
0
votes
0answers
22 views

How to track internal redirect urls on Google Analytics User Explorer?

In our wp site the external urls replaced with internal links and when someone clicks on them they go to redirected external url, but those are not logged by google analytics user explorer. How to ...
0
votes
0answers
29 views

What Is The PHP Binary

I was setting up a cron job in cPanel and started with usual: /usr/local/bin/php I'm an SEO and not an admin or dev so I've never really thought to wonder what I'm actually doing. I get the broad ...
0
votes
0answers
26 views

New LAMP server running wordpress with 4GB instead of 1GB RAM, which settings to change?

I was having some problems with a LAMP server running a wordpress website. The server would become unresponsive even via ssh. The average memory usage was 90% according to 'sar -r'. Now the average ...
0
votes
0answers
751 views

Why cannot I reproduce Confirm form resubmission scenario?

I have the following code, which is just a simple HTML form (POST method). I have tried to get the "Confirm form resubmission" message of the browser, by sending the form, hitting browser's back ...
0
votes
0answers
440 views

Godaddy linux hosting The PDO extension is required for this adapter but the extension is not loaded

I'm getting following error on GoDaddy economy linux hosting. How to fix that. The PDO extension is required for this adapter but the extension is not loaded Error can be found at following url: ...