Tag Info

Hot answers tagged

4

Lines starting with ; are comments, used for examples and explanations. You need to add the "actual" entries, for example date.timezone = "Asia/Tokyo" instead of ;date.timezone = "Asia/Tokyo" I'd recommend to add your entries instead of editing the existing, out-commented entries. So you can go back to the default just by deleting your own additions. ...


2

phpmyadmin should run on the server that has Apache2 and PHP running, but it is able to connect to an external database server. Answer taken from here: In the config file, change the "host" variable to point to the external server. The config file is called config.inc.php and it will be in the main phpMyAdmin folder. There should be a line like this: ...


1

can i execute shell commands on Ubuntu from PHP, and automate what I am doing manually now? You can run shell commands from within PHP using the shell_exec() function or using the ` ` (backtick) operator: if you're running PHP < 5.4.0, first make sure to disable safe mode, then in your PHP script you can use either of those syntaxes: $return = ...


1

There is something wrong in your APT sources. You can see that because of the version of your php5-common packages which is 5.5.9+dfsg-1ubuntu4.4 whereas you php5-intl package version is only 5.5.9+dfsg-1ubuntu4. Also, your current php5-common package version comes from /var/lib/dpkg/status indicating it can not be associated to any currently known APT ...


1

My recommendation would be to put call the script using standard web path, so you don't mingle the users and permissions, e.g. instead of doing: /usr/bin/php <script> rather do: /usr/bin/wget -q http://localhost/test/cron.php Then you need to make sure the script can be called just from localhost (f.e. using Apache2 access policy). This way the ...


1

The default document root is /var/www/html. Move tests to /var/www/html/tests.


1

This is a matter of resource usage that generates the heat. As alluded to in comments, PhpStorm takes a lot of resources and CPU usage. This in turn means your CPU needs to run and generate heat to process the requirements. This is a side effect of resource-intense programs, and unfortunately there's no good solutions to this problem. (Windows is plagued ...


1

unlink /etc/alternatives/x-cursor-theme You may also be interested in update-alternates update-alternatives --config x-cursor-theme


1

To fix the issue, I edited /etc/php5/apache2/conf.d/20-xdebug.ini and added the following line: xdebug.max_nesting_level = 250


1

check following all are correct. (1)-f file.php Parse and execute file */10 * * * * /usr/bin/php -f /var/www/html/register.php (2) give file following permission chmod -x /var/www/register.php (3)check which php $ which php /usr/bin/php if its diffrente then its affect your cron tab. (4)if you are using any url related operation in ...


1

Well then check if mysql is really not running: sudo aptitude install nmap And then: sudo nmap -sS <ipofdbserverhere> You can also install the tool on the mysql server, the the command would be: sudo nmap -sS localhost In both cases your answer should look like this. [simmel]@[mars]$ sudo nmap -sS 172.16.1.41 Starting Nmap 6.40 ( ...


1

This is the content of your sudoers file? www-data ALL=(ALL) NOPASSWD: /sbin/iptables Make sure to pass the full path of the executable. Here is code in python: #!/usr/bin/env python3 import subprocess as sp sp.call(['sudo', '/sbin/iptables' , '-S']) Here is someone who encountered a similar problem in PHP: ...



Only top voted, non community-wiki answers of a minimum length are eligible