Tag Info

New answers tagged

0

I think that Yoy will be to delete the twice lines of Listen. However if there isn't a twive in your configuration : .conf: Please delete the line which listen the port : 443 : in the file which is /etc/apache2/port.conf. And save your new configuration and restart your service.


0

Please use this as your .htaccess file: <IfModule mod_rewrite.c> Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?$1 [L,QSA] RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s(.*)/index\.php ...


0

As you maybe know, you can pin packages to their current versions. That's done by giving the package the status "hold". For example, if you have installed version 1.1 of some package and set this package to status "hold", it won't get updated, even when version 1.2 or later become available. In your case it seems there are one or more packages set to ...


0

If you have phpMyAdmin up and running, you probably have installed apache2. The process of mapping an http address to a directory in your localmachine is called a virtual host. Read more on this here. Or google for how to create a virtual host and a domain for my local machine. I can guide you if you need more assistance on this matter.


0

Symlink way If you want you can simply make an symlink to it, like i did on my Raspberry Pi, but I'm not sure if it's safe when your website is public. It works in home network. Let's say you want to access /home/j (because "j" is my username) from your /var/www. To do that you'll need command ln -s /home/j jhome. Make sure you are in /var/www while ...


1

Here you're the script: #!/bin/bash day="$(date '+%d')" # day=DD moth="$(date '+%m')" # month=MM (i.e. 04) If do you want to use it by name (i.e. April), use B ('+%B'), to use it's abbreviation (i.e. Apr), use b ('+%b). year="$(date '+%Y')" # year=YYYY, if do you want YY, then use lowercase y ('+%y') ...


0

You can force it to be downloaded by making Apache report it's content type to be application/octet-stream, instead of the usual text/html. This is not something I would recommend doing to .txt files. In your .htaccess (or other Apache configuration files) add: AddType application/octect-stream .txt Another approach is to use ForceType within a Files or ...


0

if you need to push file that is simple text down to client in the browser you'll have to use something like php and create some for ex. index.php file in root: /var/www/html directory and add something like this: <?php $file = 'test.txt'; if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: ...


1

A text file can be read by apache and will be read and displayed by it, you can still save the file with the browser, though. Try again, with another ending like text.zip. Doesn't even need to be a real zip, changing the ending will change the behaviour. On a personal note: Make sure to secure your server with .htaccess and a user/password combination if ...


0

Before you start off, use Ubuntu's x86(32-bit image), as this will allow you to use both 32-bit and 64-bit machines. Yes, a 32-bit of the server is also available, just take look at the Alternative Downloads page. Also, I use Lili because its easy and I use Windows for setting up Ubuntu. You can use any other application, although for Method 2, you need an ...


0

In my case: The html subfolder at /var/www/ already existed but still I was getting the error: AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf I had already decided to host my websites in my user root e.g. /home/{user}/sites/ instead of the default /var/www/html I am using Apache 2.4.7 (You can check your version with apache2 -v) How I ...


0

you faced with 1 warning and 1 error: 1) The APR based Apache Tomcat Native library - is a library, it's optional and all should working without it but with less perfomance on production system. This is a warning 2) Apr 17, 2015 2:13:58 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart - this is a root cause of your issue. ...


0

php5-fpm should actually be starting as root and dropping its privileges once it's set up and running. This is fairly common amongst webservers. This should allow it to write to a root-owned space and chown its own files. I believe that is exactly how my installation works. The question then becomes: why isn't yours? Have you altered the Upstart script ...


-1

Copy all the html files under /var/www/html. Now open the terminal and change the permission with sudo chmod -R 777 /var/www, now you wont get such errors when you run in firefox.


0

By default apache is setup for individual users to have their own URL, all you have to do is enable it: sudo a2enmod userdir Then say user test01 access would be via itaportalen.dk/~test01 and their directory would be /home/test01/public_html. However, I gather you don't want to do it that way. For example, say the user names are test01, test02, test03, ...


0

