Tag Info

New answers tagged

0

You do not add these to eclipse - they run independently as servers (apache/php and mysql) Download and install eclipse specifically built for web development from PHP Development Tools.


-1

If you are running your file just for the localhost then change the chmod to 777 for /var/www/html save every php file in html folder which is found in the path mentioned above. The new apache loads the file from the server only if it is present in the HtMl folder. i hope it will work. (Though 777 chmod is not recommended of course because of the ...


0

I concur with Eric Carvalho's comment. I assume you're typing android in the URL bar vs the top-right search box? It seems a PC is named android on your network. You can try ping, nslookup PC-NAME to identify it. You could use a port scanner (nmap or telnet PC-NAME 80) to see if its got apache (a web server) installed on it


0

Best and easy LAMP installation tutorial.... http://11howto.in/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04/1425/


1

My server has 000-default.conf with 0644 (-rw-r--r--) permissions in sites-available and as a symlink lrwxrwxrwx in sites-enabled. You should check the permissions of the file in /etc/apache2/sites-available to make sure it's something sane (at least not world-writable) as the link permissions don't matter (accessing the file through the link uses the ...


0

Installation details for specific package versions on Ubuntu can be found here. As for the breaking Wordpress 4 I can't find any know bugs right away. However if you are really nervous then do the upgrade in a test environment first.


2

This happens after you upgrade to apache 2.4.9+ basically just replace Order allow,deny allow from all with Require all granted should fix this issue. something like, <Directory /home/tom/Dropbox/web> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> ScriptAlias /cgi-bin/ ...


0

The slightly older version of python-django in your output indicates that you may need to refresh your package lists. To make sure your packaging system is always working with current information, it is advisable to do this before package installations: sudo apt-get update -y


0

like in Apache Doc: Custom error documents are configured using the ErrorDocument directive, which may be used in global, virtualhost, or directory context. It may be used in .htaccess files if AllowOverride is set to FileInfo. So it should be okay in .htaccess Files. Did it work for you?


0

I've solved the problem by myself usermod -a -G USER1 www-data chown -R USER1:www-data /home/USER1/public_html chmod ug+s /home/USER1/public_html this isn't the "best way" but, better then use www-data as owner and manager of all virtualhosts!!!


0

As with @Pixelizer, they are the same application - except that some Linux distributions refer to it differently. RedHat-based distros (CentOS, Fedora) refer to it as httpd while Debian-based distros (Ubuntu) refer to it as apache. Gentoo, strangely enough, mostly refers to it as apache - but config files have httpd in the naming conventions. Background: ...


2

Three things: the client may not have send the http string, so grep for '" 408 ' instead: grep '" 408 ' *access.log you're not grepping .gz files, zo use something like: zcat *access.log.*.gz | grep '" 408 '. You don't search subdirectories, so try adding -r or -R to grep.


1

Make sure you have a currently supported version OS (12.04, 14.04 or 14.10). If your OS version is not currently supported, update your software sources by following the instructions in How to install software or upgrade from an old unsupported release? and then skip steps 2-6 since they don't apply in case you have an unsupported release. Search in the ...


0

It might be the case that mysql is not configured with php. You can try and install it by the command sudo apt-get install php5-mysql Refresh the browser. Hope it helps.


1

One trick is to load the whole database into a RAM disk, if it fits. First, create a disk in memory: mount -t tmpfs -o size=350M tmpfs /var/tmp/ramdisk Adjust size as needed. Then move the database to this disk: rsync -av /var/lib/mysql/* /var/tmp/ramdisk/ chown -R mysql:mysql /var/tmp/ramdisk Then start the database server. In my.cnf you point the ...


0

I have no Idea of this purpose but this is the common permission method sudo chmod 777 /mnt/share-name/www Edited just for you NOTE: THIS ALLOWS READ, WRITE AND EDIT


2

The 403 error means that your pages are inaccessible for Apache. Setting chmod -R 755 as you did, made it accessible for everybody on your system - every user, program, daemon etc. Furthermore, you have made all files executable this way (see this or this for mor info on permissions and executables on Linux). More secure, yet simple solution, will be ...


0

The issue solved by running the following sudo chmod -R 755 /home/ahmed-saber/workspace/* also blank page due to some php errors


1

You need to add a line ServerName payroll.v1 inside your VirtualHost definition to tell Apache the hostname used for this VirtualHost.


0

sudo gedit etc/apache2/apache2.conf add this Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all in virtual configuration :/etc/apache2/sites-available/site.conf ServerAdmin anilrmg@localhost.com ServerName anilrmg.localhost.com ServerAlias www.anilrmg.localhost.com DocumentRoot ...


0

From what i understand you're having the following problems: 1 - Unable to access the web server (using the FQDN, "fully qualified domain name" www.cokongwu.com) from inside the LAN? 2 - You're unable to verify functionality of the website from the outside? 1 - Access to the web server from the inside using FQDN. I can't see in your question from where ...


0

Looks like there is a domain name related issue. Are you sure you set your domain name provider's nameserver settings to point to the hosting provider's domain servers? For example, assume you use digitalocean for hosting, you need to go to the control panel of domain name registrar, find fields named "Domain Name Server" and set their values to ...


1

First, I think you're better off at stackoverflow for questions like these. Now can you check if you have mod_rewrite enabled? Create a simple php file and add this code: <?php phpinfo(); ?> Now visit that file and search the page (CTRL+F) for mod_rewrite. If not enabled run this code: a2enmod rewrite And restart apache: /etc/init.d/apache2 ...


0

I have figured it out. I have to run Apache as user who mounted the media I want to use. In order to do that I had to modify two lines of apache2.conf file. I had to check what user have permissions to read files from /media/user/E874D9B0/wamp24/www/app2/ with ls -al command. And write that user name into config file. User user Group user


0

I don't use the convenience LAMPP / XAMPP packages; I just installed apache2, mysql, etc, normally. That said, for me, sudo service apache2 restart works.


0

To modify the default virtual host, edit the file /etc/apache2/sites-available/000-default.conf I'm a also new and found lots of info in the ubuntu server guide, I think you might find answers to other questions you'll encounter.


0

Blank pages usually mean there is an error in the php code. I suggest adding these lines to your file: error_reporting(E_ALL); ini_set('display_errors', '1'); They will show you debug info. Just in case there is a problem with the php script.


0

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

You can use the terminal, and enter following bash: gksu /var/www/html users ln /etc/greeter-lightdm/lightdm.conf users echo 'users' sudo restart lightdm and it might work fine this way.


1

Use sudo a2enmod userdir to enable moduserdir (if it isn't already enabled). Add UserDir somefolder to your VirtualHost's configuration to set the diectory name to somefolder (by default it's public_html. Add something like <Directory /home/*/somefolder/ > Require all granted Options +Indexes </Directory> to your ...


0

It seems that your installation of XAMPP is broken... My best suggestion is to forget about XAMPP and install what you need from repositories and, if needed, configure it yourself. This seems to be a good tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04


0

After seeing official documentation at http://httpd.apache.org/docs/2.2/install.html I am able to add and enable rewrite module wget http://www.us.apache.org/dist//httpd/httpd-2.2.29.tar.gz tar -xzf httpd-2.2.29.tar.gz cd httpd-2.2.29 ./configure --enable-rewrite=shared make sudo make install


0

you are getting this error because this version is not available on repository which you are using. you can check which versions are available in repository apt-cache showpkg <pachagename> e.g. apt-cache showpkg apache2 then you can install that version using command apt-get install <packagename>=<complete version name> e.g. apt-get ...


0

Something is apparently running already on ports you're trying to bind to. What is it? You'll have to find out yourself, I'm afraid. What may help you with that is anyway netstat command. Try netstat -nap | grep 8080 (or 8081) to find out which process is using this port.


0

Did you try service apache2 start in order to start Apache? The warnings shown in the log are just this, warnings. Apache should also start with these warnings.


0

Open the terminal and type: apache2 -v -v Print the version of apache2, and then exit.


0

I've been searching this for a long time and I just found a solution that works in my case. I had put my file (processorder.php5) in the directory /var/www in a standard ubuntu installation. I thought this was the place that php looked. But for html (or php files which are probably considered the same thing) it looked in /var/www/html, ie the html ...


0

You stated in comments, that you have python script, that runs dumpcap command. Try running that python script as www-data user, like so: sudo -u www-data [command/script to run]


0

You should symlink your /etc/apache2/sites-available/RecipeCenter to /etc/apache2/sites-enabled/100-RecipeCenter.conf. (The number doesn't matter too much, though the files are included in alphabetical order, so whatever name you choose for the symlink, it should alphabetically come after 000-default.conf. Apache actually includes vhost config files from ...


0

I usually use the following permissions under /var/www/virtualhost: chown -R www-data:www-data * chmod -R 640 * This ensures that only the HTTP server can see the files. No execute permission is needed for .js and .php files. Shell scripts (.sh files) probably need them if you want to run them as CGI scripts (I've never tried it, so I don't know how to ...


0

Is possible to grant only some root actions to users? Yes with visudo, or file events, or with the s bit on a script, or withe root crontab. how to run apache etc as non-root user? That is default for Apache and you can use su, sudo, or runuser for apps that don't already do this. How to create root cronjobs? Every user has a crontab, just put your ...


0

This is because, the XAMPP test page is not accessible from the remote clients. To solve this edit the file /opt/lampp/etc/extra/httpd-xampp.conf. Note that xampp is installed in /opt/lampp execute this to edit: sudo nano /opt/lampp/etc/extra/httpd-xampp.conf find the line: require local then comment it by adding a # at the beginning #require local ...


2

There is an ultimate fallback DocumentRoot location. From the Apache docs: Default: DocumentRoot /usr/local/apache/htdocs However, for packaging, the default is changed to /var/www (since packages aren't supposed to reside in or use /usr/local). The particular patch that does this is fhs_compliance.patch: --- a/include/httpd.h +++ b/include/httpd.h @@ ...


2

Yes, if you don't have a DocumentRoot directive in your configuration a compiled in default value is used. In Ubuntu before 14.10 it's /var/www, in 14.10 this has been changed to /var/www/html.


1

You might have selinux enabled. Try getenforce If it shows "Enforcing", try setenforce 0 and try if this fixes your issue.


1

The simplest way to install all three is to run the lamp-server task: sudo apt-get install lamp-server^ The caret at the end means that this is running a task, not installing a package. There is no lamp-server package, so if you leave off the caret, apt-get will return the error message, Unable to locate package lamp-server. The task will install ...


0

Now I found out what was the problem. It was not any configuration problem with apache or php. It seems, that the Value short_open_tag in default php.ini changed from On to Off. All my php sources starts with <? I did not come up with the idea that this could be the problem and I always tried out various configurations about apache. I could not ...


0

An old question I know, but I recently had the same problem. Accessing the phpmyadmin url produced a blank white page. The apache logs showed nothing wrong. All response headers were "200 OK". The problem was simple, I had disabled javascript in the browser. To fix in firefox, enter the url 'about:config', find the key named 'javascript.enabled' and toggle ...



Top 50 recent answers are included