Karaethon Posted February 8, 2019 Share Posted February 8, 2019 I am trying to set my include path in my .htaccess file but anything i put after the php_value include_path such as php_value include_path "../includes" causes a server error. Anyone know what I'm doing wrong, and can enlighten me? Link to comment Share on other sites More sharing options...
requinix Posted February 8, 2019 Share Posted February 8, 2019 What does the server error message say? Link to comment Share on other sites More sharing options...
Karaethon Posted February 8, 2019 Author Share Posted February 8, 2019 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Link to comment Share on other sites More sharing options...
Karaethon Posted February 8, 2019 Author Share Posted February 8, 2019 And i know you'll probably ask, the log says... httpd log: [Thu Feb 07 23:45:05 2019] [alert] [client 127.0.0.1] /storage/615F-8AC8/Android/data/com.twoseventwodev.icodego/files/external/Split Infinitive Software Website/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration Link to comment Share on other sites More sharing options...
requinix Posted February 8, 2019 Share Posted February 8, 2019 php_value is only available if you're running PHP as an Apache module. That's less and less common to find. You're probably using php-fpm. You can specify INI settings in its pool configuration. Link to comment Share on other sites More sharing options...
Karaethon Posted February 8, 2019 Author Share Posted February 8, 2019 Ok, so my localhost isnt using it as a module? It works in my live (hosted) site, so i guess i cannot test that part then. Link to comment Share on other sites More sharing options...
requinix Posted February 8, 2019 Share Posted February 8, 2019 Apparently not. Change your configuration so that it more closely matches your real site - so you can avoid problems like this in the future. Link to comment Share on other sites More sharing options...
Karaethon Posted February 8, 2019 Author Share Posted February 8, 2019 How do I do that? Where is the setting at? Link to comment Share on other sites More sharing options...
requinix Posted February 8, 2019 Share Posted February 8, 2019 It's not a setting. It's how your server/PHP was set up. Set it up again but this time install PHP as an Apache module. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.