I get A lot of Error message and even some time server get hang from time to time
After check we get tow kind of Error repeated
Using Cento7 PHP5.6.30
/usr/local/apache/logs/error_log 1
[Mon May 07 01:00:20.638252 2018] [:error] [pid 7023:tid
139835738089216] [client 141.101.77.10:19927] PHP Fatal error: Call
to undefined function get_bloginfo() in
/home/XXX/public_html/home/wp-includes/class-wp-locale.php on line 231
[Mon May 07 01:00:25.681306 2018] [:error] [pid 9828:tid
139835780052736] [client 162.158.75.246:9299] PHP Fatal error: Call
to undefined function get_bloginfo() in
/home/XXX/public_html/home/wp-includes/class-wp-locale.php on line 231
[Mon May 07 01:00:29.018727 2018] [:error] [pid 7122:tid
139835847194368] [client 141.101.77.148:18581] PHP Fatal error: Call
to undefined function get_bloginfo() in
/home/XXX/public_html/home/wp-includes/class-wp-locale.php on line 231
[Mon May 07 01:00:35.808256 2018] [:error] [pid 7022:tid
139835838801664] [client 172.68.58.85:29845] PHP Fatal error: Call to
undefined function get_bloginfo() in
/home/XXX/public_html/home/wp-includes/class-wp-locale.php on line 231
[Mon May 07 01:00:38.813252 2018] [:error] [pid 9828:tid
139835973637888] [client 141.101.76.42:33479] PHP Fatal error: Call
to undefined function get_bloginfo() in
/home/XXX/public_html/home/wp-includes/class-wp-locale.php on line 231
2
[Mon May 07 12:57:07.966797 2018] [:error] [pid 9930:tid
139835973637888] [client 162.158.74.35:36655] File does not exist:
/home/XXX/public_html/index.php, referer:
http://www.almshaheer.com/article2-460759 [Mon May 07 12:57:20.420644
2018] [:error] [pid 7122:tid 139835830408960] [client
162.158.75.12:11787] File does not exist: /home/XXX/public_html/index.php, referer:
http://www.almshaheer.com/article2-585530 [Mon May 07 12:57:21.005455
2018] [:error] [pid 9930:tid 139835746481920] [client
172.68.58.37:23343] File does not exist: /home/XXX/public_html/index.php, referer:
http://www.almshaheer.com/article2-532518 [Mon May 07 12:58:59.024635
2018] [:error] [pid 9828:tid 139835754874624] [client
172.68.58.61:28733] File does not exist: /home/XXX/public_html/index.php, referer:
http://www.almshaheer.com/article2-696480 [Mon May 07 13:00:28.328754
2018] [:error] [pid 9828:tid 139835965245184] [client
162.158.75.240:17833] File does not exist: /home/XXX/public_html/index.php, referer:
http://www.almshaheer.com/article2-192047
any help, please
Related
Somehow this part of my class does not seem to work. In other methods I'm using the same Package class and it does not give an error. Can anyone tell me what I am doing wrong?
$package = Package::get('Package', $data['Package']);
This is the error log:
[Tue Sep 10 12:20:06.304734 2019] [php7:notice] [pid 2231] [client 10.0.2.2:55056] framework/Framework.php loaded!
[Tue Sep 10 12:20:06.304809 2019] [php7:notice] [pid 2231] [client 10.0.2.2:55056] framework/Auth.php loaded!
[Tue Sep 10 12:20:06.304978 2019] [php7:notice] [pid 2231] [client 10.0.2.2:55056] framework/Router.php loaded!
[Tue Sep 10 12:20:06.305747 2019] [php7:notice] [pid 2231] [client 10.0.2.2:55056] src/controllers/DefaultController.php loaded!
[Tue Sep 10 12:20:06.305876 2019] [php7:notice] [pid 2231] [client 10.0.2.2:55056] framework/View.php loaded!
[Tue Sep 10 12:20:06.305922 2019] [php7:notice] [pid 2231] [client 10.0.2.2:55056] framework/Model.php loaded!
[Tue Sep 10 12:20:06.305933 2019] [php7:notice] [pid 2231] [client 10.0.2.2:55056] src/models/Package.php loaded!
[Tue Sep 10 12:20:06.306602 2019] [php7:notice] [pid 2231] [client 10.0.2.2:55056] framework/Result.php loaded!
[Tue Sep 10 12:20:11.336808 2019] [php7:notice] [pid 2381] [client 10.0.2.2:55058] framework/Framework.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:20:11.337218 2019] [php7:notice] [pid 2381] [client 10.0.2.2:55058] framework/Auth.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:20:11.337306 2019] [php7:notice] [pid 2381] [client 10.0.2.2:55058] framework/Router.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:20:11.338517 2019] [php7:notice] [pid 2381] [client 10.0.2.2:55058] src/controllers/PackageController.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:20:11.338572 2019] [php7:notice] [pid 2381] [client 10.0.2.2:55058] src/Utils.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:20:11.347229 2019] [php7:error] [pid 2381] [client 10.0.2.2:55058] PHP Fatal error: Uncaught Error: Class 'Package' not found in /var/www/html/src/controllers/PackageController.php:115\nStack trace:\n#0 /var/www/html/framework/Framework.php(21): PackageController::upload()\n#1 /var/www/html/index.php(41): Framework::do()\n#2 {main}\n thrown in /var/www/html/src/controllers/PackageController.php on line 115, referer: http://localhost/admin
UPDATE:
For some reason it doesn't load the Package class properly when the upload button is clicked.
[Tue Sep 10 12:51:04.802059 2019] [php7:notice] [pid 2230] [client 10.0.2.2:55774] framework/Framework.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:51:04.802103 2019] [php7:notice] [pid 2230] [client 10.0.2.2:55774] framework/Auth.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:51:04.802155 2019] [php7:notice] [pid 2230] [client 10.0.2.2:55774] framework/Router.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:51:04.802581 2019] [php7:notice] [pid 2230] [client 10.0.2.2:55774] src/controllers/PackageController.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:51:04.802610 2019] [php7:notice] [pid 2230] [client 10.0.2.2:55774] src/Utils.php loaded!, referer: http://localhost/admin
[Tue Sep 10 12:51:04.810391 2019] [php7:error] [pid 2230] [client 10.0.2.2:55774] PHP Fatal error: Uncaught Error: Class 'Package' not found in /var/www/html/src/controllers/PackageController.php:115\nStack trace:\n#0 /var/www/html/framework/Framework.php(21): PackageController::upload()\n#1 /var/www/html/index.php(41): Framework::do()\n#2 {main}\n thrown in /var/www/html/src/controllers/PackageController.php on line 115, referer: http://localhost/admin
This is the code that should load the classes:
spl_autoload_register(function ($class) {
$try = [
'src/models/%s.php',
'src/controllers/%s.php',
'src/%s.php',
'framework/%s.php',
];
foreach ($try as $path) {
$s = sprintf($path, $class);
if (file_exists($s)) {
require $s;
error_log($s . " loaded!");
return;
}
}
return false;
});
ANOTHER UPDATE
I debugged some of the importers:
[Tue Sep 10 13:15:57.424301 2019] [php7:notice] [pid 2381] [client 10.0.2.2:56076] src/models/Package.php does not exists, referer: http://localhost///admin
It is not found, while it is the right location. It is possible that it has to do with the triple slashes?
I have the problem of the blank page with Silex on my project in production.
How do I empty the cache? I tried with php bin/console cache:clear --no-warmup -e prodbut I have this error:
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "cache" namespace.
I think that it must be different with Silex.
PS: error.log
[Tue Aug 08 06:25:03.193526 2017] [core:notice] [pid 7269] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 08 06:50:29.552438 2017] [:error] [pid 16307] [client 66.249.64.159:46142] PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/class-loader/Tests/ApcClassLoaderTest.php on line 17
[Tue Aug 08 06:58:03.547668 2017] [:error] [pid 16369] [client 66.249.64.128:55893] PHP Fatal error: Class 'Symfony\Component\PropertyAccess\Exception\RuntimeException' not found in /var/www/html/roadsofearth/vendor/symfony/property-access/Exception/UnexpectedTypeException.php on line 21
[Tue Aug 08 07:05:37.542474 2017] [:error] [pid 16306] [client 66.249.64.159:35769] PHP Warning: require_once(PHP/CodeCoverage/Autoload.php): failed to open stream: No such file or directory in /var/www/html/roadsofearth/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php on line 2
[Tue Aug 08 07:05:37.542512 2017] [:error] [pid 16306] [client 66.249.64.159:35769] PHP Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Autoload.php' (include_path='.:/usr/share/php') in /var/www/html/roadsofearth/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php on line 2
[Tue Aug 08 07:24:32.536351 2017] [:error] [pid 16309] [client 66.249.64.157:50264] PHP Fatal error: Class 'Symfony\Component\Translation\Loader\FileLoader' not found in /var/www/html/roadsofearth/vendor/symfony/translation/Loader/PhpFileLoader.php on line 19
[Tue Aug 08 07:28:19.541841 2017] [:error] [pid 16369] [client 66.249.64.128:58273] PHP Fatal error: Interface 'Symfony\Component\Validator\Mapping\MetadataInterface' not found in /var/www/html/roadsofearth/vendor/symfony/validator/Mapping/GenericMetadata.php on line 26
[Tue Aug 08 07:35:53.543901 2017] [:error] [pid 16307] [client 66.249.64.157:51598] PHP Fatal error: Interface 'Symfony\Component\Console\Helper\HelperInterface' not found in /var/www/html/roadsofearth/vendor/symfony/console/Helper/Helper.php on line 21
[Tue Aug 08 07:47:14.913694 2017] [:error] [pid 16309] [client 66.249.64.157:34110] PHP Fatal error: Class 'Twig\NodeVisitor\AbstractNodeVisitor' not found in /var/www/html/roadsofearth/vendor/symfony/twig-bridge/NodeVisitor/TranslationNodeVisitor.php on line 26
[Tue Aug 08 07:51:01.535512 2017] [:error] [pid 16369] [client 66.249.64.159:56025] PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /var/www/html/roadsofearth/vendor/sebastian/comparator/tests/ScalarComparatorTest.php on line 17
[Tue Aug 08 07:58:38.766965 2017] [:error] [pid 16307] [client 66.249.64.157:56495] PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/routing/Tests/RequestContextTest.php on line 18
[Tue Aug 08 08:13:58.350715 2017] [:error] [pid 16309] [client 66.249.64.128:46170] PHP Fatal error: Class 'Symfony\Component\HttpKernel\Fragment\AbstractSurrogateFragmentRenderer' not found in /var/www/html/roadsofearth/vendor/symfony/http-kernel/Fragment/EsiFragmentRenderer.php on line 19
[Tue Aug 08 08:21:17.664056 2017] [:error] [pid 16306] [client 66.249.64.159:56076] PHP Fatal error: Class 'Symfony\Component\VarDumper\Cloner\AbstractCloner' not found in /var/www/html/roadsofearth/vendor/symfony/var-dumper/Cloner/VarCloner.php on line 17
[Tue Aug 08 08:51:33.539655 2017] [:error] [pid 16307] [client 66.249.64.157:52678] PHP Fatal error: Interface 'Symfony\Component\Console\Output\OutputInterface' not found in /var/www/html/roadsofearth/vendor/symfony/console/Style/OutputStyle.php on line 23
[Tue Aug 08 08:55:20.534679 2017] [:error] [pid 16308] [client 66.249.64.157:55368] PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /var/www/html/roadsofearth/vendor/sebastian/comparator/tests/MockObjectComparatorTest.php on line 17
[Tue Aug 08 09:10:28.543803 2017] [:error] [pid 16308] [client 66.249.64.157:51059] PHP Fatal error: Interface 'Symfony\Component\Validator\Context\ExecutionContextInterface' not found in /var/www/html/roadsofearth/vendor/symfony/validator/Context/ExecutionContext.php on line 36
[Tue Aug 08 09:14:15.535219 2017] [:error] [pid 16310] [client 66.249.64.159:41984] PHP Fatal error: Class 'SebastianBergmann\Comparator\ObjectComparator' not found in /var/www/html/roadsofearth/vendor/sebastian/comparator/src/DOMNodeComparator.php on line 19
[Tue Aug 08 09:18:08.520908 2017] [:error] [pid 16369] [client 66.249.64.157:56474] PHP Fatal error: Interface 'Symfony\Component\Debug\FatalErrorHandler\FatalErrorHandlerInterface' not found in /var/www/html/roadsofearth/vendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php on line 22
[Tue Aug 08 09:21:49.905656 2017] [:error] [pid 16306] [client 66.249.64.157:35574] PHP Fatal error: Class 'Symfony\Component\Intl\Exception\NotImplementedException' not found in /var/www/html/roadsofearth/vendor/symfony/intl/Exception/MethodNotImplementedException.php on line 17
[Tue Aug 08 09:25:36.545062 2017] [:error] [pid 16307] [client 66.249.64.157:51332] PHP Fatal error: Interface 'Symfony\Component\HttpKernel\HttpCache\StoreInterface' not found in /var/www/html/roadsofearth/vendor/symfony/http-kernel/HttpCache/Store.php on line 25
[Tue Aug 08 09:29:23.534251 2017] [:error] [pid 16308] [client 66.249.64.159:39327] PHP Fatal error: Class 'Twig\Extension\AbstractExtension' not found in /var/www/html/roadsofearth/vendor/symfony/twig-bridge/Extension/HttpKernelExtension.php on line 23
[Tue Aug 08 09:33:10.537784 2017] [:error] [pid 16500] [client 66.249.64.128:50289] PHP Fatal error: Interface 'Symfony\Component\HttpFoundation\Session\SessionInterface' not found in /var/www/html/roadsofearth/vendor/symfony/http-foundation/Session/Session.php on line 27
[Tue Aug 08 10:07:13.911245 2017] [:error] [pid 16310] [client 66.249.64.128:53268] PHP Fatal error: Class 'Symfony\Component\HttpKernel\Event\KernelEvent' not found in /var/www/html/roadsofearth/vendor/symfony/http-kernel/Event/FinishRequestEvent.php on line 19
[Tue Aug 08 10:11:00.532041 2017] [:error] [pid 16369] [client 66.249.64.128:38555] PHP Fatal error: Interface 'Symfony\Component\OptionsResolver\Exception\ExceptionInterface' not found in /var/www/html/roadsofearth/vendor/symfony/options-resolver/Exception/AccessException.php on line 20
[Tue Aug 08 10:22:21.534734 2017] [:error] [pid 16310] [client 66.249.64.159:59860] PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/http-foundation/Tests/ServerBagTest.php on line 22
[Tue Aug 08 10:29:55.536874 2017] [:error] [pid 16369] [client 66.249.64.128:53229] PHP Fatal error: Interface 'Symfony\Component\Process\Pipes\PipesInterface' not found in /var/www/html/roadsofearth/vendor/symfony/process/Pipes/AbstractPipes.php on line 19
[Tue Aug 08 10:33:42.533170 2017] [:error] [pid 16306] [client 66.249.64.159:34131] PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/class-loader/Tests/ClassLoaderTest.php on line 16
[Tue Aug 08 10:37:29.543640 2017] [:error] [pid 16307] [client 66.249.64.157:42740] PHP Fatal error: Class 'Twig\Extension\ProfilerExtension' not found in /var/www/html/roadsofearth/vendor/symfony/web-profiler-bundle/Twig/WebProfilerExtension.php on line 27
[Tue Aug 08 10:41:16.547291 2017] [:error] [pid 16308] [client 66.249.64.128:57670] PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/validator/Tests/ConstraintViolationListTest.php on line 18
[Tue Aug 08 10:45:03.646654 2017] [:error] [pid 16500] [client 66.249.64.128:48709] PHP Fatal error: Class 'Twig\Extension\AbstractExtension' not found in /var/www/html/roadsofearth/vendor/symfony/twig-bridge/Extension/WebLinkExtension.php on line 25
[Tue Aug 08 10:48:50.539184 2017] [:error] [pid 16310] [client 66.249.64.128:45715] PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/event-dispatcher/Tests/EventTest.php on line 20
[Tue Aug 08 10:52:37.541883 2017] [:error] [pid 16309] [client 66.249.64.157:52334] PHP Fatal error: Class 'Symfony\Component\CssSelector\Node\AbstractNode' not found in /var/www/html/roadsofearth/vendor/symfony/css-selector/Node/SelectorNode.php on line 24
[Tue Aug 08 11:00:11.534753 2017] [:error] [pid 16307] [client 66.249.64.128:49147] PHP Fatal error: Interface 'Symfony\Component\Routing\Exception\ExceptionInterface' not found in /var/www/html/roadsofearth/vendor/symfony/routing/Exception/InvalidParameterException.php on line 19
[Tue Aug 08 11:07:45.544828 2017] [:error] [pid 16500] [client 66.249.64.157:34818] PHP Fatal error: Class 'Symfony\Component\Translation\Extractor\AbstractFileExtractor' not found in /var/www/html/roadsofearth/vendor/symfony/twig-bridge/Translation/TwigExtractor.php on line 29
[Tue Aug 08 11:11:32.535271 2017] [:error] [pid 16310] [client 66.249.64.128:38970] PHP Fatal error: Class 'Symfony\Component\OptionsResolver\Exception\InvalidArgumentException' not found in /var/www/html/roadsofearth/vendor/symfony/options-resolver/Exception/MissingOptionsException.php on line 21
[Tue Aug 08 11:15:19.533083 2017] [:error] [pid 16309] [client 66.249.64.128:58115] PHP Fatal error: Class 'Symfony\Component\HttpKernel\EventListener\AbstractTestSessionListener' not found in /var/www/html/roadsofearth/vendor/symfony/http-kernel/EventListener/TestSessionListener.php on line 23
[Tue Aug 08 11:19:06.549634 2017] [:error] [pid 16369] [client 66.249.64.159:53550] PHP Fatal error: Class 'Symfony\Component\Translation\Loader\IcuResFileLoader' not found in /var/www/html/roadsofearth/vendor/symfony/translation/Loader/IcuDatFileLoader.php on line 24
[Tue Aug 08 11:26:40.904976 2017] [:error] [pid 16307] [client 66.249.64.157:44976] PHP Fatal error: Class 'Twig\Extension\AbstractExtension' not found in /var/www/html/roadsofearth/vendor/symfony/twig-bridge/Extension/WorkflowExtension.php on line 24
[Tue Aug 08 11:34:14.545947 2017] [:error] [pid 16310] [client 66.249.64.157:56525] PHP Fatal error: Class 'Twig\Extension\ProfilerExtension' not found in /var/www/html/roadsofearth/vendor/symfony/twig-bridge/Extension/ProfilerExtension.php on line 21
[Tue Aug 08 11:39:00.892433 2017] [:error] [pid 16309] [client 66.249.64.128:59967] PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /var/www/html/roadsofearth/vendor/sebastian/comparator/tests/SplObjectStorageComparatorTest.php on line 20
[Tue Aug 08 11:41:48.905969 2017] [:error] [pid 16369] [client 66.249.64.157:36836] PHP Fatal error: Interface 'Symfony\Component\Asset\Exception\ExceptionInterface' not found in /var/www/html/roadsofearth/vendor/symfony/asset/Exception/InvalidArgumentException.php on line 19
[Tue Aug 08 11:49:22.545516 2017] [:error] [pid 16307] [client 66.249.64.128:47457] PHP Fatal error: Class 'Symfony\Component\CssSelector\Node\AbstractNode' not found in /var/www/html/roadsofearth/vendor/symfony/css-selector/Node/NegationNode.php on line 24
[Tue Aug 08 11:56:56.908219 2017] [:error] [pid 16500] [client 66.249.64.159:38868] PHP Fatal error: Class 'Symfony\Component\Yaml\Exception\RuntimeException' not found in /var/www/html/roadsofearth/vendor/symfony/yaml/Exception/DumpException.php on line 19
[Tue Aug 08 12:08:33.812291 2017] [:error] [pid 16307] [client 66.249.64.128:61181] PHP Fatal error: Interface 'Symfony\Component\Console\Formatter\OutputFormatterInterface' not found in /var/www/html/roadsofearth/vendor/symfony/console/Formatter/OutputFormatter.php on line 21
[Tue Aug 08 12:15:51.535456 2017] [:error] [pid 16500] [client 66.249.64.159:44380] PHP Fatal error: Interface 'Symfony\Component\EventDispatcher\EventDispatcherInterface' not found in /var/www/html/roadsofearth/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcherInterface.php on line 19
[Tue Aug 08 12:19:38.544873 2017] [:error] [pid 16310] [client 66.249.64.128:55930] PHP Fatal error: Class 'Symfony\Component\HttpKernel\Exception\HttpException' not found in /var/www/html/roadsofearth/vendor/symfony/http-kernel/Exception/LengthRequiredHttpException.php on line 19
[Tue Aug 08 12:24:04.840727 2017] [:error] [pid 16309] [client 66.249.64.159:56684] PHP Fatal error: Class 'SebastianBergmann\Comparator\ObjectComparator' not found in /var/www/html/roadsofearth/vendor/sebastian/comparator/src/DateTimeComparator.php on line 16
[Tue Aug 08 12:33:16.600389 2017] [:error] [pid 16307] [client 66.249.64.159:42633] PHP Fatal error: Class 'Symfony\Component\DependencyInjection\Extension\Extension' not found in /var/www/html/roadsofearth/vendor/symfony/http-kernel/DependencyInjection/Extension.php on line 21
[Tue Aug 08 12:34:47.645922 2017] [:error] [pid 16308] [client 66.249.64.157:43164] PHP Fatal error: Class 'Symfony\Component\CssSelector\Node\AbstractNode' not found in /var/www/html/roadsofearth/vendor/symfony/css-selector/Node/PseudoNode.php on line 24
[Tue Aug 08 12:38:34.540874 2017] [:error] [pid 16310] [client 66.249.64.159:33974] PHP Fatal error: Class 'Symfony\Component\Console\Input\Input' not found in /var/www/html/roadsofearth/vendor/symfony/console/Input/ArrayInput.php on line 26
[Tue Aug 08 12:49:55.543914 2017] [:error] [pid 16307] [client 66.249.64.159:42057] PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/roadsofearth/vendor/sebastian/diff/tests/ChunkTest.php on line 18
[Tue Aug 08 12:53:42.532052 2017] [:error] [pid 16308] [client 66.249.64.159:36947] PHP Fatal error: Class 'Symfony\Component\HttpKernel\Exception\HttpException' not found in /var/www/html/roadsofearth/vendor/symfony/http-kernel/Exception/NotFoundHttpException.php on line 19
[Tue Aug 08 13:01:16.542447 2017] [:error] [pid 16500] [client 66.249.64.159:46543] PHP Fatal error: Class 'Symfony\Component\HttpKernel\Event\FilterControllerEvent' not found in /var/www/html/roadsofearth/vendor/symfony/http-kernel/Event/FilterControllerArgumentsEvent.php on line 29
[Tue Aug 08 13:16:24.538787 2017] [:error] [pid 16307] [client 66.249.64.157:64124] PHP Fatal error: Class 'Symfony\Component\DomCrawler\Field\FormField' not found in /var/www/html/roadsofearth/vendor/symfony/dom-crawler/Field/FileFormField.php on line 19
[Tue Aug 08 13:20:11.536864 2017] [:error] [pid 16308] [client 66.249.64.159:60501] PHP Fatal error: Class 'Symfony\Component\DomCrawler\Field\FormField' not found in /var/www/html/roadsofearth/vendor/symfony/dom-crawler/Field/ChoiceFormField.php on line 21
[Tue Aug 08 13:27:45.545493 2017] [:error] [pid 16500] [client 66.249.64.128:55358] PHP Fatal error: Class 'Monolog\Handler\ChromePHPHandler' not found in /var/www/html/roadsofearth/vendor/symfony/monolog-bridge/Handler/ChromePhpHandler.php on line 23
[Tue Aug 08 13:35:19.544757 2017] [:error] [pid 16369] [client 66.249.64.128:52892] PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/debug/Tests/ErrorHandlerTest.php on line 25
[Tue Aug 08 13:43:55.122787 2017] [:error] [pid 16307] [client 66.249.64.128:35642] PHP Fatal error: Class 'Symfony\Component\PropertyAccess\Exception\RuntimeException' not found in /var/www/html/roadsofearth/vendor/symfony/property-access/Exception/AccessException.php on line 19
[Tue Aug 08 13:46:41.077227 2017] [:error] [pid 16308] [client 66.249.64.128:43032] PHP Fatal error: Interface 'Symfony\Component\Validator\Mapping\MetadataInterface' not found in /var/www/html/roadsofearth/vendor/symfony/validator/Mapping/PropertyMetadataInterface.php on line 30
[Tue Aug 08 14:01:48.905705 2017] [:error] [pid 16369] [client 66.249.64.157:48676] PHP Fatal error: Interface 'Symfony\Component\Validator\Exception\ExceptionInterface' not found in /var/www/html/roadsofearth/vendor/symfony/validator/Exception/RuntimeException.php on line 19
[Tue Aug 08 14:05:35.541078 2017] [:error] [pid 16307] [client 66.249.64.159:43117] PHP Fatal error: Uncaught Error: Call to undefined function pcntl_signal() in /var/www/html/roadsofearth/vendor/symfony/process/Tests/NonStopableProcess.php:36\nStack trace:\n#0 {main}\n thrown in /var/www/html/roadsofearth/vendor/symfony/process/Tests/NonStopableProcess.php on line 36
[Tue Aug 08 14:13:50.721233 2017] [:error] [pid 16500] [client 66.249.64.157:33402] PHP Fatal error: Class 'Twig\TokenParser\AbstractTokenParser' not found in /var/www/html/roadsofearth/vendor/symfony/twig-bridge/TokenParser/FormThemeTokenParser.php on line 25
[Tue Aug 08 14:28:17.543789 2017] [:error] [pid 16307] [client 66.249.64.157:40734] PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/http-foundation/Tests/StreamedResponseTest.php on line 18
[Tue Aug 08 14:58:33.542618 2017] [:error] [pid 16308] [client 66.249.64.157:36831] PHP Fatal error: Class 'Symfony\Component\HttpFoundation\File\File' not found in /var/www/html/roadsofearth/vendor/symfony/http-foundation/File/UploadedFile.php on line 25
[Tue Aug 08 15:02:20.543169 2017] [:error] [pid 16500] [client 66.249.64.159:57796] PHP Fatal error: Class 'Symfony\Component\Console\Question\Question' not found in /var/www/html/roadsofearth/vendor/symfony/console/Question/ConfirmationQuestion.php on line 19
[Tue Aug 08 15:06:07.549581 2017] [:error] [pid 16309] [client 66.249.64.128:33812] PHP Warning: require(/var/www/html/roadsofearth/vendor/phpunit/phpunit-mock-objects/tests/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/roadsofearth/vendor/phpunit/phpunit-mock-objects/tests/bootstrap.php on line 3
[Tue Aug 08 15:06:07.549645 2017] [:error] [pid 16309] [client 66.249.64.128:33812] PHP Fatal error: require(): Failed opening required '/var/www/html/roadsofearth/vendor/phpunit/phpunit-mock-objects/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/roadsofearth/vendor/phpunit/phpunit-mock-objects/tests/bootstrap.php on line 3
[Tue Aug 08 15:09:54.535547 2017] [:error] [pid 16369] [client 66.249.64.157:63682] PHP Fatal error: Class 'Symfony\Component\Config\Loader\FileLoader' not found in /var/www/html/roadsofearth/vendor/symfony/routing/Loader/XmlFileLoader.php on line 26
[Tue Aug 08 15:13:41.545768 2017] [:error] [pid 16306] [client 66.249.64.128:60150] PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/inflector/Tests/InflectorTest.php on line 17
[Tue Aug 08 15:25:02.540619 2017] [:error] [pid 16500] [client 66.249.64.159:34361] PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/roadsofearth/vendor/symfony/yaml/Tests/DumperTest.php on line 19
[Tue Aug 08 15:36:23.538582 2017] [:error] [pid 16308] [client 66.249.64.128:53735] PHP Fatal error: Class 'Symfony\Component\PropertyAccess\Exception\AccessException' not found in /var/www/html/roadsofearth/vendor/symfony/property-access/Exception/NoSuchIndexException.php on line 19
I'm trying to create a new WordPress site but I don't know the cause why I'm getting an error in the second part of installation (Information Needed) where we have to put the site title, username, password and email.
HTTP 500 error The localhost page isn’t working
And so, I can't login on this site because the data is not saved on phpMyAdmin database.
All data is correct database name, username and password. I don't get why it has database kind of error. This is Apache error log:
[Wed Jan 18 14:55:15.767038 2017] [:error] [pid 10596:tid 1664] [client ::1:62560] WordPress database error Unknown column 'myslca_' in 'field list' for query SELECT myslca_, referer: http://localhost:8020/sample-slca/wp-admin/setup-config.php?step=1
[Wed Jan 18 14:56:13.054742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\xampp\\htdocs\\sample-slca\\wp-includes\\Requests\\Transport\\cURL.php on line 437, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.055742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP Stack trace:, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.056742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 1. {main}() C:\\xampp\\htdocs\\sample-slca\\wp-admin\\install.php:0, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.056742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 2. wp_install() C:\\xampp\\htdocs\\sample-slca\\wp-admin\\install.php:375, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.057742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 3. wp_install_maybe_enable_pretty_permalinks() C:\\xampp\\htdocs\\sample-slca\\wp-admin\\includes\\upgrade.php:94, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.058742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 4. wp_remote_get() C:\\xampp\\htdocs\\sample-slca\\wp-admin\\includes\\upgrade.php:340, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.059742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 5. WP_Http->get() C:\\xampp\\htdocs\\sample-slca\\wp-includes\\http.php:170, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.059742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 6. WP_Http->request() C:\\xampp\\htdocs\\sample-slca\\wp-includes\\class-http.php:593, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.060742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 7. Requests::request() C:\\xampp\\htdocs\\sample-slca\\wp-includes\\class-http.php:366, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.061742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 8. Requests_Transport_cURL->request() C:\\xampp\\htdocs\\sample-slca\\wp-includes\\class-requests.php:379, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.061742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 9. curl_exec() C:\\xampp\\htdocs\\sample-slca\\wp-includes\\Requests\\Transport\\cURL.php:162, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
[Wed Jan 18 14:56:13.062742 2017] [:error] [pid 10596:tid 1704] [client ::1:62576] PHP 10. Requests_Transport_cURL->stream_headers() C:\\xampp\\htdocs\\sample-slca\\wp-includes\\Requests\\Transport\\cURL.php:162, referer: http://localhost:8020/sample-slca/wp-admin/install.php?language=en_US
I've wrote a script which reads a log-file and write it into an Database. Because of many different line-types it would take about 30 minits executiontime.
Log-Files got:
~20 MB filesize
~200.000 lines
If I include it to my website, the script would run only with small log-files(~2MB tested), it won't run till end if i'm using normal-log-files. I included the script like this:
<?php
include "logLauncher/main.php";
?>
The strange thing is if i using a syscall it would run.
<?php
system("php5 logLauncher/main.php");
?>
Three last entrys in file: /var/log/apache2/error.log
[Wed Aug 26 11:11:22.210994 2015] [:error] [pid 18893] [client 192.168.0.100:54746] PHP 1. {main}() /var/www/cowrean_logs/alpha/main.php:0, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=2&left=1&right=1&event=5&trigger=18200&focus=2&filter1=&encounter=11982&&start=2015-05-27%2019:59:07&end=2015-05-27%2020:00:48
[Wed Aug 26 11:11:22.211004 2015] [:error] [pid 18893] [client 192.168.0.100:54746] PHP 2. include() /var/www/cowrean_logs/alpha/main.php:121, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=2&left=1&right=1&event=5&trigger=18200&focus=2&filter1=&encounter=11982&&start=2015-05-27%2019:59:07&end=2015-05-27%2020:00:48
[Wed Aug 26 11:11:22.211014 2015] [:error] [pid 18893] [client 192.168.0.100:54746] PHP 3. include() /var/www/cowrean_logs/alpha/mod_focus.php:192, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=2&left=1&right=1&event=5&trigger=18200&focus=2&filter1=&encounter=11982&&start=2015-05-27%2019:59:07&end=2015-05-27%2020:00:48
[Wed Aug 26 11:11:28.131411 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP Notice: A session had already been started - ignoring session_start() in /var/www/cowrean_logs/alpha/main.php on line 47, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=2&left=1&right=1&event=5&trigger=18200&focus=2&filter1=&encounter=11982&start=2015-05-27%2019:59:07&end=2015-05-27%2020:00:48
[Wed Aug 26 11:11:28.131462 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP Stack trace:, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=2&left=1&right=1&event=5&trigger=18200&focus=2&filter1=&encounter=11982&start=2015-05-27%2019:59:07&end=2015-05-27%2020:00:48
[Wed Aug 26 11:11:28.131481 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP 1. {main}() /var/www/cowrean_logs/alpha/main.php:0, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=2&left=1&right=1&event=5&trigger=18200&focus=2&filter1=&encounter=11982&start=2015-05-27%2019:59:07&end=2015-05-27%2020:00:48
[Wed Aug 26 11:11:28.131494 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP 2. session_start() /var/www/cowrean_logs/alpha/main.php:47, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=2&left=1&right=1&event=5&trigger=18200&focus=2&filter1=&encounter=11982&start=2015-05-27%2019:59:07&end=2015-05-27%2020:00:48
[Wed Aug 26 11:11:29.080694 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP Notice: A session had already been started - ignoring session_start() in /var/www/cowrean_logs/alpha/main.php on line 47, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=1&left=4&right=0
[Wed Aug 26 11:11:29.080728 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP Stack trace:, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=1&left=4&right=0
[Wed Aug 26 11:11:29.080741 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP 1. {main}() /var/www/cowrean_logs/alpha/main.php:0, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=1&left=4&right=0
[Wed Aug 26 11:11:29.080751 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP 2. session_start() /var/www/cowrean_logs/alpha/main.php:47, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=1&left=4&right=0
[Wed Aug 26 11:11:29.081747 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP Notice: Undefined property: mysqli::$close in /var/www/cowrean_logs/alpha/mod_execute_log.php on line 131, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=1&left=4&right=0
[Wed Aug 26 11:11:29.081769 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP Stack trace:, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=1&left=4&right=0
[Wed Aug 26 11:11:29.081790 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP 1. {main}() /var/www/cowrean_logs/alpha/main.php:0, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=1&left=4&right=0
[Wed Aug 26 11:11:29.081801 2015] [:error] [pid 18894] [client 192.168.0.100:54747] PHP 2. include() /var/www/cowrean_logs/alpha/main.php:118, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?top=1&left=4&right=0
[Wed Aug 26 11:11:35.819211 2015] [:error] [pid 21277] [client 192.168.0.100:54748] PHP Notice: A session had already been started - ignoring session_start() in /var/www/cowrean_logs/alpha/main.php on line 47, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?left=7&top=1&right=0
[Wed Aug 26 11:11:35.819247 2015] [:error] [pid 21277] [client 192.168.0.100:54748] PHP Stack trace:, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?left=7&top=1&right=0
[Wed Aug 26 11:11:35.819267 2015] [:error] [pid 21277] [client 192.168.0.100:54748] PHP 1. {main}() /var/www/cowrean_logs/alpha/main.php:0, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?left=7&top=1&right=0
[Wed Aug 26 11:11:35.819279 2015] [:error] [pid 21277] [client 192.168.0.100:54748] PHP 2. session_start() /var/www/cowrean_logs/alpha/main.php:47, referer: http://192.168.0.10/cowrean_logs/alpha/main.php?left=7&top=1&right=0
I would not post whole config-files because "/etc/php5/apache2/php.ini" and "/etc/php5/cli/php.ini" got more than 600 lines!
I think these lines could be interested, but they are in both files identical -.-
post_max_size = 20M
max_execution_time = 30
memory_limit = -1
Got anyone have a solution for me to kick out the syscall from my code? And include the log-reader script directly into my page? Syscalls doesn't look fine!
Ubuntu 14.4
PHP5
Apache2
PHP-CLI
In the script in question add this at the top of the code
<?php
ini_set('max_execution_time', -1 );
This will tell PHP not to timeout this script.
It has its dangers, for example if you manage to code and infinite loop then the script will run till you kill either apache or PHP, depending on your configuration.
It is best not to change this in the php.ini as that will effect every php script.
I have no idea of what version of PHP I was using before, but I'm guessing it was an older version because it was working just fine before I switched from Nginx to Apache. I think I was using an older version of PHP on Nginx. Anyhow this is an example of code that is said to be deprecated. I am now on PHP 5.5.9.
<?php
// Establishing Connection with Server by passing server_name, user_id and password as a parameter
$connection = mysql_connect("localhost", "username", "password");
// Selecting Database
$db = mysql_select_db("database", $connection);
session_start();// Starting Session
// Storing Session
$user_check=$_SESSION['login_user'];
// SQL Query To Fetch Complete Information Of User
$ses_sql=mysql_query("select name from table where name='$user_check'", $connection);
$row = mysql_fetch_assoc($ses_sql);
$login_session =$row['name'];
if(!isset($login_session)){
mysql_close($connection); // Closing Connection
header('Location: index.php'); // Redirecting To Home Page
}
?>
All of my pages use PHP code similar to this so I'm just going to post one of them. This is my error log.
[Mon Jan 12 03:03:40.456254 2015] [mpm_event:notice] [pid 2415:tid 3074542208] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jan 12 03:03:40.456344 2015] [core:notice] [pid 2415:tid 3074542208] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 12 03:04:42.038619 2015] [mpm_event:notice] [pid 2415:tid 3074542208] AH00491: caught SIGTERM, shutting down
[Mon Jan 12 03:04:43.100702 2015] [mpm_prefork:notice] [pid 3617] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Jan 12 03:04:43.100786 2015] [core:notice] [pid 3617] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 12 03:04:44.344041 2015] [mpm_prefork:notice] [pid 3617] AH00169: caught SIGTERM, shutting down
[Mon Jan 12 03:04:45.489917 2015] [mpm_prefork:notice] [pid 3708] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations
[Mon Jan 12 03:04:45.489959 2015] [core:notice] [pid 3708] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 12 03:06:19.837552 2015] [mpm_prefork:notice] [pid 3708] AH00169: caught SIGTERM, shutting down
[Mon Jan 12 03:06:20.873964 2015] [mpm_prefork:notice] [pid 3925] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations
[Mon Jan 12 03:06:20.874005 2015] [core:notice] [pid 3925] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 12 03:07:37.795009 2015] [:error] [pid 3932] [client 108.162.238.215:57356] script '/var/www/html/info.php' not found or unable to stat
[Mon Jan 12 03:09:01.713565 2015] [:error] [pid 3928] [client 108.162.238.215:28781] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4
[Mon Jan 12 03:09:06.002298 2015] [:error] [pid 3928] [client 108.162.238.215:28781] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4
[Mon Jan 12 03:09:17.906216 2015] [:error] [pid 3946] [client 108.162.238.215:64299] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4
[Mon Jan 12 03:09:23.456198 2015] [:error] [pid 3931] [client 108.162.238.215:36456] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4, referer: https://epicmc.us/404.php
[Mon Jan 12 03:09:26.631794 2015] [:error] [pid 3931] [client 108.162.238.215:36456] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4, referer: https://epicmc.us/404.php
[Mon Jan 12 03:09:55.207111 2015] [mpm_prefork:notice] [pid 3925] AH00169: caught SIGTERM, shutting down
[Mon Jan 12 03:09:55.300465 2015] [mpm_prefork:notice] [pid 3996] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations
[Mon Jan 12 03:09:55.300511 2015] [core:notice] [pid 3996] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 12 03:09:59.717164 2015] [:error] [pid 4001] [client 108.162.238.215:16174] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4, referer: https://epicmc.us/404.php
[Mon Jan 12 03:10:25.281382 2015] [:error] [pid 4002] [client 108.162.238.215:18754] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4
[Mon Jan 12 03:11:03.812550 2015] [:error] [pid 3999] [client 108.162.238.215:47026] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4
[Mon Jan 12 03:11:39.560256 2015] [:error] [pid 4016] [client 108.162.238.215:28585] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4
[Mon Jan 12 03:14:36.371451 2015] [:error] [pid 4001] [client 108.162.238.215:29588] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 7
[Mon Jan 12 03:14:36.387589 2015] [:error] [pid 4017] [client 63.142.248.45:58023] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/api.php on line 9
[Mon Jan 12 03:14:36.387889 2015] [:error] [pid 4001] [client 108.162.238.215:29588] PHP Warning: file_get_contents(http://epicmc.us/api.php?task=stats&player=): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error\r\n in /var/www/html/stats.php on line 7
[Mon Jan 12 03:14:36.387942 2015] [:error] [pid 4001] [client 108.162.238.215:29588] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 10
[Mon Jan 12 03:14:36.387956 2015] [:error] [pid 4001] [client 108.162.238.215:29588] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 20
[Mon Jan 12 03:14:36.388029 2015] [:error] [pid 4001] [client 108.162.238.215:29588] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4
[Mon Jan 12 03:14:40.516471 2015] [:error] [pid 4001] [client 108.162.238.215:29588] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/api.php on line 9
[Mon Jan 12 03:16:26.882760 2015] [:error] [pid 4003] [client 108.162.214.137:51884] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4, referer: https://epicmc.us
[Mon Jan 12 03:18:35.605165 2015] [mpm_prefork:notice] [pid 3996] AH00169: caught SIGTERM, shutting down
[Mon Jan 12 03:18:36.649524 2015] [mpm_prefork:notice] [pid 4105] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations
[Mon Jan 12 03:18:36.649586 2015] [core:notice] [pid 4105] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 12 03:18:40.845243 2015] [:error] [pid 4111] [client 108.162.238.215:26322] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 7
[Mon Jan 12 03:18:40.849347 2015] [:error] [pid 4112] [client 63.142.248.45:34942] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/api.php on line 9
[Mon Jan 12 03:18:40.849619 2015] [:error] [pid 4111] [client 108.162.238.215:26322] PHP Warning: file_get_contents(http://epicmc.us/api.php?task=stats&player=): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error\r\n in /var/www/html/stats.php on line 7
[Mon Jan 12 03:18:40.849660 2015] [:error] [pid 4111] [client 108.162.238.215:26322] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 10
[Mon Jan 12 03:18:40.849671 2015] [:error] [pid 4111] [client 108.162.238.215:26322] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 20
[Mon Jan 12 03:18:40.850012 2015] [:error] [pid 4111] [client 108.162.238.215:26322] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 4
[Mon Jan 12 03:22:59.264503 2015] [:error] [pid 4110] [client 108.162.238.215:39205] PHP Fatal error: Call to undefined function mysqli_connect() in /var/www/html/session.php on line 3
[Mon Jan 12 03:25:15.361204 2015] [:error] [pid 4109] [client 108.162.238.215:31116] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 3
[Mon Jan 12 03:26:55.673865 2015] [:error] [pid 4108] [client 108.162.238.215:44137] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 3
[Mon Jan 12 03:26:59.193970 2015] [:error] [pid 4112] [client 108.162.238.215:43815] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 7
[Mon Jan 12 03:26:59.197756 2015] [:error] [pid 4125] [client 63.142.248.45:44475] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/api.php on line 9
[Mon Jan 12 03:26:59.197950 2015] [:error] [pid 4112] [client 108.162.238.215:43815] PHP Warning: file_get_contents(http://epicmc.us/api.php?task=stats&player=): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error\r\n in /var/www/html/stats.php on line 7
[Mon Jan 12 03:26:59.197982 2015] [:error] [pid 4112] [client 108.162.238.215:43815] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 10
[Mon Jan 12 03:26:59.197992 2015] [:error] [pid 4112] [client 108.162.238.215:43815] PHP Notice: Undefined index: player in /var/www/html/stats.php on line 20
[Mon Jan 12 03:26:59.198047 2015] [:error] [pid 4112] [client 108.162.238.215:43815] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/session.php on line 3
[Mon Jan 12 03:27:03.942299 2015] [:error] [pid 4111] [client 108.162.238.215:51061] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/api.php on line 9
[Mon Jan 12 03:27:16.010513 2015] [:error] [pid 4110] [client 108.162.238.215:42175] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/api.php on line 9
If somebody out there could re-write the entire PHP code I posted above in PHP 5 format so that I know where to start that would be awesome. Currently Apache2 is just a blank site with only a couple HTML elements working here and there. Sorry if this sounds like a noob question I'd just really like a reference.
There is two php.ini files. One is in /etc/php5/apache2
PHP INI ATTACHED EXTERNALLY BECAUSE I DON'T HAVE ENOUGH ROOM TO POST IT HERE
http://pastebin.com/UpwuC2Hj
you appear to be missing the mysql modules for php. installing them should get your site back up again, then you can start on upgrading your code.
read the comments in the section Dynamic Extensions of the ini file and uncomment the correct line.