PHP Show Error Logs on Linux [closed] - php

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm using PHP as scripting language to create web application. My question is how could I see error logs on linux? i forgot the comman, It's something like tail -f blabla

Depends on your distribution and how Apache was installed (I assume you're using Apache). You should find the relevant log in /var/log or /var/log/httpd. Once you find the right log file, you could watch it with tail -f <file>.
You can also configure PHP to display errors in the script output via the display_errors switch in php.ini. Do php -i | grep php.ini to figure out where your relevant php.ini is (typically /etc/php.ini).

Related

PhpMyAdmin Blank Page on fodora 22 localhost server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I follow this guide to install LAMP server on fedora 22 workstation
How To Install LAMP Stack (Apache, MariaDB And PHP) In Fedora 22
Everything working well except phpmyadmin.
When i need access it of the browser
i see nothing (blank page)
How i can fix this issue ?
Any Suggestions ?
Possibly you can get more info via 2 things
1- Enabling php display_errors in php.ini file which you can find by running
php --ini
changing display_errors to on and save it then restart apache web server and revisit phpmyadmin url which should show you the error
2- looking in apache error log which mostly located in /var/log/httpd/error.log
you can use tail -f for better tshooting
tail -f /var/log/httpd/error.log
Try running phpMyAdmin's index.php over the command line. This should give you more information about the error that causes the problem.
php index.php

How to Romove SUEXEC from apache webserver? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
As client requirement i need to remove the suexec from apache to remove vulnerabilties.
To do that i am using apachectl -V command on linux machine.
i am getting many variables with path of the file like
-D SUEXEC_BIN="/usr/sbin/suexec"
From the documentation on apache.org
if i would remove or rename this suexec file from the above path and restart the server, suexec will be deactivated and the above variable won't be show the file.
I am doing the same but the reflection is not showing. please help me out this.
The -D SUEXEC_BIN=… text that you're seeing is an option that was specified when the web server was compiled. It doesn't mean that suexec is being used, and it can't be removed without recompiling the web server (which you should not do here).
Refer to manual on how to disable or enable suexec: http://httpd.apache.org/docs/2.2/suexec.html#enable

how can I setup LD_LIBRARY_PATH for apache daemon? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have multiple versions of gcc 4.1.2 and 4.9.1 installed as g++4.9.
The old version had really old libstdc++ and was always failing with requiring libgcc errors. I fixed that by adding
export LD_LIBARY_PATH=/home/naveen/gcc4.9/lib: /home/naveen/gcc4.9/lib64 to all users. I even set this in /etc/bashrc and did . /etc/bashrc as root.
Now I am running a c++ code using php but the code always fails with the same libgcc errors i was seeing from console. I can see that the apache is being controlled by user daemon.
How can I fix this so that apache and php use the modified ld_library_paths?
Edit the scripts that actually start httpd and export the variables there.

Trying to install composer [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am running my application in MAMP server. I want to install composer.
I tried to doing this by this command.
curl -sS https://getcomposer.org/installer | php
But, it's giving me error.
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script
again:
The detect_unicode setting must be disabled. Add the following to the
end of your php.ini:
detect_unicode = Off
The php.ini used by your command-line PHP is: /private/etc/php.ini If
you can not modify the ini file, you can also run php -d
option=value to modify ini values on the fly. You can use -d multiple
times.
What could be the reason. This command consider default PHP installed in mac or it's going to targer MAMP's PHP?
Either follow the instructions and edit the php.ini file as it says, or don't use php, which is the system's PHP installation, but use the full path to MAMP's PHP instead:
$ curl ... | /Applications/MAMP/bin/php/php<your-version-here>/bin/php

Apache httpd.conf file missing [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I've looked on
etc/apache/httpd.conf
/etc/httpd/conf/http.conf
/etc/httpd/http.conf
Is there somewhere else where this file can be?? Am I missing something...?
Run the following command on the command line:
apachectl configtest
This should attempt to test the config, and it should also tell you where it's testing the config from.
run the following command:
cd /
sudo find *.conf
this should find all .conf files for you, just look threw and see what there is
More information on this command located here: https://help.ubuntu.com/community/find

Categories