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

The problem is somewhat two-fold. The first problem is that that you use the php5 package in your install. That package is a metapackage - it pulls in other packages when you hit "Install". The problem is it prefers the Apache plugins over php5-fpm and other processors, and causes Apache to install with everything else. (And this is not supposed to be ...


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

Ubuntu 15.04 has PHP 5.6 in it. So if you don't care for LTS, upgrade to Ubuntu 15.04. This also indicates that the next LTS will have PHP 5.6 included, so start making sure your PHP code will work with it. So to answer the question: yes. it is now included in the repositories, but only starting with Ubuntu 15.04.


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

You can use a ppa to install a newer version of PHP and keep it up to date. Add the ppa to you system with: sudo add-apt-repository ppa:ondrej/php5-5.6 sudo apt-get update Install the relecant packes with: sudo apt-get install python-software-properties sudo apt-get install php5 Once it is finished check the version with php5 -v


1

Of ocourse, one must remember to pass a HTTP "GET" parameter named 'XDEBUG_SESSION_START` and setting it to the IDE KEY.


1

You must allow the Apache user (usually www-data)to create files in that directory. This can be accomplished by making Apache the owner of the directory, for example, if the directory were called my-dir, you would open a terminal and run this: sudo chown www-data my-dir


1

First of all, this is not really Ubuntu-related, but you are missing some extensions for PHP. To add this particular extension to your system, issue this command: sudo apt-get install php5-json Or even better, to have all the supported extensions installed: sudo apt-get install php5-*



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