Tag Info

New answers tagged

0

To make it work we first need to change the current working folder of the bash script that is envoking the daemon.php file as a system serice before using the nohup php command. To make below work: place in (as root) /etc/init.d/yourscript chmod yourscript +x update-rc.d yourscript defaults 98 02 add line to rc2.d: /etc/init.d/yourscript start Alternative ...


0

Step 1 : Download XAMPP for Linux 5.5.24 & 5.6.8 click here Download Step 2 : open terminal ( Ctrl+Alt+t ) cd Downloads sudo su chmod 755 xampp-linux-x64-1.8.3-1-installer.run ./xampp-linux-x64-1.8.3-1-installer.run Step 3 : follow the instructions Step 4.1 : Start Apache,MySQL /opt/lampp/lampp start Step 4.2 : stop Apache,MySQL ...


0

To install the latest Apache version, simly run these commands on Terminal: sudo apt-get update sudo apt-get install apache2 To use the PHP and MySQL versions you mentioned, you simply need to install them following this general rule: apt-get install <package name>=<version> But before doing that, I seriously do not understand why you need ...


0

Okay, I now found out the main problem was I didn't get any error messages. To solve this, open the file /etc/php5/apache2/php.ini in a text editor as root. In the terminal window, type the command sudo emacs /etc/php5/apache2/php.ini and press enter. Locate the line display_errors = Off and change it to display_errors = On. This helped me see that there ...


1

My recommendation: Don't use XAMPP for this! It's supposed to be a simple way to get the usual Apache, MySQL, PHP, +Python/Perl stack to work. Leave the walled garden and your pretty much on your own… Also: Even if you do get it to work there is no guarantee that it won't break the next time your system or XAMPP itself. This use-case is not supported by ...


0

have you tried installing php5 on your ubuntu ? sudo apt-get install php5 then reconfigure the apache2 config file. is your php service is running ?


1

Write all your code in index.php file instead of in index.html (// index was sample file name i have given) Then You write your above code in that file In order to execute the php script extension of the file must be .php


0

After little more effort I'm able to work with my htdocs folder. First i set my owner of my htdocs from root to My User after that i set permission of my htdocs 755 (drwx-rx--rx-) for my all directories in htdocs User this code to do that find htdocs -type d -exec chmod 755 {} \; and for files i set 644 (rw-r-r) User this code to do that find htdocs ...


0

Error writing /etc/phpmyadmin/config.inc.php: Permission denied You are trying to upload /save in /etc/phpmyadmin, while this directory have some permissions that disable user from writing on it, so you have to choose one of many scenarios to solve that: Change the dir to some dir in your home change permission of that dir using chmod. Read this for ...


0

In general to change file and/or directories permissions you need to use chmod command (you already knew that). There is two way to use chmod more information in official ubuntu docs page. In the nutshell either use letters e.g r read (readable) w write (writeable) x execute (executable) OR use numbers 4 == r 2 == w 1 == x Here are some example ...


0

If you can't find "--without-libssh2" to replace with "--with-libssh2" you can search for "--without-ssl" and append "--with-libssh2", tested with curl Version 7.35.0 on Ubuntu 14.04.2 Customized answer from Frantique: Download and unpack the curl source. After that: sudo apt-get install build-essential debhelper libssh2-1-dev sudo apt-get source libcurl3 ...


0

You may need to go to your phpMyAdmin.conf and edit it to require your computers IP. Require ip your.pcs.ip.address Right now phpMyAdmin may be configured to only allow localhost access.


0

I'd start by getting a solid PHP 5.5 system: sudo add-apt-repository ppa:ondrej/php5 sudo add-apt-repository ppa:ondrej/php5-oldstable sudo apt-get update sudo apt-get -f install Remove all the things but pay attention to what's being removed: sudo apt-get -s remove ^php.* dh-php5 libapache2-mod-php5 Remove the PPAs: sudo add-apt-repository --remove ...


0

Fixed. Since the panel interface I was using was Virtualmin, I merely ran install.sh which reinstalls Virtualmin. Apparently it was enough to resolve this problem, although they dont recommend doing it over a previous install, all seems to be ok thus far.


0

You should run sudo apt-get remove php5, then for 5.5 specifically, which was not used in 15.04, you will need to add a source from utopic by opening /etc/apt/sources.list in your favorite text editor and adding the following lines deb http://us.archive.ubuntu.com/ubuntu utopic main and deb-src http://us.archive.ubuntu.com/ubuntu utopic main. Next, to ...


0

After installing the Oracle drivers, you can use this this class here and then you just need to change your PDO connection from something like $pdo = new PDO("oci:dbname=mydatabase;charset=utf8", "user", "password"); to $pdo = new PDOOCI\PDO("mydatabase", "user", "password"); The rest should work exactly the same as if you were using a PDO object.


1

I ran apt-cache search php |grep -i emacs which shows php-elisp - Emacs support for php files and after sudo apt-get install php-elisp emacs shows a php file quite colorful.


1

If you prefer to use a graphical interface then: bring up the properties window for the file head over to the permissions tab enable Allow executing file as program Next time you double click the program you should have the choice to run it. Edit You're using an x86_64 package on a 32-bit machine, so it obviously won't work. Re-download the ...


1

Open a terminal (Ctrl + Alt + T) cd ~/Downloads chmod +x ./SourceGuardian-10-Evaluation-Linux-x86_64-Install ./SourceGuardian-10-Evaluation-Linux-x86_64-Install


1

@Erik Stagg, I know it is late but indeed to use unoconv with other user you can leave an open a port with sudo in another process: $ sudo unoconv --listener Meanwhile this process is running, you can use unoconv with a normal user: $ unoconv -f docx file.doc


1

Just open the following path, cd /usr/share/applications/ Find netbeans.desktop file ls -al | grep netbeans Edit netbeans.desktop file vim netbeans <version> Exec=/bin/sh "/usr/local/netbeans-8.0.2/bin/netbeans" %U Just add %U at the end of Exec. Now goto any file, right click properties->open with, there you see netbeans. Now set it as ...


1

Resolved the issue by using this as my .htaccess file RewriteEngine On RewriteBase /~admini/me/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L]


