Trying to install and configure Sulu CMS.
I am using Homestead and have configured the vhosts to welcome a new site and have run vagrant provision:
sites:
- map: sulu.cms
to: /home/vagrant/Code/sulu_cms/public
I have pulled sulu-standard from the GIT repo, checkedout, ran composer install and followed the instructions given here to the dot. I am also using the Nginx configuration shown here and the default Webspace provided by the installation.
However, when trying to access the host after I am getting a 502 Bad Gateway error. Could anyone enlighten me on the issue?
I am running Homestead on Windows 10, I have a couple of other Laravel-based projects running in the same Homestead box without any issues.
You've also created an issue for that on Github and posted the answer there. You've mentioned there that the vagrant mapping was incorrect, because it showed to a non-existent public directory instead of the web directory.
So the correct vagrant mapping would look like this:
sites:
- map: sulu.cms
to: /home/vagrant/Code/sulu_cms/web
Would be nice if you could also mark this as the accepted answer, or create a more detailed one on your own.
Related
I have a problem, with the plugin WP2Static in wordpress, when generating statics files, the folder is created well but not the files.
Export log:
cURL error: Could not resolve host: statics.mydomain.com
I'm using a VPS with Debian 9.
wordpress version: 5.2.1
WP2Static version: 6.6.5
I use Docker to generate my wordpress.
PS: The domain name used does not exist (statics.mydomain.com), I add it to the hosts file.
Target Directory:
/var/www/html/statics/site1
I installed the project on a VirtualBox and the plugin works fine. The problem must come from the DNS but I can not find the solution!
Have you ever had this problem ? Do you have any suggestions?
Thank you so much!
This is as you suspect a DNS resolution issue.
When you add the entry to your hosts file, I presume this is on your host.
The docker container running your application also needs to know where statics.mydomain.com resolves to.
Add an entry to the hosts file within your container running WordPress. You can then test by running cURL on CLI within that container.
WP2Static uses WordPress's knowledge of the Site URL and Home URLs from its Settings area. Ensure that these are also set to statics.mydomain.com and not overridden via wp-config.php.
Hey guys I'm new to vagrant. I have used Homestead box. I have created Symfony4 Project but seems I can't locate the project folder..
Create Project In.
vagrant#homestead:~$ composer create-project symfony/website-skeleton Symfony-Demo
Homestead.yaml Config
folders:
- map: C:\homestead
to: /home/vagrant/homestead
sites:
- map: Symfony-Demo.test
to: /home/vagrant/Symfony-Demo/public
type: symfony4
Symfony-Demo.test is running well in browser.
Your application is now ready. You can start working on it at:
/home/vagrant/Symfony-Demo/
The problem is I don't know where the project is located.. C:\homestead is just empty..
Folder sharing in windows is just tricky...
did you first create the folder on windows? vagrant guest reads what's on the host, not the other way around as usually implied in the doc
did you switch to using winRM, which is a lot more efficient for windows?
are you kicking up vagrant from a command window run as administrator? are you using an administrator-level account to log in to winRM?
I just finished installing Wordpress (through Bitnami) and am running an Apache server with XAMPP. After installation, it tried to load the initial blog page and had the error. I can access localhost, but not the http://localhost/wordpress. No other questions about this topic seem to have this same problem.
Try this:
Create a new folder (site)
From the link below, download and extract the WordPress loader (installer) php script into the new folder:
http://www.alistercameron.com/2010/04/09/wordpress-loader-faster-easier/
Run http://localhost/<new_folder>/wordpress_loader.php and follow the on-screen instructions to complete the installation
I have minor problem here. I try to install phpmyadmin in my machine. Before I start install phpmyadmin, I have done installing LEMP.
Details:
Ubuntu 16.04
Nginx 1.9.15
MySQL 14.14
PHP 7.0.4
Steps for install phpmyadmin I follow here:
How To Install and Secure phpMyAdmin with Nginx on an Ubuntu 14.04 Server
After I done with installing phpmyadmin then I go to my web browser and click this http://server_domain_or_IP/phpmyadmin. It should show up interface of phpmyadmin. But mine show a pop out like this.
I do not have an idea what is happening. Hope anyone can help me.
thank you!
It seems like nginx is running but doesn't know how to handle the PHP processing. Try
service nginx restart
If that doesn't work, try making a basic PHP file in the server root, something like:
<?php echo "PHP is working"; ?>
And see if you can get that to load properly.
If you pass those two steps and still have trouble, my next guess is that the phpmyadmin site is not properly enabled. Check that the link for the site points to the right place. This talks about virtual hosts (albeit for Ubuntu 12.04 but should work):
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3
If it still doesn't work, you can download the tar.gz of phpMyAdmin and manually configure to see that it gets going.
I've followed the instructions for installing phusion passenger with nginx in ubuntu. I had some issues while installing since I use rvm and I had to install as root and the installer was failing to find rake so i temporarily chmoded /opt to be owned by my user and after installation I resetted ownership to root. I can see nginx welcome page but when I try to visit a sinatra app I get forbidden, the virtual host is pointed to the sinatra app public dir and the permissions for the whole app are 777.
Try Passenger 3. It automatically detects most permission problems and tells you how to fix them.
If this is for a production system, you really don't need the flexibility of RVM as you should be using a single stable version of Ruby and Rails for Phusion. Install the version you need, using Aptitude if that version is available, and be done with it.
Because this is the page that Google brought me to for my issue, which isn't a Passenger issue, but a Nginx reverse-proxy issue, you need to add the line
disable :protection
somewhere in your sinatra app. I have mine at the very end, outside any method (in global scope).
Well my mistake was not using rvmsudo to install nginx with passenger, instructions here: http://rvm.io/integration/passenger/.