We are trying to integrate a payment gateway solution into our app. We are using AWS EC2, Apache and Laravel for the server environment. The instruction has a point that I am not able to understand.
Enable your URL Referrer, this can mostly be done by contacting your
Hosting service. Your URL Referrer should be the same as your Return
URL
Can someone explain whether this needs to be done on AWS end, Laravel end, apache or where do I need to set this up?
Regards
Syed
Related
I am working on plesk php api. I am adding subscription. There is no problem in this actions. When I was calling multiple query at the same time. Second query is make unsuccessful. Server sending 502 gateway error. I think; plesk api dont process multiple task. I want to make hosting creator. My customers will create own hosting on my customer panel. So I need multiple process at the same time. How i solve this problem ?
Let me assume that you are sending an API request from PHP application located on the same server.
During the subscription creation, Plesk creates new configuration files for web services and reloading these services to apply the new configuration. As a result, PHP application fails whilst, for example, Apache is being restarted at the moment.
As half-measures, you may consider setting Apache restart interval in Tools & Settings > Apache Web Server or enabling graceful restart for Apache.
The best and the right way, of course, is to use a separate hosting to send API queries.
I just started up an Azure server and have been trying to access it for a while and am having a hard time doing so.
I installed zPanel on my 12.04 Azure Ubuntu server (like cPanel: Apache, MySQL, PHP, etc) and made sure Apache was working and pointed a domain to the server IP and gave it to zPanel's installer to config.
I tried accessing the server through direct IP, through the domain and even pinging it. I keep getting Request timed out.
I'm using the "Resource Manager" in Azure and can't find a way to specifically allow port 80, so I'm assuming it's enabled already, but that's the only reason I can think of for not being able to access the server. Any ideas?
Try to add the specifical port on the Azure old portal or new portal, please see the pictures below.
Fig 1. Add the endpoints(ports) on Azure old portal
Fig 2. Add the endpoints(ports) on Azure new portal
Hope it helps. Best Regards.
I am developing APIs in node js and have hosted the application on amazon EC2. In a third party API it is required to host a php page on our server and give its public url back to them. Is there another way to host it apart from a LAMP setup? Anything apart from EC2 is also fine but please take into consideration that this is a single page having some logic and nothing else will be there in PHP.
I work with node and php. I would recommend NGINX. It's configuration files are really simple and it's much lighter-weight than apache.
You can simply create a redirect/rewrite directive in NGINX that will pass your php page to the node server instead and be done. For this usecase, you wouldn't actually even need to install or configure the PHP backend.
http://nginx.org/en/docs/beginners_guide.html#proxy
You might also check AWS domain management tools (AWS Route 53). There may be a way to directly rewrite the incoming PHP request to go to your node app instead without installing any webserver on your EC2.
Yes, there are other web-servers available apart from apache: For instance Nginx plus or Lighttpd, both are fine and lightweight alternatives to host your PHP files on EC2.
Though, it's not clear to me why don't you like the LAMP setup. Maybe Apache+PHP, without MySQL, would be enough for you?
I am not sure if this question has a place over here but I am having a lot of trouble setting up a local development server from where I can work on Facebook, Twitter, Google+ and other applications.
As of now I have an Apache environment and I am working on a PHP based platform. The database server is a standard MySQL server. Also, I am working behind a authentication based proxy.
The primary issue that I encounter is, when I made an application on Twitter and entered the relevant details like - website, callbackurl as 127.0.0.1. My application when tried to retrieve the oAuth key, it wasn't able to. I even tried out changing my listening post to something other than 80, but it didn't work either.
I understand that any application of this sort will encounter this problem because 127.0.0.1 is not an address that points to my computer precisely. And I am not aware of any other method other than this. Am I doing something wrong somewhere or is it impossible to develop/test applications which require oAuth via a locally deployed server.
Update
Port forwarding is not a solution because I am behind a firewall and I am part of a private network. Hence, my questions are-
Is this kind of development impossible in such a setup? If yes, then what can I do to? If I work using a dongle, will it possible? Or do I need to procure a static IP?
I'm currently developing a RESTful api as a bridge between my ios/web application and their shared database, and content.
I found my way to implement RESTful api in PHP on this blog.
I started my development on my OVH Apache-based server. Unfortunately, they didn't provide oauth support on web hosting services and there is no way to install it. OVH told me I needed a dedicated server or a VPS server for this.
Now, I'm going to work on dotCloud. It's a great alternative, I think, but their servers (seemingly Amazon EC2's ones), are nginx-based.
This would be the first time I've used a nginx server and I need your help for "translating" this .htaccess to a nginx.conf file.
Before asking for your help, I tried to find a nginx.conf file for this but no one worked.
When I pushed them to my dotcloud app, the http service of my app crashed and dotcloud cli said :
14:55:44 [www.0] WARNING: The service crashed at startup or is listening to the wrong port. It failed to respond on port "http" (80) within 30 seconds. Please check the application logs.
Thanks for any help in advance :)
Thanks to this htaccess to nginx.conf converter, and some tricks and tests I've made, here is the corresponding nginx.conf file.
I hope it will help people. ;)
EDIT: link to my configuration is dead, but the converter is still available. As long as you have a valid Apache configuration you're good to go.