Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
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'...
Lindsey D's user avatar
  • 24k
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 ...
Brandon Kelly's user avatar
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
andrew.welch's user avatar
  • 11.6k
5 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 ....
andrew.welch's user avatar
  • 11.6k
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!
Lindsey D's user avatar
  • 24k
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 ...
Jalen Davenport's user avatar
  • 3,045
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 ...
Crafty Cockney's user avatar
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 ...
Ian's user avatar
  • 564
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 ...
Cavell Blood's user avatar
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 ...
Jalen Davenport's user avatar
  • 3,045
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
dustfeather's user avatar
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 ...
Greg Bowne's user avatar
4 votes
Accepted

Missing the "Settings" tab in admin panel

It's likely because allowAdminChanges is set to false for the staging/production environment in the config/general.php file. This is generally done purposefully so that you don't run into any issues ...
GTerrill's user avatar
  • 311
3 votes
Accepted

Manually creating Security Key gives PHP error

Well then. Apparently my shell user was using a different version of php than my domain. I was still at 5.6 on my shell user. I was all sorts of confused because I had a phpinfo.php file setup at my ...
Shad's user avatar
  • 451
3 votes
Accepted

Install instructions

If that's what you see when you go to the URL, then you probably don't have the server root set properly. It should point to the web/ directory, not the project root. Some more helpful Craft setup ...
andrew.welch's user avatar
  • 11.6k
3 votes
Accepted

No index.php file created during install using composer

Your index.php file should be found under the web directory. All of the other files and folders installed by composer are considered to be above the root which is recommended for security reasons. ...
Matt Shearing's user avatar
3 votes

How can I "clear" an entire website

You could achieve this using a tool like schematic https://github.com/nerds-and-company/schematic This allows you to generate all your fields and sections from a file without content. Combine this ...
Pautomagi's user avatar
  • 271
3 votes

Craft CMS 3 Installed but not working

Your answer didn't end up working for me, but I did get it working. Update (or add) "vlucas/phpdotenv": "^5.0" to composer.json Edit the craft (or index) file's contents: // Load ...
Tammy Shipps's user avatar
2 votes
Accepted

Moved server (centOS7) "Please ensure that $craftPath is set correctly"

So as it turns out Vesta has a funny way of handing httpd config files. There was another one tucked away somewhere where "open_basedir" They are kept in "/home/admin(username)/conf/web/httpd.conf" ...
Kitsune's user avatar
  • 333
2 votes

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

It depends on how you run Craft. I use Valet which doesn't work with Apache. It's basically there if you need it, but it's not mandatory.
Thomas Claessens's user avatar
2 votes

Clean install - Service Unavailable message at setup

Had similar issues. Found the problem was in the .htaccess file. Without code fixes, visit http://example.com/index.php/admin instead of http://example.com/admin Then fix your htaccess file later.
Brock's user avatar
  • 23
2 votes

Can't send emails

Oh, just use settings->email and setup SMTP or POP3 account duh. I'll leave it here just in case someone is as forgetful as me.
Lukigi's user avatar
  • 565
2 votes

Installing Craft 3 RC on MAMP Pro - Pointing to the file directory

Craft 3 does not come up with templates or default entries like Craft 2 so your templates directory is probably empty. As soon as you create some files there and link them to your entries you won't ...
Robin Schambach's user avatar
2 votes

Craft 3 via composer with Mamp Pro

Incase helps any other designer come devs who haven't a full grasp on dev/CL workflow, these steps worked for me – with thanks to craft support/community: in terminal, run exactly this: PATH="/...
user2569's user avatar
  • 457
2 votes

Craft 3 via composer with Mamp Pro

nystudio107 just released a nice guide yesterday for setting up a Craft 3 site via composer. No mention of Mamp Pro, but I don't think that should really be a problem if you're already used to using ...
Ryan's user avatar
  • 1,952
2 votes
Accepted

Problem setting security key when installing Craft 3

Add this line to your ~/.bash_profile file export PATH="/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php7.0.0/bin:${PATH}" Assuming your php7 version in mamp is 7.0.0 of course. Here ...
John's user avatar
  • 974
2 votes

Problem setting security key when installing Craft 3

Recent versions of macOS High Sierra come with PHP 7.1.7, so another option is you can try upgrading your OS.
Brandon Kelly's user avatar
2 votes
Accepted

Blank screen for /admin and public site with Craft 3

What you'll want to do is change the CRAFT_BASE_PATH in your index.php file. Look for line 7, and change this: define('CRAFT_BASE_PATH', dirname("__DIR__")); to this: define('CRAFT_BASE_PATH', ...
Thabang Chukura's user avatar
2 votes

Installing Craft 3 - Internal server error

I have had a similar issue when using MAMP on OSX. The "solution" was to switch MAMP to use Module mode (all hosts use the same PHP version) rather than FastCGI mode (where you can run different PHP ...
foamcow's user avatar
  • 2,019
2 votes
Accepted

'Craft requires PHP 7.0 or later'

I'm afraid Craft 3 requires PHP 7. https://docs.craftcms.com/v3/requirements.html Craft 2 will work with older PHP versions (5.3 to 7.1.x) so you could fall back to using that. https://docs.craftcms....
foamcow's user avatar
  • 2,019

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