Welcome to this Tutorial.
We are discussing How to Install and Setup New Statamic CMS Project on your Windows 10 / 11 Computer.
Before you begin installation of Statamic, you need PHP, Composer, Apache Server and Git Installed on your Local Computer.
Steps for Installing these tools are in the following posts
How to Install Latest PHP Version 8.2 / 8.3 on Windows 10/11
How to Install and Setup Latest Apache Server Program on Windows 10 / 11
How to Install Latest Composer on Windows 10/11
How to Install Latest Git Version on Windows 10 / 11
Setup of MySQL Database Server is not Required for Running Statamic. But to be future ready and later if you want to connect this Statamic CMS to database you may Install it as well
How to Install and Setup Latest MySQL Database Server on Windows 10 / 11
Statamic is File based CMS, that is it doesn’t use a database (MySQL) to store data or information. It stores all data / information related to it to files. This provides some operational advantages such as easy version control as all data is stored in files, files can be synced across computers. Another advantage is, that Statamic is easy and fast to setup as no database connections are required to be made.
After you have successfully Installed PHP, Composer, Apache Server and Git you can follow the next steps to Install and Start New Statamic Project.
Step 1
Go to C Drive in your computer then Go to php82 folder
In the folder files look for file named “.env” and open it in Notepad++
After file opened goto Line number 931 and You may find this line
As shown in the screenshot, Remove “;” at the start of Line “extension=fileinfo”
Save file.
Step 2
You may open terminal by going to Search in Windows type “cmd” and open cmd.
Then type this command. and Press Enter
“composer global require statamic/cli”
This will install statamic on local
Step 3
Close cmd and open new cmd
From command using command “cd C” then “cd folder-name-inside-c-drive” then “cd folder-name-inside-folder-inside-c-drive” and such you can Traverse to your intended folder from Terminal that is cmd
Similarly to come out of a folder you may type command “cd ..” and press enter, and you can type this command multiple times to come out of folder again
Using these command go to a folder where you will install Statamic new project for local development
After you’re inside the folder where you will Initialize statamic project
Step 4
Using cmd type this command “statamic new statamic-project”
Note- this will take some time to complete. More than 10 minutes.
During this command it will ask you if you want to add admin user
Enter Yes
Enter your email
Enter your password Then continue process
After its completed you will get a new folder in your directory as /statamic-project/
More details about this command is available at – https://github.com/statamic/cli#installing-the-package
Step 5
As in screenshot -> Goto project directory -> Right click on empty area of directory -> Click on Open in Terminal
Once Opened
Type “php artisan serve” and Press Enter
Open Browser
Go to localhost:8000 to visit welcome site
Go to localhost:8000/cp to visit dashboard
From here you can explore Statamic from it’s documentation
Statamic Documentation – https://statamic.dev/
You can start Reading documentation from here –
https://statamic.dev/core-concepts
It’s easier to understand from documentation than from Watching Youtube tutorials
Key concepts are here in theming instructions – To understand project structure visit this – https://v2.statamic.com/theming
by ajithimself@yahoo.com
Share
Get In Touch for Free Consultation!
Send Whatsapp Message to
+91 8793326974
Vishal Nagar, Pimple Nilakh
411027
Pune.
Near Wakad.