7
votes
Accepted
No input file specified - [proxy_fcgi:error] Got error 'Unable to open primary script: [PATH]/html/index.php (No such file or directory)\n'
It turned out that the problem was from customizing the domain's document root in the userdata files and then the PHP-FPM configuration had not been rebuilt and the service not restarted. The ...
6
votes
Accepted
Site loads funny
This looks like a problem with your DocumentRoot config option.
If you have access to your Apache VirtualHost configuration, you should append /public to your DocumentRoot.
If you're configuring the ...
5
votes
Accepted
Problems setting up a local site
You can't use the domain .dev anymore, it's Google's gTLD (https://icannwiki.org/.dev) and they don't want to share. See https://medium.engineering/use-a-dev-domain-not-anymore-95219778e6fd for a ...
5
votes
Accepted
Craft Admin assets do not load over https (Apache & Cloudflare)
The solution I came to was creating an Origin Certificate on Cloudflare, installing on it on my VPS, and setting the SSL setting to Full Strict. Now admin assets are loading perfectly over https. No ....
5
votes
Accepted
Anyone with a tricked out .htaccess file
Been using this one for years, works great:
<IfModule mod_rewrite.c>
RewriteEngine On
# ========================================= #
# Force website to use "www"
RewriteCond %{...
3
votes
Anyone with a tricked out .htaccess file
Since you mentioned in an earlier post that you are performance-minded, this might interest you: Stop using .htaccess files! No, really.
3
votes
Security test generated large compiled_templates directory, site outage
I don't have specific answers to your questions, but that's mainly because I feel there are some clarifications and observations that I think might be more helpful.
The thread you linked to is ...
3
votes
Can't access admin panel
I had the same issue on my mac and struggled for hours.
Having the right .htaccess file in place was key, but if you are not getting Craft's error messages, that's a sign your .htaccess file is not ...
2
votes
Can't access admin panel
As Brad Bell pointed out in a comment that you should use index.php, it might have something to do with your .htaccess and general.php
Your .htaccess File should look something similair to this:
<...
2
votes
Cannot omit index.php from URL
I have found the solution within the answered question:
omitScriptNameInUrls is not working
'sudo a2enmod rewrite' was needed!
Thanks all.
2
votes
Accepted
Optimizing With Http2 In Mind
So... just to be clear. This /style.css is a static asset, it's not sitting in the craft/templates folder, right?
Assuming that's the case, something is definitely wrong if https is taking 2 seconds ...
2
votes
Accepted
When saving an Entry, I receive a JSON response rather than returning to the Entry's edit page
IMO, the issue is with this line.
SetEnv HTTP_ACCEPT text/html,application/xhtml+xml,application/xml,application/json;q=0.9,*/*;q=0.8
With ACCEPT headers set to a fixed value, it's impossible for ...
2
votes
Accepted
Admin and Dashboard showing 404
In my case, my url routing wasn't functional because the mod_rewrite module in Apache was disabled. I enabled it with a2enmod, restarted Apache, and my problem was solved.
1
vote
Accepted
How can I setup a multi-domain under one Craft CMS
In Plesk, make sure that the DocumentRoot of the beer.com domain is the same as the DocumentRoot of the coffe.com domain
In Craft, create an other site having beer.com as its Base URL
1
vote
Accepted
Installing Craft in a Sub Folder
Ok I actually managed to fix this. I moved the index.php file from the cms/public subfolder to public_html and it worked a treat. I had to change the following code:
// Path to your craft/ folder
$...
1
vote
Craft 2.X Local setup error – Craft not connecting to MySQL (via Sequel Pro)
Rather then passing the database details in virtualhost. You should put the database server details in db.php file as below.
DB.php file below:
<?php
/**
* Database Configuration
*
* All of ...
1
vote
Accepted
Craft 3 vs Apache directory structure
If the craftcms folder is more or less the out-of-the-box Craft 3 installation, you should be able to just point your Directory blocks and DocumentRoot at /var/www/html/craftcms/web!
Only the web ...
1
vote
Accepted
Localhost can't connect to plugin store or updates (WAMP Server)
You need to download the CA certificate for curl and add it to your php.ini
1
vote
Accepted
Craft causing Apache2 to max out memory and swap
I sent the Craft 2 database to Pixel and Tonic, and Brad kindly updated it for me.
1
vote
Making a base url without /public
This is not so much a Craft question as a web server question.
The directory structure of Craft is intended for the web server to have the public (or web in Craft 3) directory configured as the ...
1
vote
Accepted
Craft cacheMethod setting is being overridden
The craft/config/memcache.php file has nothing to do with where PHP sessions are stored. It is for Craft's general purpose data caching.
If you want to save PHP session in memcache, you'll need to ...
1
vote
Accepted
HTTPs Site - Redirects Go to HTTP First & Then HTTPs
Think we figured out the root cause of this - we have a load balancer in front of our origin server and, long story short, that load balancer was communicating with our origin server via HTTP, causing ...
1
vote
Craft Admin assets do not load over https (Apache & Cloudflare)
Craft's default setting is 'resourceBaseUrl' => '@web/cpresources'. If your site or Docker Container runs http, Craft seems to (correctly) determine the http setup. This is why it ignores your ...
1
vote
Craft Admin assets do not load over https (Apache & Cloudflare)
It's probable that your Site URL in your website's config is using http rather than https. Setting it to https should force the control panel assets to load appropriately.
You can change this in ...
Only top scored, non community-wiki answers of a minimum length are eligible