You need to stop the already installed MySQL server. stop lampp stop the MySQL server by one of these commands: sudo service mysql stop sudo /etc/init.d/mysql stop start lampp again


1

A very simple and straight foward way that worked for me is as follows: 1. First, stop apache2 $ sudo service apache2 stop 2. Uninstall Apache2 and its dependent packages $ sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common 3. Also use autoremove option to get rid of other dependencies $ sudo apt-get autoremove 4. Check whether ...


2

All you need to do is to add redirect line to /etc/apache2/sites-available/domainname.vhost file for example: <VirtualHost *:80> ServerName example.com Redirect permanent / http://www.example.com/ </VirtualHost>


0

Another common cause is that php short tags <? are not enabled by the default php.ini configuration, so after an upgrade or reinstall, that setting may be turned off and php code may depend on it. Try replacing <? with <?php. (Credit)


0

Your file works for me if I add this at the beginning RewriteEngine on But i guess you have enabled mod_rewrite by default. Since you use permanent 301 header it may be a browser cache issue from an earlier versions of rules..? Did you tried to reset browser cache? Or tried another browser that you haven't used before? You can also try adding [OR] at ...


0

I did manage to fix it. From a basic install of phpmyadmin these are the steps to allow remote connection. If anyone ever needs it Code out /etc/phpmyadmin/confi.inc.php $cfg['Servers'][$i]['controluser'] = $dbuser; $cfg['Servers'][$i]['controlpass'] = $dbpass; Edit /etc/phpmyadmin/apache.conf 10.0.0.157 is the machine you want to access the myphpadmin ...


0

To answer my own question which Jos partly answered. You should not comment out the bind address line (in /etc/my.cnf). Instead, you should point it to the server's IP address, i.e. 10.0.0.40, and restart MySQL. That combined with GRANT ALL PRIVILEGES ON *.* TO ‘https’@’localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION; instead of GRANT ALL PRIVILEGES ...


0

if you execute netstat -an | grep 3306 do you see an entry with LISTEN for port 3306?


0

