Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
To reproduce:
Create a node with a private image field.
Start a server with drush rs --server=builtin (or with php -S)
View the node.
The image gives a 404.
Restart drush with CGI.
The image works fine (it has the same path as before).
Version 7.19 has the same behavior.
PHP version: 5.4.4
Comments
Comment #1
dudycz CreditAttribution: dudycz commentedAre you sure that this is not permission issue? What is written to the system log?
Comment #2
Paul B CreditAttribution: Paul B commentedThe site was installed and run with drush all under the same user, so I don't think it can be a permission issue.
The watchdog log says nothing, the webserver says
[Thu Mar 7 08:53:48 2013] 127.0.0.1:36872 [404]: /system/files/logo_rb.png - No such file or directory
Comment #3
shenzhuxi CreditAttribution: shenzhuxi commentedURL like DRUPAL/?q=system/files/* is alright, while DRUPAL/system/files/* is not working with clean URLs enabled.
To use Drupal with PHP 5.4 builtin webserver, we may need to write more in htrouter.php https://drupal.org/node/1543858.