PHP debugging under Apache on CentOS 5.9PHP Error loggingHow can I make the Apache/PHP setup on my VPS show...
Why is my solution for the partial pressures of two different gases incorrect?
How to define a macro with multiple optional parameters?
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
LM22678 Unstable output
Do authors have to be politically correct in article-writing?
The change directory (cd) command is not working with a USB drive
Can I retract my name from an already published manuscript?
How would an AI self awareness kill switch work?
Auto Insert date into Notepad
When does coming up with an idea constitute sufficient contribution for authorship?
Removing debris from PCB
Why do neural networks need so many training examples to perform?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Proof by Induction - New to proofs
What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?
What is Crew Dragon approaching in this picture?
How can I mix up weapons for large groups of similar monsters/characters?
Where was Karl Mordo in Infinity War?
Does "sickness" has the same meaning as "vomitus"?
Table enclosed in curly brackets
What is better: yes / no radio, or simple checkbox?
Avoiding morning and evening handshakes
How do we edit a novel that's written by several people?
Naming things the POV character doesn't know
PHP debugging under Apache on CentOS 5.9
PHP Error loggingHow can I make the Apache/PHP setup on my VPS show PHP errors and warnings?CentOS 5.5 , Apache2.2, PHP 5.2.14, Fastcgi 2.2-4 and 5xx ErrorsCorrect user / permissions for running php script which writes to disk?PHP not working on Ubuntu 10.10apache on centos 5.6 gives me permissions denied errorPHP fopen always fails with permission deniedWith permissions 775 php error: folder is not writablePHP Errors are not stored on CentOS ServerPhp executes with different results in command line than when browsed to in ApacheView PHP error logs on VM - Vagrant CentOS via Puphpet
After upgrading a vBulletin installation, accessing any page tells me that files are missing--even though they exist in the filesystem.
Based on other questions I found here, I have tried changing the file permissions to no avail, changing the error log directive and php.ini, and changed ownership of the files it's trying to access.
Nothing I do seems to give me an informative error message. Running the scripts from the command line fail to give me the same errors, so that doesn't help.
Is there any way to execute a php file from the command line as if it was running under Apache? I'm hoping that might produce more informative errors.
EDIT: it was a permissions issue on the directory. includes/datastore was 644 instead of 755.
...still don't know how to get informative php error messages. :(
linux apache-2.2 php centos5 vbulletin
bumped to the homepage by Community♦ 11 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
After upgrading a vBulletin installation, accessing any page tells me that files are missing--even though they exist in the filesystem.
Based on other questions I found here, I have tried changing the file permissions to no avail, changing the error log directive and php.ini, and changed ownership of the files it's trying to access.
Nothing I do seems to give me an informative error message. Running the scripts from the command line fail to give me the same errors, so that doesn't help.
Is there any way to execute a php file from the command line as if it was running under Apache? I'm hoping that might produce more informative errors.
EDIT: it was a permissions issue on the directory. includes/datastore was 644 instead of 755.
...still don't know how to get informative php error messages. :(
linux apache-2.2 php centos5 vbulletin
bumped to the homepage by Community♦ 11 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
"tells me that files are missing" -> can you please provide detailed error message? "Based on other questions I found here" -> Can you please provide links to this questions?
– user130370
Feb 3 '14 at 14:47
The error message returned by Apache: "Fatal error: Datastore cache file does not exist. Please reupload includes/datastore/datastore_cache.php from the original download. in ..../includes/class_datastore.php on line 681"
– Steven Edwards
Feb 3 '14 at 17:34
Primarily this question: serverfault.com/questions/350288/php-error-logging/…
– Steven Edwards
Feb 3 '14 at 17:37
add a comment |
After upgrading a vBulletin installation, accessing any page tells me that files are missing--even though they exist in the filesystem.
Based on other questions I found here, I have tried changing the file permissions to no avail, changing the error log directive and php.ini, and changed ownership of the files it's trying to access.
Nothing I do seems to give me an informative error message. Running the scripts from the command line fail to give me the same errors, so that doesn't help.
Is there any way to execute a php file from the command line as if it was running under Apache? I'm hoping that might produce more informative errors.
EDIT: it was a permissions issue on the directory. includes/datastore was 644 instead of 755.
...still don't know how to get informative php error messages. :(
linux apache-2.2 php centos5 vbulletin
After upgrading a vBulletin installation, accessing any page tells me that files are missing--even though they exist in the filesystem.
Based on other questions I found here, I have tried changing the file permissions to no avail, changing the error log directive and php.ini, and changed ownership of the files it's trying to access.
Nothing I do seems to give me an informative error message. Running the scripts from the command line fail to give me the same errors, so that doesn't help.
Is there any way to execute a php file from the command line as if it was running under Apache? I'm hoping that might produce more informative errors.
EDIT: it was a permissions issue on the directory. includes/datastore was 644 instead of 755.
...still don't know how to get informative php error messages. :(
linux apache-2.2 php centos5 vbulletin
linux apache-2.2 php centos5 vbulletin
edited Feb 3 '14 at 20:00
Steven Edwards
asked Feb 3 '14 at 12:05
Steven EdwardsSteven Edwards
43
43
bumped to the homepage by Community♦ 11 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 11 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
"tells me that files are missing" -> can you please provide detailed error message? "Based on other questions I found here" -> Can you please provide links to this questions?
– user130370
Feb 3 '14 at 14:47
The error message returned by Apache: "Fatal error: Datastore cache file does not exist. Please reupload includes/datastore/datastore_cache.php from the original download. in ..../includes/class_datastore.php on line 681"
– Steven Edwards
Feb 3 '14 at 17:34
Primarily this question: serverfault.com/questions/350288/php-error-logging/…
– Steven Edwards
Feb 3 '14 at 17:37
add a comment |
"tells me that files are missing" -> can you please provide detailed error message? "Based on other questions I found here" -> Can you please provide links to this questions?
– user130370
Feb 3 '14 at 14:47
The error message returned by Apache: "Fatal error: Datastore cache file does not exist. Please reupload includes/datastore/datastore_cache.php from the original download. in ..../includes/class_datastore.php on line 681"
– Steven Edwards
Feb 3 '14 at 17:34
Primarily this question: serverfault.com/questions/350288/php-error-logging/…
– Steven Edwards
Feb 3 '14 at 17:37
"tells me that files are missing" -> can you please provide detailed error message? "Based on other questions I found here" -> Can you please provide links to this questions?
– user130370
Feb 3 '14 at 14:47
"tells me that files are missing" -> can you please provide detailed error message? "Based on other questions I found here" -> Can you please provide links to this questions?
– user130370
Feb 3 '14 at 14:47
The error message returned by Apache: "Fatal error: Datastore cache file does not exist. Please reupload includes/datastore/datastore_cache.php from the original download. in ..../includes/class_datastore.php on line 681"
– Steven Edwards
Feb 3 '14 at 17:34
The error message returned by Apache: "Fatal error: Datastore cache file does not exist. Please reupload includes/datastore/datastore_cache.php from the original download. in ..../includes/class_datastore.php on line 681"
– Steven Edwards
Feb 3 '14 at 17:34
Primarily this question: serverfault.com/questions/350288/php-error-logging/…
– Steven Edwards
Feb 3 '14 at 17:37
Primarily this question: serverfault.com/questions/350288/php-error-logging/…
– Steven Edwards
Feb 3 '14 at 17:37
add a comment |
2 Answers
2
active
oldest
votes
"Is there any way to execute a php file from the command line as if it was running under Apache?"
Either you can run a php script from command line using php cli eg :
php /path/to/myscriptBut it won't execute it "as if it was running under Apache".
Either you can call the page from command line using curl or wget, but it won't be useful for debugging.
add a comment |
You can execute php from the command line with the php command. For example:
php -q /var/www/html/call.php
You can see the var_dump and echo output or if you php is designed to be console interactive (ansi) interact with the application.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fserverfault.com%2fquestions%2f571808%2fphp-debugging-under-apache-on-centos-5-9%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
"Is there any way to execute a php file from the command line as if it was running under Apache?"
Either you can run a php script from command line using php cli eg :
php /path/to/myscriptBut it won't execute it "as if it was running under Apache".
Either you can call the page from command line using curl or wget, but it won't be useful for debugging.
add a comment |
"Is there any way to execute a php file from the command line as if it was running under Apache?"
Either you can run a php script from command line using php cli eg :
php /path/to/myscriptBut it won't execute it "as if it was running under Apache".
Either you can call the page from command line using curl or wget, but it won't be useful for debugging.
add a comment |
"Is there any way to execute a php file from the command line as if it was running under Apache?"
Either you can run a php script from command line using php cli eg :
php /path/to/myscriptBut it won't execute it "as if it was running under Apache".
Either you can call the page from command line using curl or wget, but it won't be useful for debugging.
"Is there any way to execute a php file from the command line as if it was running under Apache?"
Either you can run a php script from command line using php cli eg :
php /path/to/myscriptBut it won't execute it "as if it was running under Apache".
Either you can call the page from command line using curl or wget, but it won't be useful for debugging.
answered Feb 3 '14 at 14:50
user130370
add a comment |
add a comment |
You can execute php from the command line with the php command. For example:
php -q /var/www/html/call.php
You can see the var_dump and echo output or if you php is designed to be console interactive (ansi) interact with the application.
add a comment |
You can execute php from the command line with the php command. For example:
php -q /var/www/html/call.php
You can see the var_dump and echo output or if you php is designed to be console interactive (ansi) interact with the application.
add a comment |
You can execute php from the command line with the php command. For example:
php -q /var/www/html/call.php
You can see the var_dump and echo output or if you php is designed to be console interactive (ansi) interact with the application.
You can execute php from the command line with the php command. For example:
php -q /var/www/html/call.php
You can see the var_dump and echo output or if you php is designed to be console interactive (ansi) interact with the application.
edited Jan 2 '15 at 0:35
masegaloeh
16.3k73984
16.3k73984
answered Jan 2 '15 at 0:14
doldan dot netdoldan dot net
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f571808%2fphp-debugging-under-apache-on-centos-5-9%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
"tells me that files are missing" -> can you please provide detailed error message? "Based on other questions I found here" -> Can you please provide links to this questions?
– user130370
Feb 3 '14 at 14:47
The error message returned by Apache: "Fatal error: Datastore cache file does not exist. Please reupload includes/datastore/datastore_cache.php from the original download. in ..../includes/class_datastore.php on line 681"
– Steven Edwards
Feb 3 '14 at 17:34
Primarily this question: serverfault.com/questions/350288/php-error-logging/…
– Steven Edwards
Feb 3 '14 at 17:37