I have developed i web application in symfoy2, my development environment is Windows (using wamp server), but when deployed it on a Linux server, there is a page which gives me the "invalid request" error, i checked the URL and Parameters, also the query, everything were the same, it works in windows but not in Linux. is there any case sensitive problem? or variable naming and parameters?
The problem was Case Sensitivity, My controller was named like viewSalarayTEmplate.php but the link to this file were specified like: click to view then i change my code to : click to view i found the problem after i checked the error log file and it was "the directory is not exist".
Related
When I go open up my Codeigniter website on my localhost using Wamp and XAMPP, both works. But when I move it to Ubuntu on Google Cloud, it only works for the first page, afterward, it shows the error when going to another page.
I'm using:
Codeigniter ver 3
Apache2
php7.3
Does anyone know what might have caused this?
Other Pages
It would be ideal if you check first the class name and the record name that both should be title case (start with a capital letter).
So if the class name is 'controller.php', the file name needs to be 'Controller.php', otherwise, CodeIgniter will throw a 404 error.
In localhost it probably won't be obligatory, yet in server it will check every one of these standards, else it can't distinguish the correct class name.
Develop a project in laravel and upload it to a server with IIS and when I try to use the paths that I defined I get error 400, but not the error 400 of laravel if no other, searching the internet I discovered that it is because of a problem with the configuration , missing this line of code
AllowOverride All
Normally this line is included when creating a virtual server on my pc, but in ISS I do not know how to solve it
http://186.24.32.115/web-spi/public - if I enter this url I load the web page well, but if I use the menu, I will leave error 400.
But if I do it this way http://186.24.32.115/web-spi/public/index.php I have no problem.
How do I make my routes work without using the index.php?
I am setting up a PHP login using Apache on my computer. I created a login form named login.php and I can access it.I also created a file named auth.php and when the login forum sends me to it (with some arguments at the end) my apache server says 404 not found and does not login.But curl 127.0.0.1/auth.php works and and gives a blank output while curl 127.0.0.1/auth.php&lwv=110 doesn't.
Running Apache 2.4.7 on elementary OS (based on Ubuntu)
Instead of 127.0.0.1/auth.php&lwv=110 change to 127.0.0.1/auth.php?lwv=110
Or localhost/auth.php?lwv=110
I just finished testing the website on Windows server. The whole website was being made and tested in Windows environment. Everything is working fine but as I launch the website to a server with UNIX environment, I am getting the following error.
http://wevte.com/test/
Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.
Solved the issue by chainging the controller file name as home_Controller from Home_Controller..
Here at work I recently adopted a rather undocumented Mac OSX/PHP web server. The "administrator" account password was unknown, and another technician reset it before handing the server over to me. The website hosted on the server is running fine, all except one subfolder which generates an "Internal Server Error" when you try to access anything within the subfolder. The file can be a PHP file, HTML file, even one I created (that works just fine when you throw it in the root or any other subfolder that's there.
Trying to access anything in the subfolder does present you with a username/password prompt, but I'm not seeing an .htaccess file in that subfolder. When I successfully log in using the "administrator" account username/password is when the "Internal Server Error" presents itself. I'm not seeing anything in the PHP error logs, making me think it's not getting that far - and I'm also not seeing anything in the server logs.
By my experience, it sounds like the subfolder does not contain a index-file and the directory listing may be disabled thus causing you to see the "Internal Server Error" as a last resort by the httpd server.
Create a file in the subfolder:
touch index.html
Password protecting a domain/folder does not require the .htaccess/.htpasswd (or other named file by choice) to exist in the same folder. It can be placed anywhere else the httpd can read it from. I suggest you read through the configuration file for your httpd and also check the php-error log, but in this case I would look in the httpd-error log first.