Tag Info

New answers tagged

0

The interest of application softwares such as Bluefish, Filezilla, WinCp (on Windows) ... is to deal with a remote server. In your case, it is better to run your above command (sudo cp source destination). But in both cases, using a software or a terminal command line, your files privileges depend only on how you chmod them (they are not inherent to the ...


0

Yes, you can upload your files using SFTP (FTP over SSH). You can log in with the same credentials as you're using for SSH. But I wouldn't enable remote logins for root on your server. The root user can do anything on your server so if you get hacked while remote root logins are enabled anything can happen. I suggest you just set a password for the ...


0

I found the solved it was change my "run to software" NOT open wine appication, firefox, google, reddit. I checked my Apache is running. about time!!!


1

I had a similar issue. I looked at the 000-default virtual host. It had the DocumentRoot as /var/www/html instead of /var/www. Once I change that, and restarted Apache, all was well with the world again.


1

run xampp-linux-x64-1.8.3-4-installer.run as root user using sudo cd ~/Desktop sudo ./xampp-linux-x64-1.8.3-4-installer.run Enter your password and hit Enter. You should see the installer.


0

This is a reported bug. I had the same issue, found the answer here on ubuntuforums, so all credits goes to SeijiSensei:. 1) The mcrypt.ini file in /etc/php5/conf.d needs to be copied or symlinked to /etc/php5/mods-available: cd /etc/php5/mods-available sudo ln -s ../conf.d/mcrypt.so 2) Activate the module with sudo php5enmod mcrypt. 3) Restart your web ...


0

You must change default port in virtual hosts file <VirtualHost *:80> ServerAdmin webmaster@example.com ServerName example.com ServerAlias www.example.com [...] You need to change that to <VirtualHost *:8080> or <VirtualHost *:8000> or <VirtualHost *:8072> or <VirtualHost *:*>. Restart apache.


2

Try this sudo cp /etc/apache2/conf.d/phppgadmin /etc/apache2/conf-enabled/phppgadmin.conf sudo /etc/init.d/apache2 restart


0

