Tag Info

New answers tagged

2

I found out there is an easy way of doing that. You can follow this blog post which is providing a step by step guide to do it : Install Apache Tomcat on Ubuntu


0

I faced this exact same problem through the day and am glad I solved it in the below manner. Although, the above reply is marked as an answer, it is clear from the comments to that answer that it doesn't completely answer the question. The correct file to enable is in /etc/php5/cli/conf.d Then enter the following in there zend_extension=opcache.so ...


1

first, you should make sure if your apache server listens on 0.0.0.0 as its bind address. Here's a simple command to know what IP and port is your server is listening to. netstat -nap | grep apache | more and look for listening address of your apache server. Apache's official documentation on bind address after that, you must know your IP address and ...


0

The easiest way is to add your user to the group that owns /var/www/, usually www-data Check the group of /var/www ls -la /var/ | grep www where the output will be something like drwxrwxr-x 3 www-data www-data 4096 ago 1 16:10 www on my output the second www-data position indicates the group is actually www-data so now you have to add yourself to ...


1

reset mysql's root password Stop MySQL The first thing to do is stop MySQL. If you are using Ubuntu or Debian the command is as follows: sudo /etc/init.d/mysql stop For CentOS, Fedora, and RHEL the command is: sudo /etc/init.d/mysqld stop Safe mode Next we need to start MySQL in safe mode - that is to say, we will start MySQL but skip the user ...


0

If you are not allowed access to a file, precede the command you are typing with sudo, this should prompt you for your password. The sudo command basically means "superuser do". So you have privileges of the root user when you use it. Example: sudo vi index.html. Hope that sorts that part of the problem out for you.


0

Swap the order of those Alias directives so the most specific one comes first: Alias /blog/wp-content /var/lib/wordpress/wp-content Alias /blog /usr/share/wordpress From the docs: [...] the Aliases and Redirects are processed in the order they appear in the configuration files, with the first match taking precedence. For this reason, when two ...


0

A few notes : your domain's configured dns servers must point to dyndns (done) your router must forward port 80 to your local machine (done) your machine must have port 80 open if all this is setup correctly, if you do http://externalIp you should get your default apache page (same as http://localhost) you must set a virtualhost for ...


0

If you definitely want changes to be effective for all applications you're running now and and at all times you can imagine, edit the existing files in /etc/apache2/mods-available/, otherwise modularize as early as possible by separating into different files. The latter case should almost always be the way to go as you'll figure out much later that you can ...


8

Linux in general, so Ubuntu too, has directories where you can put scripts that start/stop/restart/reload a service (or whatever action this service can provide): /etc/init.d/ (=old but still used very often). /etc/init.d is where all the traditional sysvinit scripts and the backward compatible scripts for upstart live. The backward compatible scripts ...


0

Like many server applications, you can't bind to a port already bound to by another application (in this case, port 80, for http). The cause of your error is that Apache can't bind to port 80 because something else is already listening there. Run sudo netstat -tulpn | grep :80 and look for the name of the process that's listening on port 80. Then, either ...


0

Like many server applications, you can't bind to a port already bound to by another application. The cause of your error is that Apache can't bind to port 80 because something else is already listening there. Run sudo netstat -tulpn | grep :80 and look for the name of the process that's listening on port 80. Then, either reconfigure or remove that ...


2

in some case after change, PermitRootLogin yes must check this config : DenyUsers root AllowUsers saeid and to enable login must change to : #DenyUsers root AllowUsers root OtherUser


1

Did you check the apache2 error log? There is a typo in your php code. You are missing the &. Correct is: // Report all errors except E_NOTICE error_reporting(E_ALL & ~E_NOTICE); I highly suggest for development systems to set display_errors = On display_startup_errors = On error_reporting = E_ALL in your php.ini as I mentioned in the ...


0

You need three redirects to do what you want: http://example.com to https://www.example.com http://www.example.com to https://www.example.com https://example.com to https://www.example.com The first two are from port 80 plain HTTP so you have a VirtualHost for them. You can make a VirtualHost section apply to more than one hostname (www.example.com and ...


0

This worked for me, you can test it on my domain if you like. <VirtualHost *:80> ServerName freesoftwareservers.com ServerAlias *.freesoftwareservers.com Redirect / https://www.freesoftwareservers.com/ </VirtualHost> <VirtualHost *:443> ServerName freesoftwareservers.com ServerAlias *.freesoftwareservers.com ...


0

