Tag Info

Hot answers tagged

3

zsh, unlike bash, has a different glob/wildcard/expansion system, so it works differently so php*might not work as you expect. So are instead of sudo apt-get remove php*, you could: Quote it: sudo apt-get remove "php*" Bash it: bash -c "sudo apt-get remove php*" N.B. Whilst also being a bad idea (as previously pointed out), sudo apt-get remove php * ...


3

aptitude is an alternative to apt-get which makes it easy to match multiple package names using regular-expression-like patterns. For example, to list all installed packages whose package names contain the term "php": aptitude search ~iphp Edit: when using zsh shell, quote the argument so it doesn't break on the tilde: sudo aptitude search "~iphp" ...


2

You can look up what a failed status of PHP mail() means here: http://php.net/manual/en/function.mail.php Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise. The false return value indicates the mail was not accepted for delivery by your MTA. On a local Linux server, if you've done no other configuration changes, PHP ...


1

The php command line is located in php5-cli package (apt-cache policy php5-cli), but since 5.3.28 has never been a part of Ubuntu, so I suspect that you have a local (compiled from sources) installation of php CLI probably in /usr/local.


1

to see all ./configure options available run: configure --help to build an MySQL extension first install libmysqlclient-dev package and then add these options to ./configure invocation: --with-mysql=/usr --with-pdo-mysql=/usr That should be it. For shared .so extension do: --with-mysql=shared,/usr --with-pdo-mysql=shared,/usr For mysqlnd (however I ...


1

Open the terminal and type: dpkg --get-selections *php* This will list all the php packages that are currently installed on your system through apt-get.


1

In Ubuntu 14.04 the default DocumentRoot is /var/www/html/ instead of /var/www/. You can change this in /etc/apache2/sites-enabled/000-default.conf (but is usually better to keep it it like this).


1

I know this is a very old post but I thought this information I found on another StackExchange site might be of assistance. When using an alias in your apache configuration you also need to use RewriteBase in your .htaccess file that's the same as the alias. Alias /antoniocs/project "/home/antoniocs/www/project" <Directory ...


1

In order to fix broken alternatives link for awk try: sudo update-alternatives --set awk /usr/bin/mawk Verify if it is fix with command: awk '{print $0}' /etc/passwd Redo apt command: apt-get dist-upgrade If this doen't work and directory /etc/alternatives doesn't exists, try: sudo mkdir /etc/alternatives sudo ...


1

You can install PEAR package easily with sudo apt-get install debpear


1

In your system are installed two different version of libcurl: libcurl3.so that is a symbolic link to libcurl4.so that point to libcurl.so.4.3.0 lrwxrwxrwx 1 root root 12 Apr 1 13:43 /usr/lib/x86_64-linux-gnu/libcurl.so.3 -> libcurl.so.4 lrwxrwxrwx 1 root root 16 Apr 1 13:43 /usr/lib/x86_64-linux-gnu/libcurl.so.4 -> libcurl.so.4.3.0 ...


1

Access your website from outside your computer If I understand correctly, you have a virtual machine containing an Apache server hosting the default "It works!" page. In order for this to be accessible from the Internet, it must first be accessible from outside the host machine (the host machine is the one running the Virtualbox software). To do this, open ...


1

You need to place the err403.php in a directory where the user (or in your case the IP) has access to. Otherwise apache can't deliver that page and defaults back tho the standard 403 error page. Also make sure (as you use ubuntu 14.04 with apache 2.4) that you change your access config using "require". The order,allow,denied directives are deprecated. ...


1

mbstring is built in libapache2-mod-php5 package, so you can use this command for installing : sudo apt-get install libapache2-mod-php5 As described in package details : dba dom ereg exif fileinfo filter ftp gettext hash iconv json libxml mbstring mhash openssl pcre Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg ...


1

You should just use the PHP mail function, which your script already tries to do. Look up the syntax for the mail function and you will see that there is an additional parameter $headers. The script actually constructs these headers but does not use them. The headers are necessary to tell your email client that what follows is HTML and not plain text. The ...


1

php5enmod was introduced in Debian in version 5.4.0~rc6-2 of the package php5 (see the changelog, Ctrl+F is your friend). Since Ubuntu packages are imported from Debian, it is only available in PHP 5.4+ packages in Ubuntu as well.


1

The problem is that you have two php executable: one located in /usr/bin and another in /opt/lampp/bin. When you type php in your terminal, bash search it in $PATH directory list, and it found php in /usr/bin, so /usr/bin/php is executed. If you want to exec /opt/lampp/bin/php, open you .bashrc and at the end add this line: PATH=/opt/lampp/bin:$PATH ...



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