I am beginner for symfony. I have to configure the already developed project that is built using symfony. I changed the database information but when browse localhost/myproject/web there is nothing displayed. What can i do to configure the project in local server. I have created the database as well. Hope to get help. Thanks ..........
you need to point apache to the web folder in your symfony project. or if your project reside inside apache web root you could use:
http://localhost/myproject/web/index.php but that won't show any errors. insted of that you could use:
http://localhost/myproject/web/frontend_dev.php where frontend is the name of front controler ( this file is in web/ folder).
and if then you don't get any output look into your apache server error log to find why project isn't working.
few resolves:
when in symfony project root execute this in command prompt:
php symfony cache:clear
php symfony fix-perms
and then try url above.
more info here
Related
I am trying to train myself on Spring security and started looking at Baeldung.com website and examples posted for public download at github repository https://github.com/Baeldung/spring-security-registration. I downloaded the source code in this repository as ZIP and imported in netbeans. Following the instructions in README.md, I built it using mvn clean install. Application spring-security-login-and-registration downloaded all dependencies and built clean. But I don't have a clue how to configure the MySQL database needed for this application.
Do I need to download MySQL server and have a server instance on my localhost?
If yes, where would I get the scripts to create the schema/tables needed in the security application? I can't find the scripts anywhere in source code. Anything similar to hSQL going on here?
Any help is appreciated.
Yes you need to download MySql from here https://dev.mysql.com/downloads/windows/installer/8.0.html.
And need to configure few things during installation like username and password.
And update these fields inside you database properties file.
################### DataSource Configuration ##########################
jdbc.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/YourDatabaseName?createDatabaseIfNotExist=true
jdbc.user=YourUserNameForMySql
jdbc.pass=PasswordHere
You can start you mysql on windows by executing this command:-
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe" on command prompt
Meanwhile you can login to mysql shell using this below command on terminal:-
mysql -uroot -proot
I want to inject angular6.0 to grails 3.3.0,the detail is I have 2 project,the first is angular6.0 project for frontend,and the second is grails3.3.0 for backend provide http service.
angular project have some simple pages,just like
http://localhost:8080/
http://localhost:8080/project-list
http://localhost:8080/download
I get some idea from this article.
when the angular project finished,I run build and get a dist folder,I copy all files and folders under dist to grails under src/main/webapp
enter image description here
then start grails service in IDE.OK I can visit http://localhost:8080/, but all request for static pictures I get 404.
enter image description here
when I run grails war script and run it use 'java -jar',I can visit http://localhost:8080/ and all request for pictures is OK,great.
but if i refresh the page of 'http://localhost:8080/project-list',I get 404 and I know why,but I do't know how to resolve it.
anybody help?thx
some days later,I get some idea,not good but can resolve some problem.
first of all,the angular project should run with #(maybe means hash,sorry I'm not sure)in url,just do this
RouterModule.forRoot(routes, {useHash: true})
it's not enough,if you just do like that,you may get some error when you run your angular project in dev env,just like https://github.com/angular/angular-cli/issues/10582, I have no idea,but if you start the project with -aot just like
ng serve --aot
error is gone.
build the angular project and copy the dist folder in to grails,and start grails project,the static pic is still not ok,no idea. when you execute 'war' and use 'java -jar' to run the war file,when you visit http://localhost:8080,everything is ok.
that's all,if you have some good idea,please tell me,thx before.
I just installed Tomcat 7 and Solr 4.9.1. Configured everything by following this guide.
http://eemglobal.com/2014/07/setup-rails-4-with-sunspot-gem-and-solr-4-7-in-production-environment-on-ubuntu-14/
Everyting works as excepted. But I cant create a new core, to use sunspot integration.
Here is the explantation about the issue.
I created a new core by cloning the folder collection1, then chooose the file core.properties and change name="Your folder".
P/S: http://www.nopaccelerate.com/wiki/configuring-apache-solr-to-use-with-nopaccelerate/
I am attempting to get a Grails project working but need help setting it up. I have an Ubuntu server running on a VM that has Redis installed. The project won't run unless I create a config file that can use Redis on the Ubuntu server. This is the settings I pulled down from GitHub located in the grails-app/conf/Config.groovy file.
http://snag.gy/eYhUY.jpg
I was told I need to create a separate config file that will override these parameters so my project will talk to the ubuntu server on my machine. This is a noob question but where do I create a config file? I can't seem to find a .grails folder. I know I'm suppose to reference my config file, once i've created one, in the grails-app/conf/Config.groovy file
http://snag.gy/SpGGt.jpg
Look at the grails.config.locations specified in your Config.grooy and you can create any of those locations for creating the external Config file.
I prefer using the classpath route. Here is what I would do.
Create a folder (say appConfig) and place it in the tomcat/conf folder.
Add the application config file (proghorn-config.groovy in your case) to the folder, with the required configurations in the file.
Add the folder to the Tomcat classpath by updating either the tomcat/conf/catalina.properties or by creating the tomcat/bin/setenv.sh
The location of the .grails folder depends upon the user account running the container (Tomcat, Jetty, etc.) which hosts your Grails application.
For example on Debian 6 running Tomcat 6.x the location is:
/usr/share/tomcat6/.grails/
You can also use static paths as well:
file:/usr/local/tomcat/conf/myspecific-config.groovy
Highcharts (Highcharts), just released an update to their offering with a bundled export server. This is to enable you to generate charts serverside and include them automatically in emails/pdfs/etc.
Their instructions on how to prepare this is: Github instructions
I'm running XAMPP on Mountain Lion. I have successfully built the war package and opened the demo page.
I am now preparing a war for the production environment (centOS 6). The production site is running the Yii framework.
What I do not understand, the variables that need to be configured:
app.properties = weburl
dev.properties = weburl
prod.properties = weburl
In a MVC framework environment (such as yii) what should these url's be?
2.After the war is created, the github tutorial says to upload this file. But, what other files are required? The entire exporting-server directory? If so, where on the server should these files be placed? Is the file location the url path that should be referenced in the weburl variables?
Greater clarification on how to setup/deploy the export server would be much appreciated.
The created .war file should be uploaded to an Java application server, such as Tomcat, Jboss, TC-server, Glassfish, etc.
It's not suitable to run in a PHP environment.