Looking closely at your problem, you are just running apache2. To start apache in Ubuntu, run the following command: sudo apache2ctl start Apache configuration are split into multiple files, one of those files are environment variables. When you are running just apache2, these variables are not set. The apache2ctl script will load the variables (and do ...


2

I had this problem : The cause is in the file /etc/apache2/sites-available/000-default.conf where the root have changed: before upgrade = /var/www after upgrade = /var/www/html So edit to modify this file sudo gedit /etc/apache2/sites-available/000-default.conf


0

you can also use XAMPP for apache server and php. you can download XAMPP from this site https://www.apachefriends.org/index.html and after downloading right click on the downloaded file and then click on the properties and then click on the tab called permissions then tick on Allow executing file as a program" then open terminal navigate to the path where ...


1

Try this sudo apt-get install tasksel After installation invoke taskel from terminal sudo tasksel install lamp-server follow this link http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat/


0

Try this on your terminal. It's a great lamp stack setup wizard provided by tasksel. sudo apt-get install taskel //then follow on screen instructions to install lamp stack


0

/etc/apache2/sites-available/000-default.conf is the configuration file for the default site, only. You can add as many sites as you want, with their config files located in this same directory. The apache global configuration file you're looking for is located in: /etc/apache2/apache2.conf As @drc mentioned, a lot of things changed in recent versions of ...


0

Typing: sudo apt-get install apache2 php5 libapache2-mod-php5 will install everything you need and will start the apache server with support for PHP. To verify that the php module is loaded, type: a2query -m php5 if not enabled, then load with: sudo a2enmod php5 and restart apache: sudo sevice apache2 restart`


0

When you remove and re-install Apache it does not remove or over write config files. see How can I restore configuration files? Try: sudo purge apache2 sudo install apache2 If that fails, update your question with error messages


2

Since Apache 2.4, each virtual host file should have the .conf extension. You can rename each virtual host file to include the .conf extension: mv /etc/apache2/sites-available/example.com /etc/apache2/sites-available/example.com.conf Use the a2ensite command to add the virtual host: a2ensite example.com.conf And reload Apache: service apache2 reload ...


0

Apache2 needs an index file for / or it will return a 403 error. Create /home/inferusvv/www/index.html to fix this. You can also try to make Apache2 the owner of the folder using chown -R www-data:www-data /home/inferusvv/www.


0

It can mean three things check all and make sure none of them is true your problem will be gone xsp was already running and you tried to run it again. The directory is root directory of another server like apache etc. xsp can not find the required assemblies in the mono path , which means during compiling the mono prefix you gave was wrong. Just a ...


0

I forgot to add host in /etc/hosts: 127.0.0.1 localhost 127.0.0.1 bow.loc I think apache do it automatically


2

While the other answers work, I disagree with the solution. Instead of modifying /etc/apache2/sites-available/000-default.conf back to its old version, I prefer keeping default package files unmodified. A reason for this is that so it wouldn't break during the next upgrade again which might reset the 000-default.conf file. Besides such modifications are ...


0

You should edit the 000-default.conf file To edit 000-default.conf you need to run following command sudo getit /etc/apache2/site-available/000-default.conf Here you go By default DocumentRoot shows below DocumentRoot /var/www/html You need to change the DocumentRoot to DocumentRoot /var/www/ After this you must restart your Apache server by ...


0

No your keys should ideally have been installed in /etc/ssl/private but is depended on the command you ran to create them and or the directory you were in at the time. Apache would have been consigured to reference them in the relevant location. apt-get purge will not remove these keys. To be safe, back them up and then do an apt-get purge apache2


2

I think that there is an error in following line. org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [SELECT * FROM PLACE order by placeName]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'inindia.PLACE' doesn't exist You created table in inindia as named place, But you call it as ...


0

The new default config of php5 in 14.04 seems to disable short_open_tag option (this directive determines whether or not PHP will recognize code between <? and ?> tags as PHP source which should be processed as such). So go to /etc/php5/apache2/php.ini and search for the option short_open_tag and set it to On: short_open_tag = On Save the file and ...


0

It's not clear what is not working, but you can start troubleshooting as following: 1) check that the packages are installed with the commands: dpkg -l apache2 dpkg -l php5 dpkg -l libapache2-mod-php5 Expected: you should see those packages installed (line starting with letters "ii"). 2) check if the service is up and running: service apache2 restart ...


1

The same exactly happened to me. After looking into the /var/www directory, it turns out that now all the files have to be inside an html folder. So the new path for your html files is: /var/www/html/ Try to put some test.html inside first, just in case.


1

IMO you are best off using one of two options. First would be some sort of virtualization, for example lxc , openvz, or KVM. This option gives the most separation. Your second, and perhaps better option, is to use a feature called "home directories". sudo a2enmod userdir Restart apache2 daemon with following command sudo service apache2 restart Ceate ...


0

Apache uses the following process to find the best-matching virtual host: Find a list of virtual hosts that match the IP and port, use wildcard if none are found. In your case, a wildcard is set in the default virtual host. Figure out if we're going to use IP-based or Name-based virtual hosts. If only one IP and port option matches, IP-based is used and ...


0

Open up your terminal or console and type the following: mysql -u username -h x.xx.xx.x -p then enter your password This gives you the assurance that the connection from your host it works, and if not, return a useful error output.


0

try sudo apt-get install php5 apache2 doesn't come with php preinstalled. And then restart apache2 sudo service apache2 restart


0

How are you connecting to the database, if it is with php try mysql_connect("localhost", username, password); with localhost as your host.


9

The apache2 version that was published when the Ubuntu 14.04 release was made is 2.4.7 and starting with this version it seems that, for security reasons, the new root directory for the server is: /var/www/html So, from now, here you must to place the files for your (local) website. And like this you should not have this problem again with the future ...


0

Is your index.php file located in /var/www/ ?? If not, how about relocate "DocumentRoot" option in /etc/apache2/site-enabled/000-default.


0

You could probably use knockd to do it if you really wanted to. I also have quite a few daemons installed for various uses, and I tend to just disable them starting on bootup and manually start them when I need them. The command to do so would be: sudo update-rc.d $serviceName disable and then the obvious sudo service $serviceName start when you ...


0

In new version of apache2 you just following command like this: sudo nano /etc/apache2/apache2.conf Add the following new line end of file: ServerName localhost Then restart apache2: sudo nano service apache restart It's done.


0

I'm using Kali (Backtrack) which is based on Debian, but still similar to ubuntu. I first upgraded openssl (apt-get install openssl), but after stopping & starting my apache2 web server, the vulnerability was still there (testing with ssltest.py by Jared Stafford....readily available on the web). Found instructions that it is also necessary to ...


0

If you know to program, you can secure a web page with whatever you like. Whether it makes sense it is up to you. Basically, prompt the user on first access to supply whatever you want: a password, a file with a public key, a photo of his mother, a valid credit card number, and so on, and verify it using code afterwards.


0

Creating the virtual host is sites-available is not enough. You also need to enable it. That can be done using the following command: sudo a2ensite drupaltest Considering that the file in sites-available is called drupaltest Next you need to restart, or at least reload, apache. sudo apache2ctl restart


2

It would appear that your script is not getting passed to the php interpreter, and is simply outputting the text of the file. This is a common error and is almost always due: Using a file ending other than php (e.x. htm or html) Not using php tag <?php ... ?> or as Nathan mentioned using improper tags. You may see other servers that use file ...


1

Installing a package via source is not recommended in Ubuntu. After installing it, you need to run the install triggers that apt-get install normally runs after installing the package. The install triggers are what install and configure the service that's missing. Why can you not upgrade past 10.10 tho, as Jobin stated 10.10 is EOL or End Of Life?


3

It looks like the code is using short tags <? ?> instead of the normal <?php ?>. You need to enable short tags in php.ini. Find this in php.ini: short_open_tag Set it to 1 and restart Apache.


3

By looking at your last updated edit, I see the file is not saved as index.php. You see, php scripts will not work when you save it on an .htm or .html extension. In order for the php file to take effect, you will need rename index.htm to index.php. EDIT As per my last comment with a testing php script link, it seems there's no problem with your php pack ...


1

By the look of the issue, it seems you've not installed PHP as it denies to view page, and downloads instead. As I've commented, Apache doesn't come packed with PHP as it is a separate package. Installing php package should simply fix your issue.


0

You must enable listen on port 8081 for apache. sudo nano /etc/apache2/ports.conf add Listen 8081 Restart apache


0

Before using the internet to do banking just run: sudo apt-get update sudo apt-get install libcurl3 openssl python-openssl ssl-cert firefox firefox-globalmenu If you are really strapped for memory, this can be done first thing after the live system boots to maximize efficiency. Firefox should probably be updated anyway if you are banking and what-not ...


0

You could try another route: Rather than installing Zend Framework system wide, you could use composer and pull ZF as your project dependency. Usually it is much cleaner way to install ZF and similar packages. Once you have composer up and running, all you need is this in your composer.json file: { "require": { "zendframework/zendframework1": ...


0

For me the problem was none of the above but something much simpler. I had two Apache2 virtual hosts competing for the same domain name in the ServerAlias line. In one virtual host file, I had ServerAlias mysubhost.myhost.me but in the other virtual host file I had a wildcard entry: ServerAlias *.myhost.me This caused a conflict in Apache 2. Removing ...


2

I'll have to contradict both the other answers. If you are booting a livecd for Internet browsing and only browsing, your computer is safe from being attacked. The Heartbleed bug can be used to attack clients who connect to a hostile server just like hostile clients can use it to attack a server. However, the only client you're using is (presumably) ...


5

Short answer: No, you're not. The heartbleed bug has been exhaustively analyzed elsewhere but the point is that it affects servers. You don't care about it with respect to your computer unless you run a server on it. This does not mean that you're safe however. The danger is that your bank is affected by it, you should certainly change your passwords etc. ...



Top 50 recent answers are included