If I have a subfolder in the directory"C:\Program Files (x86)\Ampps\www\php.dev\myproject\index.php". I added the domain "php.dev" on Ampps, but whenever I run index.php a window pops up saying 404 error and another times I get:
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL:
http://php.dev/
Access Denied.
Access control configuration prevents your request from being allowed
at this time. Please contact your service provider if you feel this is
incorrect.
How can I add a domain to run the subfolder "myproject" inside "..www\php.dev\" folder? Is there a problem in PhpStorm or Ampps setting? Thanks!
Solved after removing and reinstalling Ampps.
Related
I am working on MacOS Big Sur.
I am trying to setup my laravel project in XAMPP using Virtual Hosts. I am following this tutorial.
When I try to access the site via Virtual Host I get this page saying:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
After googling around, it seems that this is due to some permissions, but I can't seem to figure it out.
I will document below how I set it up, and what I have tried.
enabled virtual hosts in /Applications/XAMPP/xamppfiles/etc/httpd.conf
added my site to the VirtualHosts list in /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
Added the site to my /etc/hosts file
When I hit localHost, I get the dashboard. When I go to localhost/phpmyadmin, that works as well. However, going to Http://seqwens_new/ does not
Reading other resources online, I see that I should change the User name in the httpd.conf to my username:
When I do that, restart apache, and try to hit http//seqwens_new/, it does not work
but also, when I try to hit localhost/phpmyadmin, I get the error:
Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
session_start(): Session data file is not created by your uid
session_start(): Failed to read session data: files (path: /Applications/XAMPP/xamppfiles/temp/)
I am out of ideas and I need suggestions
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 have recently moved one website to new server. I have transferred everything properly including mysql database. But now the internal pages are not opening (sending 404 error). Homepage looks fine.
One thing to consider here is that, the website was on shared cpanel with another domain and residing in a folder. Now after moving, it is placed directly in public_html. I hope, this doesn't create any issue.
The website is: http://nepaltrekking.co.kr/
regards,
When hosting changes, we need to take care of the following steps for codeigniter:
Check required php and apache modules are installed and enabled.
If installation is not in root directory, you must change htaccess.
If domain is changed, you need to edit config file for new base_url.
Clear application cache if enabled. Give required write permision in cache directory.
If nothing works, then see error log and correct error accordingly.
Actually I resolved it. The issue was with .htaccess. I changed the permission to 666 and it started working. I think there was problem writing in the .htaccess file.
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 have installed php-5.4.42-Win32-VC9-x86 and apache_2.4.2-x86-no-ssl.msi in my PC.
According to this
Link
I have installed PHP and apache server and configured. I have restarted my computer after configuration.
I created a phpinfo.php file in the website folder. When i try to run this file in the browser(http://localhost/phpinfo.php) i am getting webpage not available error. But when i run the localhost i am getting as "It Works".
Also when i test the configuration i am getting error as "syntax error on line 172 in httpd.conf, cannot load c:/PHP/php5apache2.2_dll into server.The specified procedure could not be found."
I resolved the problem of this error by changing phpapache2.2_dll to phpapache2.4.dll. I hadve both of them in my php folder.
My PC has 32 bit OS.I have also specified the path of PHP in environment variable.
But still when i run my file i am getting webpage not available.
Can any one help me to resolve this problem.