Is there any way to fully and manually install Wordpress via a script / CLI?
I've tried to configure wp-config.php to do it, but I can't seem to be able to pass the language selection page.
I've tried to manually download the language package and add a line to the config file, as follows (assume sudo where needed, as well as the correct path to everything):
wget https://downloads.wordpress.org/translation/core/5.5.1/en_GB.zip
unzip wordpress-5.5.1-en_GB.zip
sed -i $'That's all, stop editing! Happy publishing./idefine('WPLANG', 'en_GB');
As for the following steps, below in images, any idea as to how I can achieve a full installation or where could I find more information regarding my problem?
This server is running on a VM (VirtualBox), powered by CentOS 8.
Images of the necessary steps in the browser:
Yep, the nifty: wp cli, from here: https://wp-cli.org/
wp core download
wp config create --dbname=YOURDBNAME --dbuser=YOURDBUSER --dbpass=DBPASS
wp core install --url=http://www.example.com --title='My WP Site' --admin_user=ADMINUSERNAME --admin_password=CLEARTEXTPASS --admin_email=ADMINEMAIL --skip-email
And you are done :)
WP loading calls is_blog_installed() which checks a number of things and decides whether to show the install screens.
From the looks of it, you must set the siteurl in wp_options table to load the site instead of the installer
This could be relevant as well: https://wordpress.org/support/article/automated-installation/
Related
New to php with VisualStudioCode, i'm searching a method (settings, extensions, ...) to add a path to include php library, for code completion only.
Let's say, for the example, that I'm working on a wordpress plugin.
My VSC working directory is /Users/richnou/Documents/my-wp-plugin/ which contains only the plugins files (php, sass, css, gitignore, etc...) ; they are automatically sent to a development server.
With this configuration, all the core Wordpress functions are Undefined function (I have PHP IntelliSense and PHP Intelephense installed).
There is a way to specify folders that will be scanned for code completion and hints ? So, one Wordpress Code installed in a common directory (say, /Users/richnou/Documents/wordpress/ for ex.), so outside of my directory. (Netbeans has this "include path" notion...)
Thank's in advance
Problem here is that Documents folder is secured, so put plugin file on path /Users/richnou/
Solved my problem
One solution (not ideal but which works) is to go through a symbolic link to a local installation of Wordpress...
ln -s /Users/richnou/Documents/wordpress/ wp
This is the admin panel of my newly installed, unaltered install of Magento 2.2.5 in XAMPP 7.0.30 / PHP 7.0.30:
I am brand new to this, but I have done my best to find an answer or even just a solution on my own. I need help.
I do not see any folder with the path localhost/pub/static/version1532138534/adminhtml/Magento/backend/en_US/extjs/resources/css/
I've been struggling with this all week. I've fresh installed both XAMPP and Magento, trying multiple versions.
I've tried different browsers, and changing my browsers settings, and clearing my browsers.
I've tried installing XAMPP and Magento on MacOS instead, and found a new issue, that prevented me from even getting to this step, which I then banged my head against for 6 hours or so before giving up and going back to Windows.
I've pored over the web trying to find a solutions, but I can't even find anyone with the same issue.
Obviously, I am doing something wrong... and I want to know what, but I just can't seem to find any answers.
do the static content deployment.
take backup of core_config_data table
go to phpmyadmin and run insert core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0);
go to your magento root folder using command line.
run php bin\magento cache:flush
run php bin\magento setup:static-content:deploy -f
your problem will be resolved.
Solution:
If anyone is having the same issue, here is what worked for me.
I added "C:\xampp\php" to my system variables/path.
Search "System Properties" from the start menu and open it.(New Window)
Select the "Advanced" tab.
Click "Environment Variables". (New Window)
From "System Variables", select "Path".
Click "Edit"
Click "New"
Type "C:\xampp\php"
Hit "OK" x3.
This appears to have allowed me to use php commands in my command prompt.
Then, I ran the setup for the Magento file in "C:\xampp\htdocs\Magento\bin". (This may be redundant.)
[You can see a full list of available commands with "C:\xampp\htdocs\Magento\bin php Magento"]
Open a command prompt. (win+r, cmd, enter).
Navigate to the bin folder. (cd c:\xampp\htdocs\Magento{*this may be unique to your setup}\bin, enter)
Run the setup. (php Magento setup:install)
Finally, I deployed all static view files.
In the same directory as before deploy static files. (php Magento setup:static-content:deploy, enter)
After this, in a browser, I navigated to localhost/Magento, and ran through the Magento setup again, and the issue is resolved.
https://i.stack.imgur.com/gAEIQ.png
After reading any kind of solution, i need your help to solve my problem.
Magento 2.1.2, PHP7, Ubuntu. Fresh install, created new theme. When i switch to the new theme, this error appears even in frontend that in backend (backend shouldn't be a problem!):
Frontend error
Backend error
Already tried:
Switch back to original template
php bin/magento setup:static-content:deploy
Set developer mode
var/cache and pub/static (less then .htaccess) cleaned
Ownership check (magento_user:www-data for all files), permissions ok
I think it's just amazing! I can understand any problem, but this is really strange. Why should the backend be affected by this problem? Why, even if i set mode developer, magento 2 tries to get some "static/_cache" CSS file?
Thanks
I hope, you have already found the solution for your issue but it
might be useful for future surfers.
The path for the frontend compilation in admin panel is given below:
Stores > Configuration > ADVANCED > Developer > Front-end development workflow
But, if there is an error in Backend panel as well then the listed issue can be resolved by running the update query in the database.
update core_config_data
set value='server_side_compilation'
where path = 'dev/front_end_development_workflow/type';
I am not sure what's going on with my magento installation.
I downloaded the latest version of Magento 2.1.1 as zip.
Extracted, setup a database then tried running the install but I keep on getting this stup*d error and I could not find any answers online.
Can someone help me on this one please? Its been a while since I used magento since I got used to working with Wordpress websites.
I tried looking for the file manually, but just like the error said, it does not exist. Where can I find this registration.php file under magento/framework/ folder?
Try run this command in your magento root folder.
composer dumpautoload
Then reload page you've got this error.
Still not working ?. Fell free to reply :)
If you are using composer to Install, the solution is simple re run the commands from the Magento Root Folder.
Inside /vendor/autoload.php there is a Base Path Global Variable that take the path to execute the vendor_path.php, and, in my case, it take the path where I am and not the Root.
I hope this is helpful for someone.
Have a nice coding day
please run
composer dump-autoload
to reload composer autoload files this issue mostly when you update a library and then fall back to original but magento composer files doesn't fall back to original so you need to generate files again.
I have added BigButton as a plugin in my Moodle 2.7. I need to include the polling module inside it. In my BigBlueButton on my tool bar polling module is not showing. How can I enable polling module into it. I referred this 'https://code.google.com/p/bigbluebutton/wiki/PollingModule'. Please tell me what to do?
You should edit /home/yourusername/dev/bigbluebutton/bigbluebutton-client/client/conf/config.xml (the path might be different for example in /var/www/...)
and uncomment the part
For HOSTNAME it should be your bigbluebutton host name.
change the file, save, then type sudo bbb-config --clean to make a fresh start, you should see the polling module in the toolbar.
regards,
Melih