I am new to Magento. I have installed Magento on localhost and I am using XAMPP (Windows) server. The installation was successful.
And when I opened the home page, it was so blank with no images on it
Store home page:
When I opened the console I got the following errors
Console errors:
How do I fix this?
It is a common problem on windows servers (mostly local xampp servers) because these servers dont have symlinks.
Do this to fix it:
go to app/etc/di.xml and delete name="view_preprocessed" in virtualType name="developerMaterialization" section.
go to pub/static and delete all files except the .htaccess
after that I installed it again and it worked
Install composer. You can use Composer to install Magento 2. It is a tool for dependent management in PHP which allows you to declare the dependent libraries your project needs and install them for you. Composer enables you to manage Magento 2, extensions, and their dependencies
Check permissions of the /pub/media and pub/static folders
system permissions for Magento 2
Related
I'm in a trouble trying to install phpBB on openshift.
I have created a php5.3 cartridge with PostgreSQL: I unpack phpbb on a folder of my app, I push the change, then I run the installation form the browser.
The forum installation is successful.
In the end I need to delete the "install" folder in order to enable the forum.
I tried it on my standalone wampp server and it works.
So I delete it in my repo, and I commit and push the change.
When the app restarts it automatically tries to go back to the installation: everything is broken.
It seems the push breaks the configuration on the server side.
I also have tried to change the name of the directory using ssh connection, and move the install directory name: this is uneffective.
What's the problem here?
The problem is that if you deploy the phpBB package as downloaded from official website app the files will go on app-deployments with are not persistent on git changes and can not be pull to local. You can try using the OpenShift quickdeply version of phpBB (https://github.com/openshift-quickstart/phpbb-example) that deploys the files to app-root/data (I think :S) and this reamins untouched on git changes.
The "install" folder is at app-root/runtime/repo/php
I installed Heroku on Wordpress by using the guidelines from https://github.com/mhoofman/wordpress-heroku. The system works fine. Only when I try to install plugins I receive the error message
Abort class-pclzip.php : Missing zlib extensions.
The error message is clear, zlib missing. I was just wondering if anyone of you had the same issue and can provide some best practices how to solve the problem?
It seems that heroku does not allow you to create files and you have to extract plugins and themes locally inside their folders respectively and push your changes back to your heroku repository. From the wordpress-heroku documentation:
Because a file cannot be written to Heroku's file system, updating and
installing plugins or themes should be done locally and then pushed to
Heroku.
Heroku does not allow you to modify files. You cannot use the backend of Wordpress to do those things if the site is hosted on Heroku. You have to install locally and then deploy. There is a good tutorial here:
http://wptutorialguide.com/wordpress-on-heroku/
I want to install intervention/image package on my web server i had installed on my localhost , and i want to install it on my web server , Can I Install Laravel 4 package without using Composer? because i don't have acces to use command prompt on my web server.
How are you installing Laravel and the other dependencies already?
Just install it locally like normal then copy your vendor directory along with the rest of your project to your host.
it's possible for you to just upload your vendor directory with ftp, but I wouldn't advise it to you.
Couple of reasons:
You don't want to upload your dev-dependencies, so you would have to handpick which folder to upload - everytime you want to update your dependencies
Uploading over ftp is very slow, so that might take a long time
You don't get the latest versions of the dependencies (which could resolve some security issues)
You wouldn't get any warning if some package isn't compatible with your environment.
I suggest you to use a host that gives you CLI, or even better that can directly run composer when you push up your files, as hannesvdvreken said, fortrabbit (Disclosure: i work there).
If you are running PHP on a shared host without composer you still have some options left:
Install composer on the server in the same folder as your project,
Upload composer.phar to your server,
Change your hosting provider (try fortrabbit),
Upload your vendor folder from your local computer to your server. (Last resort)
Yes you can download it via LaraPack. It provide you ready-to-use Laravel instalation, so you don't have install it with Composer. It also gets weekly update.
i have pre developed site ( using joomla )
i should make some editing to the database using xampp server
should i install joomla ?
and when i enter
localhost/project/index.php
i get this message
You may not be able to visit this page because of:
an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
I think you don't need install it again. You did it before, just you need to install Xampp to run Apache and MySQL. Then copy your files in its htdocs folder in a certain folder (Like joomla). But pay attention that you must have a backup from your previous database. Otherwise, you need to install joomla again to create database and its tables.
I used AMPPS to do the same. You can import your current installation of Joomla in Softaculous provided by AMPPS. AMPPS is also a WAMP Stack with auto-installation of more than 230 open-source scripts. All the site installed by AMPPS and imported manual installations will be managed by AMPPS.
(Note : Your config file of Joomla should be proper. Take bakup before importing)
If nothing works you can still install Joomla again as it is easy using AMPPS. Hope this helps. :)
It seems I set up everything correctly. I received no errors.
I used zf create project and it created the project no problem.
I went to localhost/site and instead of showing the welcome to zend page it opens the directory and shows me its contents. I have to go to localhost/site/public to see that page.
I tried creating a new public action in the controller and added a file in the view scripts portion but it didn't show up.
The project is located in /var/www/html directory
What could I have forgotten?
Steps I took:
Updated repositories before downloading and installing stuff
Install linux
install apahce
install mysql
install php
install phpmyadmin
install zend framework minimal
install phpunit
install subversion (but did not combine it with zend)
That's about it, I didn't do anything more than that.
By default it is assumed you will run the project from a Virtual Host with the DOCUMENT_ROOT pointed at /path/to/project/public If you want to run the site in a subdirectory then this subdirectory should only contain the contents of what is currently in public, and you would need to modify the configuration settings to run with this setup.
Check out the Quickstart section "Create a Virtual Host" for more info.
The easier option here is just to create a Virtual Host for the project and add a host entry to /etc/hosts like:
127.0.0.1 zfproject.local