I am working on a Symfony project (eshop website). I developed my website with symfony 5.4 and I have been using the command symfony serve to get a live server during the development.
My website is actually working well, but now I need to personalise the url and not using localhost or 127.0.0.1 url by default anymore.
I added the new url I chose in the ".hosts" file in the directory "C:>Windows>System32>drivers>etc" and the server info in the "httpd-vhosts" file in the directory "wamp64>bin>apache>apache2.4.46>conf>extra". Then I used the command "composer require symfony/apache-pack". My website is now working on the new url and I still GET all the data from my Database.
The issue is that I can't Post data in my database anymore using this new url. For example, I can't add a new User, add a product to cart or log a user.
But everytime I run the website with the "symfony serve" command and use the url 127.0.0.1, everything is working well (Add or log user, add product to cart etc.).
Did I miss a dependencies to run it well on the new url ?
Related
I have a wordpress multisite on a unix server , which I need to replicate on another unix server(lower instance). There are other wordpress multisites on the same unix server which are working properly . Wp cli, php and nginex configurations are also set up correctly.
So far what i have done is:
create a new folder
do a standard wordpress installation.
replace the wp content files with the contents in the existing server.
Migrate the db to new server.
configure wp config get with the new db details.
add new server block in nginex.
I have setup the domain url as the server name itself, as it was like that in the original instance.
nginex is up and running , still the domain url is taking me to redhat server home page.
What step might I be missing?
I'm following the tutorial on Lighthouse website for the master version (4.1).
https://lighthouse-php.com/4.1/getting-started/tutorial.html#installation
I make a fresh intallation of Laravel 5.8, then I execute the commands written in the tutorial (beside npm install)
composer require nuwave/lighthouse mll-lab/laravel-graphql-playground
php artisan vendor:publish --provider="Nuwave\Lighthouse\LighthouseServiceProvider"
php artisan vendor:publish --provider="MLL\GraphQLPlayground\GraphQLPlaygroundServiceProvider"
after that a /graphql/schema.graphql file is created (under the project root, not under the routes folder as happened with the previous versions).
Now I populate the DB with some data and then I copy/paste the schema from the tutorial page to the published schema, I start the server, then I access playground which shows the correct url where to send the requests http://127.0.0.1:8000/graphql.
Clicking on the Schema tab I always see the default schema and not the one published in /graphql/schema.graphql, and of course the queries for the resources different from the users fails with an error like Cannot query field "posts" on type "Query".. I've already tried restarting the server and refreshing the Playground page.
Into the config/lighthouse.php file the schema is registered to the path base_path('graphql/schema.graphql') which looks correct.
Why Playground always shows the default schema and not the published and edited one?
I'm using PHP 7.2.14 and Lighthouse requires PHP>7.1
I thought the problem is related to the caching. I tried to add LIGHTHOUSE_CACHE_ENABLE=false to the laravel .env file and restart the server then refresh the playground page. I recheck the schema and it is updated.
I hope it's useful.
I've a problem with migration my prestashop system from old server & domain to new.
I've copied the full folder tree from old server and have done dump of DB, then pasted that to the new server and import DB to the new one. After that my problem occurs, after complete those steps, when i call new url, system automatically redirect me to the old domain.
So i've changed in DB inside the table jr_shop_url, parameters domain and domain_ssl to new ones, it returns me message: "my.domain.com is currently unable to handle this request".
Because of that problem i can't access admin panel either.
Any ideas what else i can do to make it works correctly or what have i done wrong ? :)
P.S. I'm using PrestaShop version 1.5.6.2
This problem was solved, it was problem with permissions and folder owner, after changing folder's owner by CHOWN -R user folder_path and setting permissions to 775 it is working now.
I am new to Drupal and this is my first time using it.
I have a site that uses Drupal running in production environment. I like to copy the production copy over and attempt to make changes to it for testing/learning.
Anyway, to get started I setup a new installation of Drupal 7 on Windows IIS 7.5. After completed the installation and got it to running, I renamed the folder "sites" to "sitesORG".
Then from my production server I took a copy of the "sites" folder and placed it into the new Drupal installation on my local machine.
Now my local machine has the folder called "sites" and inside of it I see the following 3 folders"
1) All
2) Default
3) myProject
From my production box, I took mysql dump and restored it in a new database called "abc" on my localhost
I opened the setting file in "myProject" folder and change the databases connection to a databases on the local machine and changed the database name to "abc"
Then I go through and update my script using http://localhost/acquia-drupal7/
Now, when I got to the very first page, I don't get any colors/pictures. I get a white page with text. It looks like the css files/images are not being rendered correctly.
On the same page there is a link titled "Click Here To login" when I click it I got to the following URL http://localhost/user instead of "http://localhost/acquia-drupal7/user"
There is something that is not being mapped correctly. What could be causing my issues? How can I get the css/images file and the URL to be corrected?
First of all, in your settings.php file, you need to uncomment and update the $base_url variable with the following value: "http://localhost/acquia-drupal7".
Then, depending if your windows setup allows you to use .htaccess or not, you would need to uncomment the RewriteBase /drupal and change the value to RewriteBase /acquia-drupal7. If you are using standard IIS configurations, you would need to apply the same logic.
I'm trying to copy website made in Magento in my localhost and finished another steps:
downloaded whole website via ftp account,
import database from server,
change parameters for database in local.xml (post root for user and empty
field for password),
clear cache in Magento var folder,
change base_url value in database
When I try to open it in browser, Homepage looks ok, but any link in page give me Error 404 - Object not found. I can't access to admin panel. Anything what I type URL after localhost/nameOfMyProject, I get Error 404.
I have 2 other Magento projects in my localhost and they work correctly, but both of them I installed from fresh Magento installation and then add new themes for them.
Here is different situation. I need to add whole existing project from server in localhost. I can't add this website on same way, because developer who made it changed files into core section. Project is too big it's not possible at the moment to change that, so any way is to download whole project in localhost.
Does anyone has some suggestion what to do?
Best Regards,
Mladja
Check you also downloaded the .htaccess file and mod-rewrite is enabled in your apache conf.
To access to admin panel try: localhost/nameOfMyProject/index.php/admin