I have been trying to get the php built-in webserver to read sub directories. My file structure is website --> html, css, php. I set the website folder as the root using php -S localhost:8000. The php built-in webserver cannot read past this directory. The error in the browser is 404 not fond The requested resource / was not found on this server. The error in the terminal is [GET] / -No such file or directory. The webserver cannot find the index.html file that is inside of the html folder. What am I doing wrong?
How can I make the PHP Built-in Webserver access sub-directories?
681 Views Asked by bill chill At
1
There are 1 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in WEB
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- how to prepend www if the url string does not has www?
- @Value annotation not resolved in a class that belongs to dependency jar
- referral link isn't being locked to one ip
- Under what conditions does href="#" cause scrolling to the top of the page?
- Webpage - Font size of table items on mobile phone browsers changes
- Web Service Error path property must set before calling the send method
- Calling ASP webpage from C# application
- What is the best way to make two web pages communicate between each other back and forth?
- CSS Different screen resolution
- How can hide url value in php
- HTML Control Form with PHP - Errors
- How would I use an only for IE8 and not for any other browser
- Client side computation without exposing code?
- detecting a file downloaded in selenium java
Related Questions in SERVER
- How can I monitor an endpoint's status with Ruby?
- Rasterization with Javascript looks different on Apache server
- Netty loses udp packets at the beginning of the communication
- How to have Heroku build my development branch on a staging server?
- Timing packets on a traffic server
- copying file from local machine to Ubuntu 12.04 returning permission denied
- AWS EC2: Migrating from Windows to Linux Server
- Connecting Ms Access Db to Mysql through Vba
- Remove ".local" suffix on local server (Yosemite)
- Server program gets stuck at accept function
- PayPal API QueryParameters not found
- Python Server - Processing WebSocket.close()
- NameValuePair, HttpParams, HttpConnection Params deprecated on server request class for login app
- Unable to send file from ftp to another ftp
- Scala - TCP Packet frame using Akka
Related Questions in SUBDIRECTORY
- EnvDTE iterate through subfolders within solution
- Get all items of a sharepoint list
- Google drive PHP API: unable to insert files or folders into subfolders
- Edit HTACCESS file to prevent direct access to a particular file within a particular folder
- Is there a way to associate data with a file in a folder hierarchy?
- Recursively expand and search pattern of specific subdirectories
- Win7 Batch File - Moving Subfolders(& Files) to Grand-Parent Directory
- How to link subdirectories using subdomain? (VirtualHost, mod_rewrite, htaccess, DNS)
- How can I download entire directory from remote machine with using scp libssh library in c++?
- Rewrite wildcard subdomain to the same name folder and get the subdomain name
- Recurse through selected level of subdirectories
- Iterate through the folder and find a particular file
- How to load folder structure into treeview?
- Traverse directory and zip certain subdirectories in place
- Python creating subdirectory with user input
Related Questions in PHP-BUILTIN-SERVER
- I cannot reach php built-in server running on a VM
- Incomplete Image Loading from PHP Built-in Server on Docker to Android Emulator
- VSCode - Launch configurations - PHP built-in server : stop after debug
- PHP Built-in web server and syntax error in a router script
- PHP built-in server redirect logs
- Is there a way to allow dots in request urls in php?
- Is it possible to use xdebug on php built-in web server?
- How can I make the PHP Built-in Webserver access sub-directories?
- Deploy simple PHP website to Swisscom Application Cloud: how to configure the server?
- Windows PHP 5.6 built in server SQLite3
- Running PHP 5.4 built-in web server outside localhost
- PHP built in web server + dynamic extension
- Problems with url in symfony
- Routing PHP 5.4+ Built-in Web Server like .htaccess
- Webserver Caching Issues
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Please try and explore the problem before you post on stackoverflow... Your answer was a google few clicks away : "php built in web server" search on google will return this : https://www.php.net/manual/en/features.commandline.webserver.php as the first hit which states very clearly on the 3d paragraph that:
I would actually refer to the warning at the top first!