I don't quite understand your question. To run PHP code, you need a program that can understand understand PHP. This is either Zend Engine (the branch by Dmitry called PHPNG has been merged on v7.0), Websphere sMash, Phalanger, HipHop VM, HippyVM, Parrot, Quercus, or some other program. (Note: Every engine is saying that they are faster than every other ...


0

You don't need separate .conf for each site. You simply put them all in your default and you'll be good to go. Also check for spelling mistakes.


1

As a commenter said: Just put them both in default.conf you should also check over your default.conf for spelling mistakes...


1

try: DocumentRoot /var/www/mysite ServerName another.domain.de ServerAlias another.domain.de <Directory /var/www/mysite> AllowOverride all Options -MultiViews Order allow,deny allow from all </Directory> DocumentRoot /var/www/myrailsapp/public ServerName rails.domain.de ServerAlias rails.domain.de <Directory ...


0

Changing my Apache config file to the below resolved the issue. <VirtualHost *:80> ServerName somehost DocumentRoot /var/www/html/public CustomLog /var/www/html/access.log common ErrorLog /var/www/html/error.log <Directory /var/www/html/public> <IfModule mod_rewrite.c> Options ...


2

If it's idling it's probably irrelevant, even tough as any process Apache will consume some resources in order to keep running; an idling Apache should never be a big deal, however you can check this for yourself by running top -p $(pgrep -o apache). Here's the output of the command on a Debian Jessie machine running Apache (it showcases the average load of ...


0

You might also want to look at setting up a VirtualBox environment for PHP development. This way you keep your host OS free from server packages but you can still do all development on your own PC with the shared folder functionality. :)


1

1. Installing and setting up the LAMP stack Open Terminal by hitting Ctrl+Alt+T Update the apt cache and install lamp-server^ by running sudo apt-get update && sudo apt-get install lamp-server^ (you should be able to go through the on-screen setup; it's just a matter of setting up the mysql root password) 2. Installing and setting up PHPMyAdmin ...


1

To install these packages in the command-line you can type sudo apt-get install lamp-server^ phpmyadmin There is also extensive documentation how to set up a LAMP environment with phpmyadmin at https://help.ubuntu.com/community/ApacheMySQLPHP | https://help.ubuntu.com/14.04/serverguide/lamp-applications.html Feel free to ask more specific questions if ...


0

Run those commands: sudo apt-get update Install apache: sudo apt-get install apache2 You can test apache2 is working by directing your browser to http://localhost , you should see "it works" output. Install PHP: sudo apt-get install php5 libapache2-mod-php5 Restart apache2 now: sudo service apache2 restart To test PHP now create a file ...


0

This is now under /etc/apache2/conf-available/security.conf which is then symlinked by a2enconf to /etc/apache2/conf-enabled/security.conf


0

Different solution for those still having issues. Hopefully I can help those trying to reinstall Mysql. Note, It's a seek and destroy mission. So be weary. Assuming your root: apt-get purge mysql* apt-get purge dbconfig-common #the screen used for mysql password find / -name *mysql* #delete any traces of mysql #insert apt-get cleanups, ...


1

An application called sslh and described as an "Applicative protocol multiplexer" was designed to do exactly what you want. The application functionality is described at ssl/ssh multiplexer and it is available through links at that site.


2

Ubuntu doesn't use httpd.conf as standard, instead global configuration stuff for apache is found in /etc/apache2/apache2.conf. You can create a httpd.conf in the apache2 directory, and load any further configuration from it by including the following line in /etc/apache2/apche2.conf. Include /etc/apache2/httpd.conf You don't need that file to configure ...


2

httpd.conf will be in /etc/apache2/. /etc/apache2$ ls apache2.conf envvars mods-available ports.conf sites-enabled conf.d httpd.conf mods-enabled sites-available :/etc/apache2$ more httpd.conf :/etc/apache2$ I need to change it No, you do not. The documentation states: httpd.conf: historically the main Apache2 ...


0

For this versions you need a PPA or you need to compile the desired version. The latest version in Vivid for this packages is $ apt-cache policy openssh-server openssh-server: Installed: 1:6.7p1-5ubuntu1 Candidate: 1:6.7p1-5ubuntu1 Version table: *** 1:6.7p1-5ubuntu1 0 500 http://de.archive.ubuntu.com/ubuntu/ vivid/main i386 Packages ...


0

Yes, run the following commands to upgrade those packages to the newest versions available for 15.04: sudo apt-get update that command updates the list of packages available from the ubuntu server sudo apt-get install openssh-server apache2 that command will upgrade those packages to the newest versions You may want to upgrade all packages to get all ...


1

Those errors are saying: there is already a web server running on port 80, so you can't start another one Apache can't find its PID or lock files, because it's missing some configuration and doesn't know where to look What I think is happening: The other web server already running on port 80 is Apache itself. The reason it can't recognise itself is ...


0

All those variables are defined in /etc/apache2/envvars in my server. Check for the existence of that file and that it is set up properly. I had to make some minor changes to it, I think, but pretty much use it as-downloaded.


0

According to your logfile there are several things wrong. It is important to tackle them one by one. There are a lot of messages concerning AH01630, meaning the client has no access. This has usually to do with a difference between Apache 2.2 and 2.4. The directive of importance is Require: In 2.2 configuration you should have: Order allow,deny Allow from ...


0

Run those commands: sudo dpkg --configure -a sudo apt-get install -f Then now try to purge apache sudo apt-get purge apache2 apache2-data apache2-utils


0

Do you know if the services you installed are running, apache and MySQL need to be running for this to work. open a terminal and type: sudo service apache2 status sudo /etc/init.d/mysql status


1

Not all routers "reflect" requests from the LAN back in through the port forwarding mechanism, and some of those that do it require you to set an option to choose it. Telling us the type of router might help you get a more specific answer, but in any case, you can look in your router config for that type of option. The other way of handling it is to add a ...


1

There was nothing wrong with the webserver's configuration. Instead, it was user error -- I was trying to visit https:// instead of http://.


0

As per comments: xampp is complaining that you changed the config file and made its permissions 777. (world readable and writeable) Remove it and install the Ubuntu native LAMP stack with: sudo apt-get install lamp-server Less hassle, more secure and made to work out of the box.


0

I needed to delete the firefox profile, and then create a new one. Open up terminal and enter: firefox -profilemanager Then you can just delete default profile and press create new. It will make a new default profile :)


