[Apache / PHP] "No input file specified." / AcceptPathInfo

Pagina: 1
Acties:
  • 188 views sinds 30-01-2008
  • Reageer

  • Reveller
  • Registratie: Augustus 2002
  • Laatst online: 05-12-2022
Omdat ik bezig ben met een eigen cms'je, download ik veel open-source systemen om ideeen op te doen over wat nu gebruiksvriendelijk is en wat niet.

Vandaag heb ik ezPublish gedownload en geinstalleerd. Er gaat alleen iets fout als ik de default url (http://localhost/ezpublish/index.php/corporate) aanroep. De error die Apache geeft is "No input file specified."

Nu heb ik zowel op Google als de fora van ezPublish gezocht, en de foutmelding schijnt te liggen aan het feit dat ik in mijn httpd.conf, AcceptPathInfo op On moet zetten. Ik voegde dus toe:
code:
1
AcceptPathInfo On
maar dit bracht geen verandering in de zaak. Ook
code:
1
2
3
4
5
<Directory "C:/Program Files/Apache/Apache2/htdocs/ezpublish">
   <Files ~ "\.php$"> 
   AcceptPathInfo On 
   </Files> 
</Directory>
(gevonden in het ezPublish support forum) werkte niet.

Vervolgens las ik in [rml][ Apache/PHP] Multiviews wil niet goed werken[/rml] dat de TS eenzelfde probleem wist op te lossen door genoemde regel aan zijn .htaccess toe te voegen. Ik probeerde hetzelfde (ezPublish .htaccess in http://localhost/ezpublish/:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copy this file to a new file called .htaccess in your eZ publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php

DirectoryIndex index.php

# hier dus toegevoegd...
AcceptPathInfo On
maar ook dit is de oplossing niet. Ik weet dat er geen support wordt geleverd op software van derden, maar naar mijn mening heb ik een algemeen probleem in mijn apache configuratie bestand, wat slechts door ezPublish aan het licht is gebracht.

Ik hoop dat iemand ideeen heeft hoe ik AcceptPathInfo ook daarwerkelijk aangezwengeld krijg.

Ik draai overigens Windows XP met Apache 2.0.49 en PHP 4.3.7. Er schijnt ook nog een verschil te zitten in of je Apache als CGI of Apache module draait. Ook na zoeken heb ik niet kunnen vinden hoe je kan zien hoe het op jouw computer geinstalleerd staat, maar phpinfo() geeft onder andere terug: Server API : CGI/FastCGI. Misschien dat dat ook nog van belang is.

UPDATE: overigens werkt http://localhost/ezpublish/index.php?corporate wel. Ik heb hier handmatig de "/" in de url vervangen door "?". Probleem is alleen dat dit geen oplossing is: alle links worden automatisch met een "/" gegenereerd...

[ Voor 27% gewijzigd door Reveller op 24-01-2005 17:46 ]

"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."


  • Reveller
  • Registratie: Augustus 2002
  • Laatst online: 05-12-2022
* kick * iemand? Ik heb nog steeds geen idee; heb alles gedaan wat ik in de apache docs / GoT kon vinden. Waarschijnlijk is dit typisch zo'n "oh, heb ik ook eens gehad" ding; iets stoms waar je anders niet op zou komen (...hoop ik ... :))

"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."


  • Spider.007
  • Registratie: December 2000
  • Niet online

Spider.007

* Tetragrammaton

Werkt
code:
1
Options +MultiViews
niet toevallig? Staat er wellicht nog iets meer in de Apache error_logs?

---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate


  • Reveller
  • Registratie: Augustus 2002
  • Laatst online: 05-12-2022
Spider.007 schreef op maandag 31 januari 2005 @ 22:43:
Werkt
code:
1
Options +MultiViews
niet toevallig? Staat er wellicht nog iets meer in de Apache error_logs?
Nee, staat al in mijn httpd.conf. Ook extra toevoegen aan .htaccess haalt niets uit... :'(

"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."