I am trying to deploy my Laravel app on EC2.
It works fine on local host but when copied the files to var/www/html I always get: The requested URL / was not found on this server.
URL of the instance: http://ec2-52-88-99-75.us-west-2.compute.amazonaws.com/
I am assuming that I am missing something with the httpd.conf, but I am not sure what.
Here is the httpd.conf file:
http://collabedit.com/g249v
Thank you very much!!
Here is the checklist-
1) Check your security group port 80 should be allowed for incoming traffic.
2) Check if your public ip is still same as before on amazon ec2, its much better if you use elastic ip.
3) Check error logs of apache, incase if ther is any error related to missing php module or any other error you can quickly find and correct.
I had hosted many Laravel application on amazon Ec2 and haven't got a single issue.
Related
I have a project in CodeIgniter and hosted in Sub-domain, and it has an error:
The requested URL could not be retrieved
Here is a picture of it:
Error
I had the same error on a new installation of CodeIgniter. I solved this error by turning off my VPN browser plugin.
You might have a proxy or VPN app running turn it off and see.
Please use this mandatory part before moving your code from localhost to live server.
Change base_url in config file.
Do necessary changes in .htaccess file
Change database connection credentials
This will help you.
Below steps worked for me -
Search for Proxy Settings on windows machine
Disable all the proxy settings
I have instlled wordpress in server and i've created virtual directories.In server it is working fine.
Here is my problem,i want to create virtual directories in wordpress in windows system with IIS.But i'm not able to do that.When i'm trying to access that virtual directory i'm getting error message like below:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
I did same thing in IIS what i have done in server.
Pls help me out.
I am using wamp and am creating a uLogin PHP Authentication Library(http://ulogin.sourceforge.net/). I have access to phpmyadmin, the local host seems to work, phpinfo() runs, everything on there seems to be working.
The problem is the c:/wamp/www/ulogin is giving me a forbidden 403 in the console. The error log for apache(2.4.9) is giving me AH01797: client denied by server configuration: My windows event log is giving me: an attempt was made to query the existence of a blank password for an account.
Is this a prblem with the wamp set up in apache or in the mysql setup; or both? I have run other php programs via www; this is the first time I ran into this problem.
I have researched this extensively and found a lot of the same answer, but it was for older versions of the program. Also, while developing on the localhost I can allow to all, I would prefer just to set it up as if the website was live.
Steps to check what's wrong:
1) Check your apache config: Check Directory-entries for your target directory and above. Look out for Order and Allow from (or Require for 2.4+)
2) Check whether there are any .htaccess files in your target directory or above. Again, look out for Allow / Deny and Require.
3) Check if the 403 is emitted by apache or your application: Add some debug message at the very top of your application logic (commonly some sort of index.php).
Before starting I installed XAMPP. Now am trying to use nginx instead of Apache. For that I did the following steps:
Installed nginx (1. c:>cd nginx 1.8.0 2. start nginx). installed successfully.
Now am not able to load php files and localhost/phpmyadmin.
There are a handful of reasons for this behavior. Could you run through some of the following options? If they don't outright solve the issue they should provide greater context to help us resolve this.
What happens when you attempt to pull up the "localhost/phpmyadmin" website? If it attempts to save a file then nginx may not be properly configured to interact with the PHP interpreter to process the PHP code and provide it to the web server (nginx).
In the directory of your nginx installation there should be a "sites-available" directory containing a plain text "default" file. In this server you should find a declaration of a server block which, in turn, contains an identifier for the document root referred to as "root." Does this point to the directory containing the phpMyAdmin source code?
Are you able to pull up just "localhost"?
If option 3 is unsuccessful you can run something like "netstat -na | findstr /c:':80'". This will tell you if nginx is actually listening on port 80.
If option 3 is unsuccessful but option 4 shows results, you may want to pull up the listening IP address (or your assigned/static IP if it shows 0.0.0.0:80) in your web browser. For example: "192.168.1.100/phpmyadmin"
I hope this triage helps find the underlying cause of your issue.
I open the apache with Xampp from the IP direction and it works ok, that is in localhost it not work and in IP direction work fine.
I'm using the amazon ec2 to install my kaltura. I was installed it successfully and it was works fine. But after some time i have restarted my amazon ec2 instance so that the public DNS has changed. After that i have checked the kaltura. The start page is working fine but in the admin console it is showing
An error occurred
Application error
and i think it is because of publixc DNS change in amazon EC2.I have searched in many kaltura forums they asked to check searchd, my.cnf file configuration and change the hosts file configuration. Still i could not get the solution for my problem. Can anyone explain me what are files includes the host name in kaltura.
I got it works by changing the public dns in the following file and restarted the apache server
app/admin_console/configs/application.ini
app/configurations/apache/my_kaltura.conf
app/alpha/config/kConfLocal.php
app/batch/batch_config.ini
app/batch/batches/Mailer/emails_en.ini