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'...
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 ...
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
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 ....
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
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
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 ...
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!
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
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 ...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
2
votes
Public folder confusion
The web root needs to be set to the public/ folder. All of the other folders can reside outside of the webroot.
Or, you could add a .htaccess file to the craft/ folder with this in it
RewriteEngine ...
2
votes
After migration to staging, requesting any page other than Home results in 500 error
This is solved by this thread.
The common thread here is Rackspace Cloud Sites, which apparently needs a RewriteBase / instruction in .htaccess.
Thanks @maxx and @christopher-healey
2
votes
Accepted
Installing happylager demo site on own server (not locally)
Thanks @BradBell , your comment made me recheck everything - i just forgot to take out the files from the public folder... now everything looks fine.
2
votes
I moved my craft site to a subdirectory, and things are broken now, help!
So I figured it out! my htaccess did not have the "." in front of them. So my htaccess in my subdirectory was not being read. Once I renamed it to .htaccess, it worked fine!
2
votes
Accepted
Any problems installing Craft on CentOS with SELinux enabled?
Someone with more CentOS experience will probably want to chime in—like you I'm more familiar with Debian/Ubuntu—but I can't imagine it wouldn't work, assuming you configure SELinux correctly and you'...
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.
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"
...
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.
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.
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 ...
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="/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
install × 132craft3 × 21
installation × 21
error-message × 11
config × 10
error × 10
composer × 10
php × 9
apache × 7
plugins × 6
url × 5
setup × 5
admin × 4
server × 4
404 × 4
nginx × 4
database × 3
permissions × 3
htaccess × 3
redirect × 2
mysql × 2
performance × 2
craft-pro × 2
security × 2
license × 2