0

Here are some things you can do to troubleshoot the problem: Restart apache2: sudo apache2ctl restart Is the php5 module enabled? Look for php5.conf and php5.load in your mods-enabled directory. If they're not there, check to be sure they're in your mods-available directory, and enable the module with sudo a2enmod php5 sudo apache2ctl restart Put a ...


2

Plan A: Running: sudo apt-get update Then: sudo apt-get install -f Installing any unmet dependencies, and possibly then doing a restart should fix it. Plan B: Otherwise you should edit the file with: sudo nano /etc/apt/sources.list.d/passenger.list Once more and remove the line you added, then save the file and run: sudo apt-get update And the ...


1

I've developed some steps to install php 5.3 + Apache on Ubuntu 14. First, write the following repositories to the file /etc/apt/sources.list.d/ubuntu-old.list deb http://55.archive.ubuntu.com/ubuntu/ trusty main deb http://security.ubuntu.com/ubuntu precise-security main universe deb http://cz.archive.ubuntu.com/ubuntu precise main universe run apt-get ...


1

The WAN and LAN Ethernet ports are on different "sides" of the router. WAN is usually a dhcp client and LAN has dhcp server. Plug web server into LAN side and plug client into LAN side then it should work. In other words all you need is a switch, not a router. If this is WiFi, there is a security setting that prevents wifi clients from communicating with ...


1

I found my own solution finally. In case someone else comes here looking... I had to edit the virtual host setting in the virtualhost.conf file. Options Indexes FollowSymLinks MultiViews remove last "MultiViews" and it worked. Changed from: <Directory /var/www/html/elim/public/> Options Indexes FollowSymLinks MultiViews ...


1

Your private network is for example 192.168.0.XXX (or another range ) you connect your server (wifi or ethernet) to that network, and assign a static ip address (one that won't change when router or machine is rebooted ), like 192.168.0.151. you need to create a virtualhost for that ip listening on port 80, and/or if you want to use a domain name, you must ...


0

The easiest way to install LAMP is: sudo apt-get update sudo apt-get install tasksel sudo tasksel in the terminal you should now see the option to install lamp and ssh use the spacebar to select and install the necessary components you will be opted to configure a password for MySQL remember your password we will need it for the next part. 2)now that ...


0

Remove PHPMyAdmin sudo apt-get purge phpmyadmin sudo apt-get autoremove sudo apt-get clean Reinstall it sudo apt-get install phpmyadmin



Top 50 recent answers are included