Is the service started? If not (or you're not sure), run: sudo service mysql start


0

When I have had the similar issues with Phpmyadmin, I followed this awesome guide and fixed everything. Follow each step there, you might have missed something.


0

Just to add to the other answers here, the way I have configured such behaviour is with symlinks... Seems to work fine. It is very easy to do, and does not require any configuration files. sudo ln -s ~/path/to/yoursite/ /var/www/html/yoursite The last portion of the above may be different for you. The above is what I use in Linux Mint 17. The ...


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

The manual for sshfs mentions some caches, you can change the time-outs on them. Try -o cache=no. If that works, then consider setting the time-out to some low number.


0

I tried installing tomcat6-admin using "sudo apt-get install tomcat6-admin" on ubuntu, I was told the package is already up to date. I decided to copy /usr/share/tomcat6-admin/manager to to tomcat6 webapps directory. It works now. I am not sure why the installation wouldn't copy the manager app to the webapps directory.


1

After your last edit with nslookup it seems that for some reason, the DNS servers that your ISP is pointing to your router are out of date or probably your ISP running a transparent proxy and they are caching the results of the no-ip checker. With the second command, which forces nslookup to use google DNS everything looks ok. Most proxies that ISPs run are ...


-1

Options FollowSymLinks MultiViews Need char '+' : +FollowSymLinks +Multiviews Order allow,deny Allow from all Now = Require all granted


0

It is the android device used for usb tethering which shows up as a server on the network. The page is shown because apache is installed on the computer, and it thinks that android, located at 127.0.55.55 is a website. As the so called website(the phone) does not have any webpage, apache shows the default page instead. As Apache is not needed on a desktop, ...


2

First are you sure your user is added to www-data group? The proper way to add your user to this group is: sudo adduser yourusername www-data Then do: sudo chown yourusername:www-data -R /var/www After that, you should change permissions to 755, it is not recommend changing permissions to 777 for security reasons sudo chmod 0755 -R /var/www sudo ...


0

Maybe you need change owner of /var/www/html/mm? sudo chown -R www-data:www-data /var/www/html/mm


0

I found a solution by adding this to htaccess: <IfModule mod_mime.c> AddType text/xml .xml .php </IfModule> Not sure why it even works but it does


0

Which version is your wordpress installation? If it is >= 3.9 read this: https://make.wordpress.org/core/2014/04/07/mysql-in-wordpress-3-9/ In WordPress 3.9, we added an extra layer to WPDB, causing it to switch to using the mysqli PHP library, when using PHP 5.5 or higher. For plugin developers, this means that you absolutely shouldn’t be using PHP’s ...


0

Restricting the user to those services isn't the sort of thing you do at the kernel level. If you want to prevent the user from running programs besides PHP &c, the easiest way is don't have those programs on your system.


0

You have: Alias /dropbox " /home/user/Dropbox/Development/www/" And: <Directory " /home/user/Dropbox/Development/www/"> This raises the question: why do you have a leading space inside the quotes? An absolute path with a leading space before / is generally not valid. For example: $ ls -ld "/home" " /home" ls: cannot access /home: No such file ...


0

in your attempt: sudo chgrp apache /var/www/html/itdb/data/itdb.db you're setting group "apache" as owner of this resource /var/www/html/itdb/data/itdb.db and script is complaining: var/www/html/itdb is not writeable by apache and even giving you solution: chown www-data /var/www/html/itdb/data/files/; chmod u+w /var/www/html/itdb/data/files/ ...


0

Turns out the problem was permissions. When you're storing the web site in a directory outside of /var/www and connected by symlink, then the source directory, and its parent directory have to have permissions of 755. For some unknown reason, the two misbehaving sites had different permissions, and running chmod -R 755 on the web site directory, and its ...


0

I had the same problem but you can't just do one service apache2 stop command - you have to do one PER process. Then, you MAY want to add a sudo in front just in case you're logged into some odd account that needs it so if you see 9 processes running, do 9 sudo service apache2 stop Worked great for me.


1

There can be two possible solutions Uninstall and reinstall apache server Find the specific file and paste it in the required directory. You can find one here


-2

sudo chmod o+x -R /home sudo chmod 777 -R /home This works for me.


1

Try fallowing Enabling Verbose Logs sudo nano /etc/apache2/apache2.conf Locate the LogLevel variable, and update it from the default warn to info or debug. debug will produce the greatest amount of output. # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, ...


0

To be able to port forward from Internet to your web server, you can't have a NAT behind a NAT. To figure that out, your routers external address must be the same as seen when you surf on internet. So log into your router and look up what IPv4 address you have on your external interface. You might get help from this site, it has worked for me before: ...


0

do this: dpkg -l | grep apache2 with this you can read your modules installed. apache2 by default install the prefork mpm. this is needed because several extensions (mod_php for owncloud) are not thread safe and will go better with this module. Yo can try the worker mpm that is based in threads, but for php programs you need to reconfigure your server ...


1

If you want to get the same file back you may have to use some sort of recovery software. If not, this will do the trick: sudo apt-get remove --purge apache2 apache2-utils sudo apt-get install --reinstall apache2 apache2-utils


0

Those are instances where your webpage is open some place. I wouldn't worry about it. Every time someone (or something) opens a page on your webserver, that process will start. The process wont tell you who (outside of www-data) is accessing your page. But, your Apache server logs will. when the pages get closed, those processes will clear. you can try this ...


1

You can not install Eclipse over the repositories and Software Center or apt-get. You will have to visit https://eclipse.org/downloads/packages/eclipse-php-developers/lunasr2 and download the right version (Linux 32/64Bit). Then extract the tar.gz-archive (about 100-150MB) to your /opt directory. You need root privileges to access that folder, so run ...


0

PHP is integrated into apache upon installation and so, there is no need to worry. You can put php code into .php files into the web server. Foe example, instead of using index.html, you should use index.php so you can put php code into it. Here's a sample piece of code that can be used and easily understood - <!DOCTYPE html> <html> ...



Top 50 recent answers are included