Hot answers tagged

9 votes
Accepted

URLs other than index cause 500 internal server error

I changed the .htaccess-file after I found the same problem with cakePHP. I just had to add RewriteBase / after RewriteEngine On so the .htaccess looks like: <IfModule mod_rewrite.c> ...
  • 443
9 votes
Accepted

How to replicate a Craft installation as a starting point

Relevant link: http://buildwithcraft.com/help/license-enforcement But the TLDR is that purchases are tied to your craft/config/license.key file and the purchase will follow that file wherever it goes....
  • 66.5k
9 votes
Accepted

Why is htaccess file not named ".htaccess" on fresh install?

Because files that start with a . are considered "hidden" by many file systems (specifically OSX default). If the file is hidden, then there's a good chance that the user won't know about it, and won'...
  • 23.7k
8 votes
Accepted

Getting $craftPath error on server trying to get Craft running

9 times out of 10, if you're absolutely sure the path is correct, it's either a permissions issue (PHP doesn't have permissions to open the craft folder) or your php.ini file has open_basedir ...
  • 66.5k
8 votes
Accepted

Craft install via composer: install to public_html?

You can just rename web/ to public_html/, or move all the files inside web/ into public_html/. (Don’t forget to move the .htaccess and .env files, if the latter.) As long as the location of the ...
7 votes

Does Craft have an installer error log I can check?

Typically the Craft logs are stored here: /craft/storage/runtime/logs I don't know how much logging the installer does, but if it does any at all, that's where you'll find the log data. In the ...
  • 23.7k
7 votes
Accepted

omitScriptNameInUrls is not working

On recent Ubuntu systems (for sure on 14.04), mod_rewrite is installed but not enabled within Apache. You may just need to enable the rewrite module and restart Apache. $ sudo a2enmod rewrite $ sudo ...
6 votes

Mcrypt is required on OS X Mavericks 10.9.4

Here's all you need: http://topicdesk.com/downloads/mcrypt/mcrypt-download Works like a charm. Update: to use brew, you have to specify the version of PHP for it to work. For example: brew install ...
6 votes

Apache or Nginx for a Craft site

There is no "this over that" for Craft specifically. Your own statement "it depends" plays a big role. I would read this pretty extensive post on DigitalOcean "Apache vs Nginx: Practical ...
  • 2,824
6 votes

Apache or Nginx for a Craft site

Putting aside Craft for a moment, it's not just Craft, you'll usually end up throwing more things on a web server as time goes by. If those scripts/apps are expecting an .htaccess file and you're ...
  • 6,502
6 votes

Install Craft 3 on Web Server

Here's a tutorial on setting up your first Craft CMS 3 project. I'm a little sad that it didn't come up in any Google searches :( Setting up a New Craft CMS 3 Project
  • 11.1k
5 votes

Craft install stuck on "Oops" screen

The cause of this is most likely an overloaded (very common if this is a shared hosting account) or misconfigured MySQL server. The installer itself should only take 10-20 seconds on 99% of hosts. ...
  • 66.5k
5 votes

Load balancing nodes configuration (3 Craft nodes behind F5 Big-IP)

Update: Am I allowed to change my mind on this? :) My original answer didn't take into account storage/logo, storage/backups and anything else that a plugin might be storing in the craft/storage ...
  • 66.5k
5 votes

How do I install Craft in shared hosting that doesn't allow index.php in a sub-folder

It's not so much that you can't have the index.php file in a subfolder that might be an issue; it is that you can't put the craft folder above your webroot. If you have access to the folder that ...
  • 7,248
4 votes
Accepted

Title vs Heading in Fresh Install?

The short answer is, we should probably update that :) The long answer is: The homepage is a “Single” section, and originally, Singles couldn’t have dynamic Title fields like Channel and Structure ...
4 votes

Does Craft have an installer error log I can check?

All of Craft's log files get stored in craft/storage/runtime/logs. If you're running in devMode, then any log message with a trace, info, warning or error severity error will get logged there in ...
  • 66.5k
4 votes

Getting $craftPath error on server trying to get Craft running

If your permissions are set correctly, your php.ini is all correct, your craft folder exists and everything seems like it should work fine... Make sure you have the app folder inside the craft folder ...
  • 564
4 votes

Fatal error: Class 'Craft\FileCache' not found when trying to install

After checking out the craft/app/etc folder, I noticed the cache folder was missing. It turns out that the problem was with my FTP client ignoring folders named "cache". So really a dumb mistake on my ...
  • 346
4 votes

Error when trying to test Craft Pro on .dev

I found a solution! I had my local environment setup with homebrew following this article's instructions. After looking at the php error logs, I uncommented always_populate_raw_post_data = -1 in the ...
4 votes

Public folder confusion

I'm on a Windows 10 environment with WAMP installed and I had exactly the same problem. Front End failed. Back End worked fine. News links failed. Clicking on website name link from the Localhost ...
4 votes
Accepted

Changing the name of the Craft folder when placed above the webroot?

Yes, you can change the name of the craft folder. In the index.php file in the public folder update the path for the craft folder in the $craftPath variable. I use the following naming scheme for my ...
4 votes
Accepted

Having issues with Craft install on Laravel Valet.

Talked with Justin via DM on the Craft Slack. As per that discussion, here was the solution: The Valet docs are extremely misleading. When detailing how to use the park command, they list running ...
4 votes
Accepted

Can I rename my craft/ folder?

Absolutely! In fact, you've outlined the steps needed to do so... Rename craft folder Change $craftPath value in index.php That's it!
  • 23.7k
4 votes

Install Craft 3 on Web Server

While Craft 3 is still in beta, the only way to install it is via Composer. If you’re unfamiliar with Composer, it’s a package manager (like npm) that attempts to make installing and updating PHP ...
4 votes

help setting up web root to point to /web

You need to configure your webserver/virtualhost to point to the /web directory. For apache you have DocumentRoot: your_disk_path/web For nginx you have root: your_disk_path/web
4 votes

Composer require looking to craft/plugins/[plugin] directory but throws runtime error?

I found the real root cause. A internal business plugin which I migrated from Craft 2 to Craft 3 had a composer.json file which required composer/installers and that little bugger was mucking up the ...
4 votes
Accepted

Correct setup for Craft 3 and Git

This article might be of use to you: Setting up a New Craft CMS 3 Project The DEPLOYMENT section talks about using Composer to install our dependencies, and not checking them into Git. That means a ....
  • 11.1k
3 votes

Getting blank screen at domain.com/admin when installing

I'm documenting this here in case it helps someone else. My white screen during installation was caused by a missing comma between array items in my general.php and db.php config files. Once I added ...
  • 2,455
3 votes
Accepted

Multiple Craft install configuration in subdomains

I also use MAMP. Here's my general process (I've used generic names in this example; but feel free to rename folders, hosts, as needed): create the folders for your two sites: /Applications/MAMP/...
3 votes
Accepted

Is it possible to get the md5 hash of Craft's latest version from the download server?

Currently not, but that's not a bad idea and probably worth adding to https://feedback.buildwithcraft.com. During an auto-update, the file name of the patch file that is downloaded happens to be the ...
  • 66.5k

Only top scored, non community-wiki answers of a minimum length are eligible