0

You could be running two different instances of Apache. One serving files from var/www/html and the XAMPP/LAMPP instance serving from opt/lampp/htdocs/ (That's the default LAMPP directory) If you have that directory you could copy your project to it. Then start apache inside of LAMPP and see if it works as expected. Note: For LLAMP your site might be ...


0

you do not have to run the apache2 service manually. LAMP is all you need as we all know LAMP = Linux, Apache, Mysql and Php


4

right click on the project in netbeans go to run configuration and change the project URL so it satisfy your need (without html)


0

Answered the same question on StackOverflow and got an answer there: http://stackoverflow.com/questions/30935328/php-wordpress-blog-and-tomcat-on-same-server-is-it-possible/30938420#30938420


0

As per your comment, $file contains a path output of find. That path is likely to contain spaces. Using a path containing spaces in a command is likely to break it. So just enclose the path into double quotes: $ff = '/usr/bin/ffmpeg -i "'.$file.'" -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 -s '.$RESOLUTION.' -vb '.$VB.'k -ac 2 -acodec ...


0

The problem is not with your firewall but with your apache configuration. As, muru explained correctly, you can see by this line: tcp6 0 0 :::80 :::* LISTEN 19199/apache2 that apache is listening on both ipv4 and ipv6. Since you mentioned it is working from localhost I would suggest checking your ...


0

You need to use chmod command to change the permission, How to use Chmod command, or You can lunch the app as Root, How to launch application as root


0

bcmath is builtin as an included module in the packages php5-fpm and libapache2-mod-php5 And since that the php5-fpm system as well as the libapache2-mod-php5 plugin is included by default in apache installtion,then you don't have to install any additional packages or plugins to get bcmath. Now for libplrpc-perl update your source list then try to ...


0

The package that you need to have installed is php5-sqlite View on Ubuntu Packages You can check if it's installed using a phpinfo(); page. Like this one : //phpinfo.php, show all PHP info <?php phpinfo(); ?> If you see the module loaded, then the issue is somewhere else. If you can't see the SQLite module, then you should check your php.ini ...


0

I can think of 2 different options: try the solutions posted in this topic compile from source, although I wouldn't recommend this because you'll have to recompile after every security update Btw, have you tried the site under PHP 5.5? Because if everything works well I can't think of any logical reason to downgrade.


0

To uninstall something you installed from source, you would use cd back into the directory you built it from and then run sudo make uninstall but I don't think this will work with PHP since it doesn't have an uninstall. So what you can do is to make a package from the existing compiled version you have and then you could install the new created package ...



Top 50 recent answers are included