Tag Info

New answers tagged

0

you should check through the absolute path of phpmyadmin for permissions. my clue is that in some level the web server has no access to a folder, and therefore isn't able to execute your admin interface. you could try something like the following: chgrp -R <your webserver group (most likely www-data)> /path/to/phpmyadmin # Add execute rights on the ...


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 ...


0

PHP functions like exec() or shell_exec() won't help because libvirt executes in root mode, while PHP executes as www-data user. We can give www-data root privileges, but there may be some security issues in that case. So best way is to use libvirt-php API. For example, to list all the VM in php: <?php $conn = libvirt_connect('null', false); ...


0

The htdocs folder need 777 permission using sudo chmod 777 -R /opt/lampp/htdocs. Try to add files and folders in the htdocs folder. It works then. This will help other folders inside htdocs as well.


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-*


0

The PPA maintainer has a separate PPA for use with PHP 5.6. I recommend that you use this PPA instead of downgrading to PHP 5.5


0

If you really need PHP 5.5, than install this version with this command (for version 5.5.24+dfsg-1+deb.sury.org~vivid+1) and check the correct version here: sudo apt-get install php5=5.5.24+dfsg-1+deb.sury.org~vivid+1 and set the package on hold: sudo apt-mark hold php5 Otherwise you'll get in the next update again version 5.6


0

You can download and install php5-tidy from precise-updates, but I think that the dependencies for this can not be met on your system. But you could also try to compile the library itself: sudo apt-get install checkinstall wget http://archive.ubuntu.com/ubuntu/pool/main/t/tidy/tidy_20091223cvs.orig.tar.gz tar xf tidy_20091223cvs.orig.tar.gz cd ...


0

You can try YAK Pro - Php Obfuscator Free, Open Source, Published under the MIT License. I began testing some already existing php obfuscation tools, but I did'nt found one that was fitting all my needs. I wanted a simple command line tool, based on a highly customisable config file, that would be able to: Be fast and re-obfuscates only files that were ...


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

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


0

Installed package is owned by root and scattered across some dirs in /. User is supposed to have a home directory in /home/. For me it is /home/velkan/. User owns that directory and stores all files and user configs there. You can read about UNIX directory structure convention somewhere on the Internet. Btw, when you launch a program, you execute a file ...


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

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


0

To install a package in Ubuntu you can easily just run the command sudo apt-get install package-name So for example to install the package apache2 you can use sudo apt-get install apache2 This default installation method will install the latest version of package founded in your repositories. So in order to install a specific version you should use ...


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 ...


0

The user that runs apache/php is www-data. Run sudo chown -R www-data:www-data /var/www/deploy.log to make the file editable by the web server. The other files you want to perform operations on also need to be writable by the webserver.


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

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


0

Try this go to. sudo crontab -e then put this line above your cronjob. MAILTO="" save and Exit.


0

You can use php /var/www/html/yourProjctFolder/yourFile.php This will call your php file and output if you have written echo or print statement


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 ...


0

Check the output of which php and use the absolute path for php (in my case /usr/bin/php5). */2 * * * * /usr/bin/php /var/www/test/cron.php or just */2 * * * * php /var/www/test/cron.php For clarification, the default $PATH for cron is PATH=/usr/bin:/bin You can check the $PATH with a test entry (Source): * * * * * env > /tmp/env.output ...


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. ...


0

Lines starting with semicolon (;) are ignored in php.ini file. Just delete this character if You want to activate a directive.


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 ...


0

According to the error message, it may be because you choose to hold some packages, forbidding them to get upgrades. You can check for hold packages with these commands: If you are using aptitude: aptitude search "~ahold" If you are using apt-get: dpkg --get-selections | grep 'hold$'


0

Change Options +FollowSymLi2nks to Options +FollowSymLinks


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



Top 50 recent answers are included