Tag Info

New answers tagged

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.


1

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 the new root directory for the server is: /var/www/html If you want to change this directory with another one, you have to modify (as root) the following line from /etc/apache2/sites-available/000-default.conf file (sudo nano ...


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


1

It would appear that your script is not getting passed to the php interpreter, and is simply outputing the test 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?


2

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


0

No, if you are running any version of OpenSSL from 1.0.1 through 1.0.1f. Ubuntu 12.04.4 ships with OpenSSL 1.0.1, so yes, you are subject to the bug, NO you are not safe. If you can update to OpenSSL 1.0.1g you are safe, but as of right now, 12.04.4 ships with a susceptible version, 1.0.1. There is a list, and a better explanation on the official ...


1

When you install tomcat7, you have nothing to type to start it. It starts up automatically. Notice in install log: $ sudo apt-get install tomcat7 ... Creating config file /etc/logrotate.d/tomcat7 with new version * Starting Tomcat servlet engine tomcat7 [ OK ] Setting up authbind (2.1.1) ... Processing triggers for ...


1

I think you want to change apache's DocumentRoot configuration. 1.check where is configuration. Generally, apache2 configuration file is located in /etc/apache2/ folder. vi /etc/apache2/apache2.conf in that file, you can find out the location of "DocumentRoot" config Include sites-enabled/ that indicates your configration file is in ...


0

It appears that my files were not accessible after copying them over from a Windows system to Ubuntu. Having this said, I had to modify the permissions of my project directory to 766. I did this with the following command: chmod -R 766 /My/Directory/Path/ After this my files were showing up normally in the web browser.


1

Add to VirtualHost: <VirtualHost *:80> AccessFileName .htaccess (.htaccess is the default filename) ... <Directory /var/www/> Options Indexes FollowSymLinks Includes AllowOverride All Order allow,deny Allow from all </Directory> ... </VirtualHost> then restart apache: service apache2 restart ...


0

For others looking (googling) for this issue check that if you run: chkconfig |grep httpd you get httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off else do: chkconfig httpd on (sorry on ubuntu chkconfig equivalent is update-rc.d see Chkconfig alternative for Ubuntu Server?)


1

No, ModSSL is an interface to OpenSSL, so it will not need any updates itself.


0

I have found the issue and resolved it. I had followed the guide linked above which suggested this file needed to be edited: /etc/apache2/sites-enabled/default-ssl.conf, Actually it didn't exist - I though I had deleted it so I recreated it. What I should have done was edited this file /etc/apache2/sites-available/default-ssl.conf Thats sorted it out


0

Create a php file with <?php phpinfo(); ?> and open it with your browser. Look for Loaded Configuration File (this shows the actual conf. file in use) and edit upload_max_filesize and set post_max_size to the same value (or make it 0 to disable limit) in that file in root mode. Execute: sudo service apache2 restart


-1

Virtual Hosting is the best way to host more than one site in the same machine.


1

The localrc of you devstack should have Sahara enabled like that: ENABLED_SERVICES+=sahara to restart devstack do ./unstack.sh and then ./stack.sh again If successful, you should see a new 'Sahara' tab in Horizon after log in.


0

You need to have permission to change ownership. Add sudo to the commands you are executing: sudo cd /var/www/prestashop sudo chown -R www-data * sudo chgrp -R www-data * Or just do it all at once, using one command instead of three: sudo chown -R www-data:www-data /var/www/prestashop


0

Try completely purging apache2, then try to re-install again. sudo apt-get remove apache2* You can find the steps here...


2

You can. Apache server represent himself with ip address from nic card. If you configure apache server to listen on port 80. Also to do port fw you must have: fix public ip address on wan side of router or ddns record for non fix public address fix local address on server aka 192.168.x.x do port fw on router from wan to lan for traffic on port 80 check ...


0

I solved this by following this guide. A really neat solution which enables you to create a folder in your specified "Sites"-folder and then access it without having to add a sites-available for every new site. THE guide -> http://css.dzone.com/articles/drop-folder-directory-and-have


0

In addition to Oli above If you don't want to mess up your motherboard and disks. You can buy solid tower case with build in physical lock and then glue watermark to the case so you will see if the case was opened (watermark will be torn).


0

I've covered something similar here before but it's never enough. It only takes somebody with physical access a small amount of knowhow expertise to get root and get access to your files. You can take a few steps to make that as hard as possible though: Why does the system need to auto-login at all? The default settings for the lamp-server task launch the ...


0

sudo mv /etc/apache2/sites-available/000-myserver.conf /etc/apache2/sites-available/myserver.conf sudo a2ensite myserver.conf Or sudo a2ensite 000-myserver Since the config file you created is called 000-myserver.conf, then the site you want to enable is 000-myserver not just myserver. As a personal preference, I would suggest renaming it ...


0

How force that all connections to my Apache use TLSv1.1 or TLSv1.2? You might not be able to enable them. The Ubuntu Security team disables TLS 1.2. I believe they disabled TLS 1.1 in the past. They do it for interoperability reasons. I believe you have three choices. First, do nothing and use Ubuntu 12's version of OpenSSL. I believe TLS 1.1 is now ...


1

from a commandline; python FILENAME.py then just enter. Then you should get an installation screen.


1

You have to use sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql instead of install mysql-server libapache2-mod-auth-mysql php5-mysql install is a different command that doesn't install software packages.


0

I got this error message with the following configuration: # cat /etc/hosts 127.0.0.1 localhost 127.0.0.1 foo ... # cat /etc/apache2/sites-enabled/foo <VirtualHost foo:80> ... # cat /etc/apache2/ports.conf ... NameVirtualHost *:80 Listen localhost:80 ... Changing ports.conf to the following solved the problem: NameVirtualHost *:80 Listen ...


0

Replace <Directory "home/moore/Workspace"> with <Directory "/home/moore/Workspace">


0

I fixed it at last but it was not that easy. I had to purge and reinstall; apache2, php5, phpmyadmin, but I didn't touch mysql because I was afraid of losing my databases. Phpmyadmin gave me 404 error, I had to change folder permissions like sudo chown -R $USER:www-data /var/www sudo chmod -R 775 /var/www/ These links are helpful : phpmyadmin throws a ...


0

The line webserver localhost is invalid. You have to remove it. Use ServerName if you want to set the FQDN: ServerName localhost


1

I solved it and now Vdebug is working. Enable xdebug in PHP Edit your php.ini file and add the following under the "Module Settings" section: ;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; zend_extension=/path/to/my/xdebug.so [debug] ; Remote settings xdebug.remote_autostart=off xdebug.remote_enable=on xdebug.remote_handler=dbgp ...


-1

i installed apache 2 with php 5 !sudo apt-get install php5... .but at first remove apache 2


1

Your DocumentRoot should refer to the directory within which all your files are located, not to any particular file. What's happening here is that you've specified /home/user/Documents/Git/site/index.html as your document root, so Apache is pre-pending this string to any path requested from it. So for example if you request http://site.com/, Apache will ...


0

Problem: The /etc/apache2/apache2.conf had been reset and therefore the listed Directory was reset to /var/www which mismatched the directory listed in the /etc/apache2/sites-available/default.conf file which had not been reset. Solution: To access phpmyadmin add the following line to the end of apache2.conf (as detailed in the doc) Include ...


0

Im not 100% sure what you are asking but if im reading the question right. Do you want to directly access your Website from anywhere in your Home Network by using the machines IP address?. If this is case. follow the procedure below, edit 000-default.conf add your website folder name after DocumentRoot /var/www/. Save and exit the file. Restart Apache ...



Top 50 recent answers are included