Where is php config and .htaccess located on Raspbian?
I am trying to change the upload limit of my owncloud installation. A raspberry pi and the Raspbian OS are powering this server. Apparently I can edit the php config or the .htaccess config but I am unsure of where either of those are located. It says .htaccess is located inside the owncloud install directory. And the php config is here /etc/php5/apache2/php.ini
. But when I use nano to edit the php config it's blank. I am pretty sure it exists somewhere because My owncloud installation is working and I can upload small files. Anyone got any suggestions?
apache-httpd raspbian php5
|
show 3 more comments
I am trying to change the upload limit of my owncloud installation. A raspberry pi and the Raspbian OS are powering this server. Apparently I can edit the php config or the .htaccess config but I am unsure of where either of those are located. It says .htaccess is located inside the owncloud install directory. And the php config is here /etc/php5/apache2/php.ini
. But when I use nano to edit the php config it's blank. I am pretty sure it exists somewhere because My owncloud installation is working and I can upload small files. Anyone got any suggestions?
apache-httpd raspbian php5
In terminal try:locate php.ini
Orwhereis php
and then look around. Or doing a google search for "where is php.ini located" might come up with a lot of good results. I would also downvote, but you get the idea. The reason being is that this question has been asked and resolved many times and doing a little more research on your part with some internet searches would find something?
– jmunsch
Jan 11 '15 at 4:16
See: stackoverflow.com/questions/8684609/dude-wheres-my-php-ini
– jmunsch
Jan 11 '15 at 4:18
locate php returns bash error. When typing whereis (with either just php or php.ini) it locates php files, but not the php.ini file that I need. Trust me I have tried googling, I will try some more though. This is where I get really frustrated. I didn't just come here first thing, I have been trying to figure this out for 2 hours straight, so yeah I figured it would be worthwhile to ask, because someone that knows could answer in a second.
– Cam Jones
Jan 11 '15 at 4:18
See the link that i posted above. And it would belocate php.ini
which includes the file extension. Its a nice way to find files in the system. You could also usefind . | grep ini
in directories that you think it might be. Hope it helps.
– jmunsch
Jan 11 '15 at 4:19
1
Thanks so much that link worked i used this one, php -i | grep 'php.ini' . You shouldn't be so quick to judge. I could have spent another hour googling, and believe me I have been trying, but you saved me so much time. The internet is very vast, just because you search google doesn't mean you will find what you need right away. google results are based on keywords, and those are infinitely variable. Also that answer was on stack overflow, theres way too much elitism there for me to even bother wasting my time with. If you wouldn't mind making it an answer, and If not I will.
– Cam Jones
Jan 11 '15 at 4:35
|
show 3 more comments
I am trying to change the upload limit of my owncloud installation. A raspberry pi and the Raspbian OS are powering this server. Apparently I can edit the php config or the .htaccess config but I am unsure of where either of those are located. It says .htaccess is located inside the owncloud install directory. And the php config is here /etc/php5/apache2/php.ini
. But when I use nano to edit the php config it's blank. I am pretty sure it exists somewhere because My owncloud installation is working and I can upload small files. Anyone got any suggestions?
apache-httpd raspbian php5
I am trying to change the upload limit of my owncloud installation. A raspberry pi and the Raspbian OS are powering this server. Apparently I can edit the php config or the .htaccess config but I am unsure of where either of those are located. It says .htaccess is located inside the owncloud install directory. And the php config is here /etc/php5/apache2/php.ini
. But when I use nano to edit the php config it's blank. I am pretty sure it exists somewhere because My owncloud installation is working and I can upload small files. Anyone got any suggestions?
apache-httpd raspbian php5
apache-httpd raspbian php5
edited Dec 16 at 5:06
muru
1
1
asked Jan 11 '15 at 2:52
Cam Jones
15428
15428
In terminal try:locate php.ini
Orwhereis php
and then look around. Or doing a google search for "where is php.ini located" might come up with a lot of good results. I would also downvote, but you get the idea. The reason being is that this question has been asked and resolved many times and doing a little more research on your part with some internet searches would find something?
– jmunsch
Jan 11 '15 at 4:16
See: stackoverflow.com/questions/8684609/dude-wheres-my-php-ini
– jmunsch
Jan 11 '15 at 4:18
locate php returns bash error. When typing whereis (with either just php or php.ini) it locates php files, but not the php.ini file that I need. Trust me I have tried googling, I will try some more though. This is where I get really frustrated. I didn't just come here first thing, I have been trying to figure this out for 2 hours straight, so yeah I figured it would be worthwhile to ask, because someone that knows could answer in a second.
– Cam Jones
Jan 11 '15 at 4:18
See the link that i posted above. And it would belocate php.ini
which includes the file extension. Its a nice way to find files in the system. You could also usefind . | grep ini
in directories that you think it might be. Hope it helps.
– jmunsch
Jan 11 '15 at 4:19
1
Thanks so much that link worked i used this one, php -i | grep 'php.ini' . You shouldn't be so quick to judge. I could have spent another hour googling, and believe me I have been trying, but you saved me so much time. The internet is very vast, just because you search google doesn't mean you will find what you need right away. google results are based on keywords, and those are infinitely variable. Also that answer was on stack overflow, theres way too much elitism there for me to even bother wasting my time with. If you wouldn't mind making it an answer, and If not I will.
– Cam Jones
Jan 11 '15 at 4:35
|
show 3 more comments
In terminal try:locate php.ini
Orwhereis php
and then look around. Or doing a google search for "where is php.ini located" might come up with a lot of good results. I would also downvote, but you get the idea. The reason being is that this question has been asked and resolved many times and doing a little more research on your part with some internet searches would find something?
– jmunsch
Jan 11 '15 at 4:16
See: stackoverflow.com/questions/8684609/dude-wheres-my-php-ini
– jmunsch
Jan 11 '15 at 4:18
locate php returns bash error. When typing whereis (with either just php or php.ini) it locates php files, but not the php.ini file that I need. Trust me I have tried googling, I will try some more though. This is where I get really frustrated. I didn't just come here first thing, I have been trying to figure this out for 2 hours straight, so yeah I figured it would be worthwhile to ask, because someone that knows could answer in a second.
– Cam Jones
Jan 11 '15 at 4:18
See the link that i posted above. And it would belocate php.ini
which includes the file extension. Its a nice way to find files in the system. You could also usefind . | grep ini
in directories that you think it might be. Hope it helps.
– jmunsch
Jan 11 '15 at 4:19
1
Thanks so much that link worked i used this one, php -i | grep 'php.ini' . You shouldn't be so quick to judge. I could have spent another hour googling, and believe me I have been trying, but you saved me so much time. The internet is very vast, just because you search google doesn't mean you will find what you need right away. google results are based on keywords, and those are infinitely variable. Also that answer was on stack overflow, theres way too much elitism there for me to even bother wasting my time with. If you wouldn't mind making it an answer, and If not I will.
– Cam Jones
Jan 11 '15 at 4:35
In terminal try:
locate php.ini
Or whereis php
and then look around. Or doing a google search for "where is php.ini located" might come up with a lot of good results. I would also downvote, but you get the idea. The reason being is that this question has been asked and resolved many times and doing a little more research on your part with some internet searches would find something?– jmunsch
Jan 11 '15 at 4:16
In terminal try:
locate php.ini
Or whereis php
and then look around. Or doing a google search for "where is php.ini located" might come up with a lot of good results. I would also downvote, but you get the idea. The reason being is that this question has been asked and resolved many times and doing a little more research on your part with some internet searches would find something?– jmunsch
Jan 11 '15 at 4:16
See: stackoverflow.com/questions/8684609/dude-wheres-my-php-ini
– jmunsch
Jan 11 '15 at 4:18
See: stackoverflow.com/questions/8684609/dude-wheres-my-php-ini
– jmunsch
Jan 11 '15 at 4:18
locate php returns bash error. When typing whereis (with either just php or php.ini) it locates php files, but not the php.ini file that I need. Trust me I have tried googling, I will try some more though. This is where I get really frustrated. I didn't just come here first thing, I have been trying to figure this out for 2 hours straight, so yeah I figured it would be worthwhile to ask, because someone that knows could answer in a second.
– Cam Jones
Jan 11 '15 at 4:18
locate php returns bash error. When typing whereis (with either just php or php.ini) it locates php files, but not the php.ini file that I need. Trust me I have tried googling, I will try some more though. This is where I get really frustrated. I didn't just come here first thing, I have been trying to figure this out for 2 hours straight, so yeah I figured it would be worthwhile to ask, because someone that knows could answer in a second.
– Cam Jones
Jan 11 '15 at 4:18
See the link that i posted above. And it would be
locate php.ini
which includes the file extension. Its a nice way to find files in the system. You could also use find . | grep ini
in directories that you think it might be. Hope it helps.– jmunsch
Jan 11 '15 at 4:19
See the link that i posted above. And it would be
locate php.ini
which includes the file extension. Its a nice way to find files in the system. You could also use find . | grep ini
in directories that you think it might be. Hope it helps.– jmunsch
Jan 11 '15 at 4:19
1
1
Thanks so much that link worked i used this one, php -i | grep 'php.ini' . You shouldn't be so quick to judge. I could have spent another hour googling, and believe me I have been trying, but you saved me so much time. The internet is very vast, just because you search google doesn't mean you will find what you need right away. google results are based on keywords, and those are infinitely variable. Also that answer was on stack overflow, theres way too much elitism there for me to even bother wasting my time with. If you wouldn't mind making it an answer, and If not I will.
– Cam Jones
Jan 11 '15 at 4:35
Thanks so much that link worked i used this one, php -i | grep 'php.ini' . You shouldn't be so quick to judge. I could have spent another hour googling, and believe me I have been trying, but you saved me so much time. The internet is very vast, just because you search google doesn't mean you will find what you need right away. google results are based on keywords, and those are infinitely variable. Also that answer was on stack overflow, theres way too much elitism there for me to even bother wasting my time with. If you wouldn't mind making it an answer, and If not I will.
– Cam Jones
Jan 11 '15 at 4:35
|
show 3 more comments
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f178542%2fwhere-is-php-config-and-htaccess-located-on-raspbian%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f178542%2fwhere-is-php-config-and-htaccess-located-on-raspbian%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
In terminal try:
locate php.ini
Orwhereis php
and then look around. Or doing a google search for "where is php.ini located" might come up with a lot of good results. I would also downvote, but you get the idea. The reason being is that this question has been asked and resolved many times and doing a little more research on your part with some internet searches would find something?– jmunsch
Jan 11 '15 at 4:16
See: stackoverflow.com/questions/8684609/dude-wheres-my-php-ini
– jmunsch
Jan 11 '15 at 4:18
locate php returns bash error. When typing whereis (with either just php or php.ini) it locates php files, but not the php.ini file that I need. Trust me I have tried googling, I will try some more though. This is where I get really frustrated. I didn't just come here first thing, I have been trying to figure this out for 2 hours straight, so yeah I figured it would be worthwhile to ask, because someone that knows could answer in a second.
– Cam Jones
Jan 11 '15 at 4:18
See the link that i posted above. And it would be
locate php.ini
which includes the file extension. Its a nice way to find files in the system. You could also usefind . | grep ini
in directories that you think it might be. Hope it helps.– jmunsch
Jan 11 '15 at 4:19
1
Thanks so much that link worked i used this one, php -i | grep 'php.ini' . You shouldn't be so quick to judge. I could have spent another hour googling, and believe me I have been trying, but you saved me so much time. The internet is very vast, just because you search google doesn't mean you will find what you need right away. google results are based on keywords, and those are infinitely variable. Also that answer was on stack overflow, theres way too much elitism there for me to even bother wasting my time with. If you wouldn't mind making it an answer, and If not I will.
– Cam Jones
Jan 11 '15 at 4:35